Page 12 of 33

Re: love-android-sdl2 (native, 0.9.0)

Posted: Tue Feb 18, 2014 9:33 pm
by opatut
I have created a small bash script that zips a game as a love package, sends it to the device, and starts the app with that file (which has been made possible quite recently, thanks for that!). You can download it here:

https://gist.github.com/opatut/9080543

Code: Select all

wget -O love-android-package https://gist.github.com/opatut/9080543/raw
You can run it either with a *.love file as argument, or directly in a directory, which is then being zipped.

Code: Select all

love-android-package game.love
# or
love-android-package
Have fun, and thanks for the awesome work done on this project.

Re: love-android-sdl2 (native, 0.9.0)

Posted: Wed Feb 19, 2014 3:57 am
by alberto_lara
I'm having problems with canvases, are there issues with that?
(I didn't see anything related here: https://bitbucket.org/MartinFelis/love- ... tatus=open )

Re: love-android-sdl2 (native, 0.9.0)

Posted: Wed Feb 19, 2014 4:07 am
by slime
Yep, it should be fixed now in the latest code (https://bitbucket.org/MartinFelis/love- ... ate-canvas), but beta 1 was released before the fix.

Re: love-android-sdl2 (native, 0.9.0)

Posted: Wed Feb 19, 2014 4:15 am
by alberto_lara
slime, many many thanks for that :)

then, is the beta1 updated with this fix now?

Re: love-android-sdl2 (native, 0.9.0)

Posted: Wed Feb 19, 2014 9:06 am
by Karai17
No, the fix will probably be in beta 2

Re: love-android-sdl2 (native, 0.9.0)

Posted: Wed Feb 19, 2014 5:49 pm
by alberto_lara
Thanks, I'll have to build the apk then :)

Re: love-android-sdl2 (native, 0.9.0)

Posted: Wed Feb 19, 2014 8:48 pm
by alberto_lara
By the way, should this commands be enough to build the apk?:

Code: Select all

android update project -p ./MartinFelis-love-android-sdl2-cb2c852f5827
ant release

Re: love-android-sdl2 (native, 0.9.0)

Posted: Thu Feb 20, 2014 4:50 am
by Davidobot
alberto_lara wrote:By the way, should this commands be enough to build the apk?:

Code: Select all

android update project -p ./MartinFelis-love-android-sdl2-cb2c852f5827
ant release
I don't think so?
You need to cd into your repo and run

Code: Select all

ndk-build
ant debug

Re: love-android-sdl2 (native, 0.9.0)

Posted: Thu Feb 20, 2014 10:01 am
by fysx
alberto_lara wrote:By the way, should this commands be enough to build the apk?:

Code: Select all

android update project -p ./MartinFelis-love-android-sdl2-cb2c852f5827
ant release
No this does not work. As others have mentioned you need the Android SDK and Android NDK and Apache Ant (and possibly a Java SDK a.k.a. JDK).

The SDK's and Ant have to be installed such that the environment variables ANDROID_SDK and ANDROID_NDK point to their directories. Additionally you have to add the directories containing ndk-build (is in the root directory of the NDK) and ant to your PATH environment variables.

Additionally to make a release build you need to create a key using keytool and sign the APK. This is explained at http://developer.android.com/tools/publ ... gning.html

Please note that building and packaging is quite advanced and you need to either have the skills already or willed to invest some time (hours, maybe days) to become comfortable with it.

Re: love-android-sdl2 (native, 0.9.0)

Posted: Thu Feb 20, 2014 7:54 pm
by alberto_lara
Thanks for you answer fysx, I have sometimes the (bad) habit to ask for something I could google it (sorry about that), but I'm a programmer and after investigate like 1 hr I finally build my apk and it work fine on genymotion. Again many thanks :)