diff options
Diffstat (limited to 'COMPILE.md')
| -rwxr-xr-x | COMPILE.md | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/COMPILE.md b/COMPILE.md index 0bb2a309..37014651 100755 --- a/COMPILE.md +++ b/COMPILE.md @@ -39,29 +39,31 @@ sudo systemctl restart systemd-binfmt `mkdir build; cd build; cmake .. -DLD80BITS=1 -DNOALIGN=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo; make -j$(nproc)` -#### use ccmake +If you encounter some linking errors, try activating `NOLOADADDR` (`cmake -DNOLOADADDR=ON; make -j$(nproc)`). -Alternatively, you can use the curses-bases ccmake (or any other gui frontend for cmake) to select wich platform to use interactively. +### use ccmake -#### Customize your build +Alternatively, you can **use the curses-bases ccmake (or any other gui frontend for cmake)** to select wich platform to use interactively. -*use ccache if you have it* +### Customize your build + +*Use ccache if you have it* Add `-DUSE_CCACHE=1` if you have ccache (it's better if you plan to touch the sources) -*have some debug info* +*To have some debug info* The `-DCMAKE_BUILD_TYPE=RelWithDebInfo` argument makes a build that is both optimized for speed, and has debug information embedded. That way, if you have a crash or try to analyse performance, you'll have some symbols. -*to have a Trace Enabled build* +*To have a Trace Enabled build* To have a trace enabled build ( ***it will be slower***), add `-DHAVE_TRACE=1` but you will need, at runtime, to have the [Zydis library](https://github.com/zyantific/zydis) library in your `LD_LIBRARY_PATH` or in the system library folders. -*to have ARM Dynarec* +*To have ARM Dynarec* The Dynarec is only available on the ARM architecture(Right now, anyways.). Notes also that VFPv3 and NEON are required for the Dynarec. Activate it by using `-DARM_DYNAREC=1`. Also, be sure to use `-marm` in compilation flags (because many compileur use Thumb as default, and the dynarec will not work in this mode). -*not building from a git clone* +*Not building from a git clone* If you are not building from a git clone (for example, downloading a release source zipped from github), you need to activate `-DNOGIT=1` from cmake to be able to build (normal process include git sha1 of HEAD in the version that box64 print). @@ -72,4 +74,3 @@ Testing A few tests are included. They can be launched with `ctest` They are very basic and don't test much for now. - |