diff options
| author | Lily <egzozu.be.bas@gmail.com> | 2023-12-01 19:23:54 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-01 17:23:54 +0100 |
| commit | 44ecb62ce7d012aadd9f4cb22d2bad6cfbbe56c6 (patch) | |
| tree | 7599aef9c4dc05176bbda9d94ce08725ad09237e /docs/COMPILE.md | |
| parent | 37a976831d00d386dd3130ca9809d339e8aa0205 (diff) | |
| download | box64-44ecb62ce7d012aadd9f4cb22d2bad6cfbbe56c6.tar.gz box64-44ecb62ce7d012aadd9f4cb22d2bad6cfbbe56c6.zip | |
[DOCS] Termux Compiling (#1102)
* [DOCS] Termux Compiling * [DOCS] Not needed this * [DOCS] Added this back I don't think I had to delete that sorry
Diffstat (limited to 'docs/COMPILE.md')
| -rw-r--r-- | docs/COMPILE.md | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/docs/COMPILE.md b/docs/COMPILE.md index 6ae17e42..4f1a30ad 100644 --- a/docs/COMPILE.md +++ b/docs/COMPILE.md @@ -27,9 +27,9 @@ If it's the first install, you also need: sudo systemctl restart systemd-binfmt ``` - You can use `make -j1`, `make -j2` to prevent running out of memory -- You can also add `-DBAD_SIGNAL=ON` to the cmake command if you are on Linux Kernel mixed with Android, like on RK3588 or maybe Termux +- You can also add `-DBAD_SIGNAL=ON` to the cmake command if you are on Linux Kernel mixed with Android, like on RK3588. -#### For instance, if you want to build box64 for Generic ARM64 Linux platforms, it would look like this: +#### For Instance, if you want to build box64 for Generic ARM64 Linux platforms, it would look like this: ``` git clone https://github.com/ptitSeb/box64 cd box64 @@ -68,7 +68,6 @@ Still, this can be faster if your build is attended. ``` -D RPI3ARM64=1 -D CMAKE_BUILD_TYPE=RelWithDebInfo -make ``` #### for Raspberry Pi 4 @@ -126,13 +125,6 @@ Using a 64bit OS: -D ADLINK=1 -D CMAKE_BUILD_TYPE=RelWithDebInfo ``` -#### for a generic ARM64 machine - -Using a 64bit OS: -``` --D ARM64=1 -D CMAKE_BUILD_TYPE=RelWithDebInfo -``` - #### for M1 Only test on Asahi for now, using the default "16K page" kernel @@ -173,6 +165,16 @@ Using a 64bit OS: -D LX2160A=1 -D CMAKE_BUILD_TYPE=RelWithDebInfo ``` +#### for Termux + +NOTE: COMPILING BOX64 IN TERMUX IS EXPERIMENTAL!!! + +You must have ARM64 Device and the `libandroid-sysv-semaphore` library: + +``` +-D TERMUX=1 -D CMAKE_BUILD_TYPE=RelWithDebInfo +``` + #### for x86_64 Linux ``` -D LD80BITS=1 -D NOALIGN=1 -D CMAKE_BUILD_TYPE=RelWithDebInfo @@ -181,7 +183,7 @@ If you encounter some linking errors, try using `NOLOADADDR=ON` (`cmake -D NOLOA ---- -### use ccmake +### Use ccmake Alternatively, you can **use the curses-bases ccmake (or any other gui frontend for cmake)** to select wich platform to use interactively. @@ -205,7 +207,7 @@ Dynarec is only available on ARM (for the meantime), Activate it by using `-DARM #### To have a build using less memory -You can use ` -DSAVE_MEM` to have a build that will try to save some memory. It's, for now, only increasing the jumptable from 4 level to 5 levels. The added granularity avoid wasting space, but the 1 level more to the jumptable means there is on read from memory more when jumping between blocks. +You can use `-DSAVE_MEM` to have a build that will try to save some memory. It's, for now, only increasing the jumptable from 4 level to 5 levels. The added granularity avoid wasting space, but the 1 level more to the jumptable means there is on read from memory more when jumping between blocks. #### Not building from a git clone |