Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Android / Trying to compile for android [again]

Author
Message
kamac
8
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 9th Jan 2013 16:34 Edited at: 9th Jan 2013 16:35
Hey. After a while I try to compile for android, but it fails in main.o.

log.txt:



No idea what's happening, but it's driving me mad.

I use NDK r7, windows XP, template from http://appgamekit.wikispaces.com/Templates
AGK v1.76 or so

And yes, main.c actually exists in jni folder. I guess that's patches problem or something, but I've got no idea how to fix it.

Follow me on twitter! @MotionStruct
Motion Struct blog
Ancient Lady
Valued Member
15
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 9th Jan 2013 16:39
This might be a dumb question, but what directory are you in when you run the build command?

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
kamac
8
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 9th Jan 2013 16:41 Edited at: 9th Jan 2013 16:41
Main project directory. (in this case it's in AGK_Projects/IDE/templates/androidSTL )

Follow me on twitter! @MotionStruct
Motion Struct blog
kamac
8
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 9th Jan 2013 16:48 Edited at: 9th Jan 2013 16:58
Oh, now it's

arm-linux-androideabi-gcc.exe: jni/main.c: Permission denied
arm-linux-androideabi-gcc.exe: no input files
make: *** [obj/local/armeabi/objs/android_player/main.o] Error 1



Weird. On WinXP?

@EDIT

Restarted cygwin and now it works. *Magic*
I hate this.

@EDIT2

Though, I can't get anything to display on screen.
I guess problem lays here (logcat):

Quote: "01-09 15:57:38.114: E/libEGL(1044): validate_display_config:501 error 3005 (EGL_BAD_CONFIG)"


Follow me on twitter! @MotionStruct
Motion Struct blog
Ancient Lady
Valued Member
15
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 9th Jan 2013 17:40
Are you trying to use the Eclipse simulator?

Or are you directly connected to your Android device and trying to execute from Eclipse?

You seem to indicate that you are using the Wiki v1076 template. Is it safe to assume that you set your Android environment up using v1076?

Did you do a clean before each build (to make sure old 'bad' stuff is gone)?

If you did a build while Eclipse was open, did you refresh the project in Eclipse before you tried to run it? (Select your project and press the F5 key, and it doesn't give any response.)

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
kamac
8
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 9th Jan 2013 17:53 Edited at: 9th Jan 2013 17:54
Quote: "Are you trying to use the Eclipse simulator?"


Yes.

Quote: "You seem to indicate that you are using the Wiki v1076 template. Is it safe to assume that you set your Android environment up using v1076?"


Well, things used to compile, although, I'll install AppGameKit 1.076 once again, just to be sure that I am using correct version.

Quote: "Did you do a clean before each build (to make sure old 'bad' stuff is gone)?"


Yes.

Quote: "If you did a build while Eclipse was open, did you refresh the project in Eclipse before you tried to run it? (Select your project and press the F5 key, and it doesn't give any response.)"


Yes.


By the way, have you got an idea why NDK does not support <functional> header? I have included STL with APP_STL := gnustl_static inside Application.mk. <string> and so on works, but not <functional>. I guess they haven't included it within gnustl or something.

Follow me on twitter! @MotionStruct
Motion Struct blog
Ancient Lady
Valued Member
15
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 9th Jan 2013 18:19
The Eclipse simulator doesn't work. This is known and TGC doesn't know how to fix it.

You need an actual Android device to test on.

I use Eclipse to 'run' the app after building in cygwin and then copy the apk file in the <proj>/bin directory to my tablet for testing. I had a problem getting Eclipse to see my tablets on my computer, so I gave up.

I don't know what <functional> is referencing. Maybe it is not supported by Android.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
kamac
8
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 9th Jan 2013 19:19
Quote: "The Eclipse simulator doesn't work. This is known and TGC doesn't know how to fix it."


Oh boy.

Testing on an actual device with T2 is quite - uh. Slow.

Quote: "I don't know what <functional> is referencing. Maybe it is not supported by Android."


Probably. I'll switch over to boost.

Follow me on twitter! @MotionStruct
Motion Struct blog

Login to post a reply

Server time is: 2019-08-22 10:02:22
Your offset time is: 2019-08-22 10:02:22