• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Android v
« Previous 1 ... 118 119 120 121 122 ... 128 Next »

Building from Source
View New Posts | View Today's Posts

Pages (2): « Previous 1 2
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Building from Source
03-09-2015, 06:52 AM
#11
Heinermann Offline
Junior Member
**
Posts: 12
Threads: 1
Joined: Jul 2010
Anyway, since I figured out how to build it, I don't want to go off topic in this thread about unrelated issues.
Find
Reply
03-09-2015, 07:23 AM
#12
agrabren Offline
Junior Member
**
Posts: 26
Threads: 0
Joined: Mar 2015
(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)
Find
Reply
03-09-2015, 07:26 AM
#13
Sonicadvance1 Offline
Professional Hand Holder
**********
Developers (Some Administrators and Super Moderators)
Posts: 716
Threads: 15
Joined: Jan 2013
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.
Find
Reply
03-16-2015, 01:41 PM
#14
linedot
Unregistered
 
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)
Reply
03-17-2015, 02:25 AM
#15
SeannyM Offline
Dragon Trainer
**********
Developers (Some Administrators and Super Moderators)
Posts: 177
Threads: 0
Joined: Dec 2013
(03-16-2015, 01:41 PM)linedot Wrote: 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)
Going off of the first error, I would say you need a newer version of the NDK.
Find
Reply
03-17-2015, 07:44 AM
#16
linedot
Unregistered
 
(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.
Reply
« Next Oldest | Next Newest »
Pages (2): « Previous 1 2


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode