Added note that multilib GCC is required when building the native version on 64 bit Linux (#66)

Without a GCC installation that can build both 32 and 64 bit executables, the native build will fail on 64 bit Linux machines with an error about unsigned __int128 being undefined. GCC does not support __int128 on 32 bit targets, and GCC was using it via a standard library implementation header intended for 64 bit machines.

Instances of "arm" were replaced with "ARM" where the acronym was intended.
This commit is contained in:
Tyler Veness
2016-06-10 23:55:46 -07:00
committed by Peter Johnson
parent 6c6c087e30
commit b2795af2b8

View File

@@ -28,13 +28,15 @@ To build just the Native or ARM version, you must access the approriate subproje
./gradlew :native:build # Builds just the native version of ntcore
```
If you do not have the arm toolchain installed on your computer, you will run into build issues. To disable the arm platform entirely, run with the flag `-PskipArm`, and it will be entirely skipped.
If you are building the native version on a 64 bit Linux computer, use a GCC installation which has multilib support enabled (it can compile both 32 and 64 bit programs). The package providing that support on most Linux distributions is called `gcc-multilib`.
If you do not have the ARM toolchain installed on your computer, you will run into build issues. To disable the ARM platform entirely, run with the flag `-PskipArm`, and it will be entirely skipped.
```bash
./gradlew build -PskipArm # Builds native, disables the arm project
./gradlew build -PskipArm # Builds native, disables the ARM project
```
The native version of ntcore will run tests on build. The arm version will not, as the current platform likely does not allow running of an ARM binary.
The native version of ntcore will run tests on build. The ARM version will not, as the current platform likely does not allow running of an ARM binary.
### Custom Cross Compilers