love-android-sdl2 (native, 0.9.2)

A project to port LÖVE to Android handhelds
Locked
opatut
Prole
Posts: 7
Joined: Mon Feb 20, 2012 2:34 pm

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

Post 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.
User avatar
alberto_lara
Party member
Posts: 372
Joined: Wed Oct 30, 2013 8:59 pm

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

Post 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 )
User avatar
slime
Solid Snayke
Posts: 3131
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

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

Post 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.
User avatar
alberto_lara
Party member
Posts: 372
Joined: Wed Oct 30, 2013 8:59 pm

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

Post by alberto_lara »

slime, many many thanks for that :)

then, is the beta1 updated with this fix now?
User avatar
Karai17
Party member
Posts: 930
Joined: Sun Sep 02, 2012 10:46 pm

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

Post by Karai17 »

No, the fix will probably be in beta 2
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+

Dev Blog | GitHub | excessive ❤ moé
User avatar
alberto_lara
Party member
Posts: 372
Joined: Wed Oct 30, 2013 8:59 pm

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

Post by alberto_lara »

Thanks, I'll have to build the apk then :)
User avatar
alberto_lara
Party member
Posts: 372
Joined: Wed Oct 30, 2013 8:59 pm

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

Post 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
User avatar
Davidobot
Party member
Posts: 1226
Joined: Sat Mar 31, 2012 5:18 am
Location: Oxford, UK
Contact:

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

Post 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
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
User avatar
fysx
Citizen
Posts: 97
Joined: Mon Jan 30, 2012 8:36 pm
Contact:

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

Post 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.
Bird thing: @fysxdotorg Blog thing: fysx.org
User avatar
alberto_lara
Party member
Posts: 372
Joined: Wed Oct 30, 2013 8:59 pm

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

Post 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 :)
Locked

Who is online

Users browsing this forum: No registered users and 20 guests