Hi.
I've been trying to build the android version unsuccessfully. I've been using this command line
cmake -DANDROID=True -DCMAKE_TOOLCHAIN_FILE=../Source/Android/android.toolchain.cmake -DANDROID_TOOLCHAIN_NAME=arm-linux-androideabi-4.9 -DCMAKE_BUILD_TYPE=Release -DANDROID_ABI="armeabi-v7a" -DANDROID_NATIVE_API_LEVEL=21 ..
The compilation will fail with:
/Source/Core/Core/MachineContext.h:91:23: fatal error: ucontext.h: No such file or directory
Adding "-isystem /path/to/ndk/platforms/android-L/arch-arm/usr/include" to CMAKE_CXX_FLAGS manually will remove this error, but the build will still fail somewhere else, so I guess I didn't set something up right and am trying to fix the symptons instead of the cause. Maybe someone can help?
The reason I want to compile from source is I've had some trouble getting the emulator to run on my phone. mmap generates an ENOMEM ("Failed to map 1 GB of memory space"), that's in Source/Core/Common/MemArena.cpp:154 . Then there is a SIGSEGV later on in TranslateAddress(). I wanted to play with the code and try to figure out why that happens (There is enough RAM)
I've been trying to build the android version unsuccessfully. I've been using this command line
cmake -DANDROID=True -DCMAKE_TOOLCHAIN_FILE=../Source/Android/android.toolchain.cmake -DANDROID_TOOLCHAIN_NAME=arm-linux-androideabi-4.9 -DCMAKE_BUILD_TYPE=Release -DANDROID_ABI="armeabi-v7a" -DANDROID_NATIVE_API_LEVEL=21 ..
The compilation will fail with:
/Source/Core/Core/MachineContext.h:91:23: fatal error: ucontext.h: No such file or directory
Adding "-isystem /path/to/ndk/platforms/android-L/arch-arm/usr/include" to CMAKE_CXX_FLAGS manually will remove this error, but the build will still fail somewhere else, so I guess I didn't set something up right and am trying to fix the symptons instead of the cause. Maybe someone can help?
The reason I want to compile from source is I've had some trouble getting the emulator to run on my phone. mmap generates an ENOMEM ("Failed to map 1 GB of memory space"), that's in Source/Core/Common/MemArena.cpp:154 . Then there is a SIGSEGV later on in TranslateAddress(). I wanted to play with the code and try to figure out why that happens (There is enough RAM)