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 / It is really very complex to setup the Android environment.

Author
Message
halley
13
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 14th Jul 2012 14:07
Can someone make a easier way to compile Android Games?

The Miracrea Games
The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 15th Jul 2012 15:57
Unfortunley, I don't think it's possible. Since TGC has chosen to write AppGameKit in C++ (I think), That code has to be compiled and hence you have to use the NDK and cygwin stuff. Even without it, I don't think it's possible to make it that easy. The good thing about it is that when you have managed to compile an app once, doing it again is realy easy.

What parts of the process are you having problems with?
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 15th Jul 2012 23:17 Edited at: 15th Jul 2012 23:22
Quote: "Can someone make a easier way to compile Android Games?"

It seams extremely complicated first
Create a directory on harddrive c called Android.
There do you install everything you nead except the java sdk as it self its not neaded there.
Create a empty directory called workspace.
Create a empty directory called cygpackage.
eclipse 3.7.2
http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.7.2-201202080800/eclipse-SDK-3.7.2-win32.zip
java jdk that you simply install where it wants to be.
http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u31-download-1501634.html
android sdk to place in your android directory on c.
http://dl.google.com/android/installer_r17-windows.exe
and here's the location for the ADT Plugin that you type in to eclipse.
http://dl-ssl.google.com/android/eclipse/
Android ndk that you also place inside the android directory you created.
http://dl.google.com/android/ndk/android-ndk-r6b-windows.zip
cycwin you also place inside the android directory.
http://www.cygwin.com/install.html

Thanks to rich for all the links that saved me a few hours today

Here is also all the command prompts you type inside cygwin if you follow danieltgcs tutorial.

Keep in mind that Samsung@Samsung-Dator ~ is wath my computer is called inside cygwin.


If you follow daniels tutorial so should the directory look like this when you are finished.(see picture)



Rich have something going that makes the nead for cygwin obselete?

Android 2.3 Gingerbread , ZTE Skate , 480x800 , 4.3 inches , 800 mhz cpu , 512 mb ram
Android 4.0 Sandwich , Dmtech 3g 9738B , 1024x768 , 9.7 inches , cortex A8 1.2 cpu , 1 gb ram.

Attachments

Login to view attachments
The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 16th Jul 2012 00:25
Quote: "Samsung@Samsung-Dator ~
$ cd /cygdrive/c/Android/AGK/IDE/apps/interpreter_android

Samsung@Samsung-Dator /cygdrive/c/Android/AGK/IDE/apps/interpreter_android
$ /cygdrive/c/Android/android-ndk-r6b/ndk-build 2> log.txt

"


These are the only commands that I have ever needed to use

Quote: "Rich have something going that makes the nead for cygwin obselete?"


Like I said, that's probably unlikley since the NDK is made to work in a linux enviroment. Which is what cygwin creates
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 16th Jul 2012 00:43
Quote: "Samsung@Samsung-Dator ~
$ chmod 777 /cygdrive/c/Android/AGK/* -R"

this removes the read write protection from the agk files the first time.

Quote: "Samsung@Samsung-Dator ~
$ make -v"

Checks so you have installed it right.

Once you have done them so dont you nead them the next time.
You would only nead.
Quote: "Quote: "Samsung@Samsung-Dator ~
$ cd /cygdrive/c/Android/AGK/IDE/apps/interpreter_android

Samsung@Samsung-Dator /cygdrive/c/Android/AGK/IDE/apps/interpreter_android
$ /cygdrive/c/Android/android-ndk-r6b/ndk-build 2> log.txt"


Quote: "Like I said, that's probably unlikley since the NDK is made to work in a linux enviroment. Which is what cygwin creates "

He wrote something about not neading it everytime you yu change your code but somekind of autocompile?

Android 2.3 Gingerbread , ZTE Skate , 480x800 , 4.3 inches , 800 mhz cpu , 512 mb ram
Android 4.0 Sandwich , Dmtech 3g 9738B , 1024x768 , 9.7 inches , cortex A8 1.2 cpu , 1 gb ram.
The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 16th Jul 2012 00:51 Edited at: 16th Jul 2012 00:58
Oh, I think, that the NDK only compiles the Interpreter stuff. But once you have done that, it may be enough to just replace the assets and Refresh>Clean>Build in eclipse.

EDIT:

Yep that seems to be the case.

If you have a working app, but want to update the assets (new media and bytecode), you don't have to use cygwin at all. All you need to do is to replace the media, go to eclipse and Refresh, clean and run the app. This will save me a lot of time
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 16th Jul 2012 00:55
Iam going to try to make a brand new player for the latest release to see if i can learn this some more

Wonder if tgc gets made if i put up an unofficial player on the market so others can use it?
As an experiment to get it to work?

Android 2.3 Gingerbread , ZTE Skate , 480x800 , 4.3 inches , 800 mhz cpu , 512 mb ram
Android 4.0 Sandwich , Dmtech 3g 9738B , 1024x768 , 9.7 inches , cortex A8 1.2 cpu , 1 gb ram.
Impetus73
13
Years of Service
User Offline
Joined: 28th Aug 2011
Location: Volda, Norway
Posted: 19th Jul 2012 21:35
Setting up the Android environment is not that hard, what sucks, is trying to update 10 different projects, when a new version of AppGameKit comes out, I end up setting up the android directory from scratch, and all the projects too every time, there is just so much that is changed, I can't trust copying a few files will do it...

----------------
AGK programmer
Did Amiga / AMOS programming in the 90's.
gamelover2012
12
Years of Service
User Offline
Joined: 20th Jul 2012
Location:
Posted: 20th Jul 2012 16:58
But I think it's very difficult to code for Android than it's for iOS

http://www.websitelibrary.org
blazeminds
12
Years of Service
User Offline
Joined: 13th Jul 2012
Location:
Posted: 3rd Sep 2012 14:43
message receiving problem in android is any one help i am not receiving message notification

[url="http://creditloanadvice.com/best-top-10-english-songs-2012-ten-latest-list-2011/"]Top 10 English Songs[/url]
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 17th Sep 2012 18:02
blazeminds, sounds like you need to start a new thread and provide a lot more detail so that we may help you.

Cheers,
Ancient Lady
AGK Community Tester

Login to post a reply

Server time is: 2024-11-23 15:32:40
Your offset time is: 2024-11-23 15:32:40