Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems building for android
01-29-2013, 11:50 AM (This post was last modified: 01-29-2013 01:06 PM by Carter07.)
Post: #1
Problems building for android
Hi, I'm tring to build ppsspp for android but I get there errors.

Here the steps I did:
1) installed adt-bundle-windows-x86 and android-ndk-r8d
2) set the NDK path in eclipe (shown in the second picture)
3) run ab.cmd
4) imported the android folder of ppsspp project into eclipse (Import -> General -> Existing Projects into Workspace)
5) imported the native folder


Attached File(s) Thumbnail(s)
       
Find all posts by this user
Quote this message in a reply
01-29-2013, 11:58 AM
Post: #2
RE: Problems building for android
You need to set "native" to be an Android Library in project properties, and set PPSSPP to depend on it.

I don't understand the "compiler compliance" error though, but try what it says : right click the project and choose Android->Fix Project Properties.
Find all posts by this user
Quote this message in a reply
01-29-2013, 12:58 PM (This post was last modified: 01-29-2013 01:00 PM by Carter07.)
Post: #3
RE: Problems building for android
Thanks, I did the changes circled in red (did you meant this?) and followed what compiler said but I still get 2 errors.


Attached File(s) Thumbnail(s)
       
Find all posts by this user
Quote this message in a reply
01-29-2013, 01:09 PM
Post: #4
RE: Problems building for android
Not quite, I meant if you click the Android category to the left of that dialog, I think you get some settings where you can set up whether a project is an Android library and to set up Native as a dependency of PPSSPP.
Find all posts by this user
Quote this message in a reply
01-29-2013, 02:20 PM (This post was last modified: 01-29-2013 02:22 PM by Carter07.)
Post: #5
RE: Problems building for android
Ok, I did as shown on the screens and got no errors but unfortunately I still can't build it, maybe due to the warnings?

I selected the option "build automatically" but nothing happens.


Attached File(s) Thumbnail(s)
       
Find all posts by this user
Quote this message in a reply
01-29-2013, 02:31 PM
Post: #6
RE: Problems building for android
When it looks like that it should be working. Open the file PPSSPPActivity.java, and press Run when you have your android device connected.
Find all posts by this user
Quote this message in a reply
01-29-2013, 03:06 PM
Post: #7
RE: Problems building for android
Ehm tried but when app is launched on my device it crashes. Smile
ppsspp.apk is only 170kb


Attached File(s) Thumbnail(s)
       
Find all posts by this user
Quote this message in a reply
01-29-2013, 04:50 PM
Post: #8
RE: Problems building for android
It seems you didn't build the native part of the app, it complains about not finding it (ppsspp_jni). ab.cmd in ppsspp/android will do it for you, but only if the Android NDK is installed right. Look in ab.cmd as well to verify that it's pointed at your NDK install.
Find all posts by this user
Quote this message in a reply
01-29-2013, 07:44 PM (This post was last modified: 01-29-2013 07:45 PM by Carter07.)
Post: #9
RE: Problems building for android
Thanks, now it works Big Grin, I had to rename the NDK folder and change path in the ab.cmd.
Find all posts by this user
Quote this message in a reply
03-10-2013, 02:26 PM (This post was last modified: 03-10-2013 02:29 PM by Carter07.)
Post: #10
RE: Problems building for android
Can't build anymore with the last git.


Attached File(s) Thumbnail(s)
   
Find all posts by this user
Quote this message in a reply
03-10-2013, 03:45 PM (This post was last modified: 03-10-2013 04:11 PM by [Unknown].)
Post: #11
RE: Problems building for android
Oh, darn, I forgot people build this on Windows. My bad.

Edit: in the meantime, you can run Windows\git-version-gen.cmd first, and then it may build okay.

-[Unknown]
Find all posts by this user
Quote this message in a reply
03-10-2013, 05:20 PM
Post: #12
RE: Problems building for android
@[Unknown], thanks now it's fixed.
Find all posts by this user
Quote this message in a reply
03-22-2013, 08:30 AM (This post was last modified: 03-22-2013 08:31 AM by adr19.)
Post: #13
RE: Problems building for android
Hi.
I build app too but when it launching I have error end app is closing.
Error:

03-22 10:18:27.997: D/dalvikvm(31296): Trying to load lib /data/data/org.ppsspp.ppsspp/lib/libppsspp_jni.so 0x41bfb3b0
03-22 10:18:27.997: A/libc(31296): Fatal signal 11 (SIGSEGV) at 0x7ff81e38 (code=1)


What I do before compiling:
1.Set environment variables:
NDK C:\android-ndk-r8e
NDK_ROOT C:\android-ndk-r8e


PATH C:\android-ndk-r8e

2. Download source from there:
https://github.com/hrydgard/ppsspp
and native from there:
https://github.com/hrydgard/native
Put files from native to ppsspp-master/android/native
3.Run ab.cmd
4. Set NDK folder in Android SDK
5. Import ppsspp project then libnative project and native set as "Is Library"
6. Then in libnative Android Tools > Fix Project Propereties
7. And finally click Run, app launching on phone but Force Closing immediately with error above.

Phone ZTE Grand X In Intel Atom Z2460
Find all posts by this user
Quote this message in a reply
03-22-2013, 01:43 PM
Post: #14
RE: Problems building for android
Hmm, seems like x86 support still isn't ready for Android. Can you get a stack trace of the crash?

-[Unknown]
Find all posts by this user
Quote this message in a reply
03-25-2013, 07:02 PM (This post was last modified: 04-01-2013 04:35 PM by adr19.)
Post: #15
RE: Problems building for android
I'm sorry for long response time.
Sure, if you can say me how to do that. I'm not so advanced in developing and programming, i'm simple user with some more knowlege.

If you asking for this, here you go:
http://pastebin.com/NF3ugTMZ
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: