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 / Tier 1 - Compile to Android - Need help

Author
Message
Trisect Development
21
Years of Service
User Offline
Joined: 8th Sep 2002
Location: Denmark
Posted: 20th Jan 2012 11:09
I'm trying to follow the guide on how to compile your Tier1 app to Android.

I have installed Eclipse, Android SDK, Cygwin and I have copyed android-ndk-r7 and IDE/apps to the c:\android folder.

I think I have every thing installed and setup so far. I also renamed the awk file as mentioned in another thread.

Then I come to this line in the guide:
Quote: "To compile the tier 1 interpreter app open cygwin and browse to the android interpreter directory"


Now the guide tells me to compile the interpreter and thats where I can't continue.

I open Cygwin console and type gcc "/cygdrive/c/android/android-ndk-r7/ndk-build" 2> log.txt
I get this error message in the log.txt:

Quote: "/cygdrive/x/android/android-ndk-r7/ndk-build: file not recognized: File format no recognizedcollect2: ld returned 1 exit status"


I can't pass this step. What do I do wrong, what could I have forgotten to do?

I really need some help on this. I have my game (who is running fine on iPad) and I want to port it to my Android tablet device.

iOS Apps from Trisect Development.
Click here.
Trisect Development
21
Years of Service
User Offline
Joined: 8th Sep 2002
Location: Denmark
Posted: 20th Jan 2012 11:23 Edited at: 20th Jan 2012 11:28
Ohh I tried this in the Cygwin console:

$ "/cygdrive/c/android/android-ndk-r7/ndk-build" 2> log.txt and this time it worked.

No need for the gcc command. I did a Google search and found out that gcc is the compile command for Cygwin. Thats why I tried with that.

And the AGKPlayer is running.....

GREAT....

iOS Apps from Trisect Development.
Click here.
Trisect Development
21
Years of Service
User Offline
Joined: 8th Sep 2002
Location: Denmark
Posted: 20th Jan 2012 15:54 Edited at: 20th Jan 2012 15:54
Okay so far so good.

When I try to compile and run my game on the device/emulator it gives me an error:

Quote: "The application Memory Wars (process dk.trisect.MemoryWars) has stopped unexpectedly. Please try again.
"


What does this error mean?

iOS Apps from Trisect Development.
Click here.
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 21st Jan 2012 14:32
You should see more info on the error in the Eclipse log window.The error you have posted is a general error that tells you nothing.

Trisect Development
21
Years of Service
User Offline
Joined: 8th Sep 2002
Location: Denmark
Posted: 21st Jan 2012 18:05
So I copied the AGKplayer folder who was working.
I copied my game assets and is it working.

So it must be when I try to rename the project.
I will try it step by step to see when the error occurs.

iOS Apps from Trisect Development.
Click here.
Trisect Development
21
Years of Service
User Offline
Joined: 8th Sep 2002
Location: Denmark
Posted: 21st Jan 2012 18:14
Hey I got it Working now.

I think I changed something in the manifest file that should not be changed.

iOS Apps from Trisect Development.
Click here.

Login to post a reply

Server time is: 2024-04-26 22:10:57
Your offset time is: 2024-04-26 22:10:57