Anyway, since I figured out how to build it, I don't want to go off topic in this thread about unrelated issues.
Building from Source
|
03-09-2015, 07:23 AM
(03-09-2015, 06:52 AM)Heinermann Wrote: Anyway, since I figured out how to build it, I don't want to go off topic in this thread about unrelated issues. Running gradle from command line worked for me, packaged everything perfectly. So I use the following commands: $ cd Build $ export ANDROID_NDK=/home/kbruckert/sdks/android-ndk-r10d $ cmake -DANDROID=True -DCMAKE_TOOLCHAIN_FILE=../Source/Android/android.toolchain.cmake -DANDROID_TOOLCHAIN_NAME=aarch64-linux-android-4.9 -DCMAKE_BUILD_TYPE=Release -DANDROID_ABI="arm64-v8a" -DANDROID_NATIVE_API_LEVEL=21 .. $ make $ cd ../Source/Android $ export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 $ gradle assemble I get an error about keysigning, but I get a debug-signed APK that loads and runs. (Note: This machine is already properly configured to build an entire AOSP ROM image, so many tools are likely already configured that I don't even think about anymore) 03-09-2015, 07:26 AM
Sounds exactly like what I do.
I couldn't leave any feedback in this thread since I was traveling across the country at the time. 03-16-2015, 01:41 PM
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) 03-17-2015, 02:25 AM
(03-16-2015, 01:41 PM)linedot Wrote: Hi.Going off of the first error, I would say you need a newer version of the NDK. 03-17-2015, 07:44 AM
(03-17-2015, 02:25 AM)SeannyM Wrote: Going off of the first error, I would say you need a newer version of the NDK. Ah... that was rather unexciting. Thank you! It did not occur to me that the default gentoo ebuild might be an older version of the ndk. I will now go feel stupid in a corner and as soon as I recover from that, inspect the matter I was looking into originally and hopefully discover that a solution as simple exists. |
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)