[tool] LoveToAndroid - .love to .apk without thinking

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
qubodup
Inner party member
Posts: 775
Joined: Sat Jun 21, 2008 9:21 pm
Location: Berlin, Germany
Contact:

Re: [tool] LoveToAndroid - .love to .apk without thinking

Post by qubodup »

SrWoOoW wrote::awesome: :awesome: :awesome: :awesome: :awesome: its cool but with love 0.9.2 can not be used love.touchpressed :cry: :cry:
The android-specific things will only work on android. make an apk and throw it in an emulator. Also: just use love.mousepressed for simple stuff.
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
teeter11
Prole
Posts: 27
Joined: Sun Jan 12, 2014 8:48 pm

Re: [tool] LoveToAndroid - .love to .apk without thinking

Post by teeter11 »

This is aweseome! can you make this updated with love 0.10.0? it doesnt work if i change the files.
rayaman
Prole
Posts: 10
Joined: Sat May 17, 2014 6:18 pm

Re: [tool] LoveToAndroid - .love to .apk without thinking

Post by rayaman »

A version for 0.10.0 would be amazing.
User avatar
Sulunia
Party member
Posts: 203
Joined: Tue Mar 22, 2016 1:10 pm
Location: SRS, Brazil

Re: [tool] LoveToAndroid - .love to .apk without thinking

Post by Sulunia »

Real plus if there was a 0.10 version of this. Pretty please? xD
Don't check my github! It contains thousands of lines of spaghetti code in many different languages cool software! :neko:
https://github.com/Sulunia
rayaman
Prole
Posts: 10
Joined: Sat May 17, 2014 6:18 pm

Re: [tool] LoveToAndroid - .love to .apk without thinking

Post by rayaman »

I have been working on a version for 0.10.1 and I got it to compile, but the .apk after being installed always crashes when i try to run the app... If i get it working ill let you all know!
User avatar
qubodup
Inner party member
Posts: 775
Joined: Sat Jun 21, 2008 9:21 pm
Location: Berlin, Germany
Contact:

Re: [tool] LoveToAndroid - .love to .apk without thinking

Post by qubodup »

0.10.1 version ready

https://youtu.be/TAZo-pin4nE

You'll need https://qubodup.itch.io/startgamedev (it's free, just skip the donation thing)

EDIT: Sorry for the YouTube issues. Hopefully they will be resolved in time.
Backups of the videos are available (public, no need for FB account) at https://www.facebook.com/love2Dengine/p ... 9545637201
Last edited by qubodup on Thu Aug 11, 2016 7:25 pm, edited 1 time in total.
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
Sisi
Prole
Posts: 3
Joined: Wed Jun 22, 2016 3:08 pm

Re: [tool] LoveToAndroid - .love to .apk without thinking

Post by Sisi »

You guys are GENIUS, thank you!
Mega
Prole
Posts: 1
Joined: Wed Aug 03, 2016 11:24 am

Re: [tool] LoveToAndroid - .love to .apk without thinking

Post by Mega »

If this works great, it could be lot of time saved for game makers not wanting to compile the entire Löve Android thing. I'll try it sometime soon !
User avatar
scissors61
Citizen
Posts: 76
Joined: Fri Jan 08, 2016 10:16 am

Re: [tool] LoveToAndroid - .love to .apk without thinking

Post by scissors61 »

Hey qubodup, this would be awesome if it works out. I tried to install it in Linux, followed your guide, with the package you provided I installed Android SDK. But I get an error. Can you help me? I'll post the results I got on the terminal.

Code: Select all

rm: cannot remove ‘game.apk’: No such file or directory
Buildfile: /home/pedro/Desktop/guardar/software/love2apk/StartGamedev-160604-linux/tools/love-android-sdl2/build.xml

-set-mode-check:

-set-debug-files:

-check-env:
 [checkenv] Android SDK Tools Revision 25.2.1
 [checkenv] Installed at /home/pedro/Desktop/guardar/software/love2apk/StartGamedev-160604-linux/tools/android-linux

-setup:
     [echo] Project Name: love_android_sdl2
  [gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 19.1.0
     [echo] Resolving Build Target for love_android_sdl2...
[gettarget] Project Target:   Android 4.4.2
[gettarget] API level:        19
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: /home/pedro/Desktop/guardar/software/love2apk/StartGamedev-160604-linux/tools/love-android-sdl2/bin
    [mkdir] Created dir: /home/pedro/Desktop/guardar/software/love2apk/StartGamedev-160604-linux/tools/love-android-sdl2/bin/res
    [mkdir] Created dir: /home/pedro/Desktop/guardar/software/love2apk/StartGamedev-160604-linux/tools/love-android-sdl2/bin/rsObj
    [mkdir] Created dir: /home/pedro/Desktop/guardar/software/love2apk/StartGamedev-160604-linux/tools/love-android-sdl2/bin/rsLibs
    [mkdir] Created dir: /home/pedro/Desktop/guardar/software/love2apk/StartGamedev-160604-linux/tools/love-android-sdl2/gen
    [mkdir] Created dir: /home/pedro/Desktop/guardar/software/love2apk/StartGamedev-160604-linux/tools/love-android-sdl2/bin/classes
    [mkdir] Created dir: /home/pedro/Desktop/guardar/software/love2apk/StartGamedev-160604-linux/tools/love-android-sdl2/bin/dexedLibs
     [echo] ----------
     [echo] Resolving Dependencies for love_android_sdl2...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency] 
[dependency] ------------------
     [echo] ----------
     [echo] Building Libraries with 'debug'...
   [subant] No sub-builds to iterate on

-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Generating resource IDs...
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:
    [javac] Compiling 7 source files to /home/pedro/Desktop/guardar/software/love2apk/StartGamedev-160604-linux/tools/love-android-sdl2/bin/classes
    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] Note: /home/pedro/Desktop/guardar/software/love2apk/StartGamedev-160604-linux/tools/love-android-sdl2/src/org/libsdl/app/SDLActivity.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 3 warnings

-post-compile:

-obfuscate:

-dex:
      [dex] input: /home/pedro/Desktop/guardar/software/love2apk/StartGamedev-160604-linux/tools/love-android-sdl2/bin/classes
      [dex] Converting compiled files and external libraries into /home/pedro/Desktop/guardar/software/love2apk/StartGamedev-160604-linux/tools/love-android-sdl2/bin/classes.dex...

-crunch:
   [crunch] Crunching PNG Files in source dir: /home/pedro/Desktop/guardar/software/love2apk/StartGamedev-160604-linux/tools/love-android-sdl2/res
   [crunch] To destination dir: /home/pedro/Desktop/guardar/software/love2apk/StartGamedev-160604-linux/tools/love-android-sdl2/bin/res
   [crunch] Processing image to cache: /home/pedro/Desktop/guardar/software/love2apk/StartGamedev-160604-linux/tools/love-android-sdl2/res/drawable-xxhdpi/ic_launcher.png => /home/pedro/Desktop/guardar/software/love2apk/StartGamedev-160604-linux/tools/love-android-sdl2/bin/res/drawable-xxhdpi/ic_launcher.png
   [crunch]   (processed image to cache entry /home/pedro/Desktop/guardar/software/love2apk/StartGamedev-160604-linux/tools/love-android-sdl2/bin/res/drawable-xxhdpi/ic_launcher.png: 80% size of source)
   [crunch] Crunched 1 PNG files to update cache

-package-resources:
     [aapt] Creating full resource package...

-package:
[apkbuilder] Current build type is different than previous build: forced apkbuilder run.
[apkbuilder] Creating love_android_sdl2-debug-unaligned.apk and signing it with a debug key...
[apkbuilder] Exception in thread "main" java.lang.ExceptionInInitializerError
[apkbuilder] 	at java.text.RBTableBuilder.build(RBTableBuilder.java:107)
[apkbuilder] 	at java.text.RBCollationTables.<init>(RBCollationTables.java:83)
[apkbuilder] 	at java.text.RuleBasedCollator.<init>(RuleBasedCollator.java:300)
[apkbuilder] 	at java.text.RuleBasedCollator.<init>(RuleBasedCollator.java:281)
[apkbuilder] 	at sun.util.locale.provider.CollatorProviderImpl.getInstance(CollatorProviderImpl.java:106)
[apkbuilder] 	at java.text.Collator.getInstance(Collator.java:242)
[apkbuilder] 	at java.text.Collator.getInstance(Collator.java:224)
[apkbuilder] 	at sun.security.tools.keytool.Main.<clinit>(Main.java:323)
[apkbuilder] Caused by: java.lang.RuntimeException: could not locate data
[apkbuilder] 	at sun.text.normalizer.NormalizerImpl.<clinit>(NormalizerImpl.java:60)
[apkbuilder] 	... 8 more

BUILD FAILED
/home/pedro/Desktop/guardar/software/love2apk/StartGamedev-160604-linux/tools/android-linux/tools/ant/build.xml:958: The following error occurred while executing this line:
/home/pedro/Desktop/guardar/software/love2apk/StartGamedev-160604-linux/tools/android-linux/tools/ant/build.xml:969: The following error occurred while executing this line:
/home/pedro/Desktop/guardar/software/love2apk/StartGamedev-160604-linux/tools/android-linux/tools/ant/build.xml:312: com.android.sdklib.build.ApkCreationException: Unable to get debug signature key
	at com.android.sdklib.build.ApkBuilder.getDebugKey(ApkBuilder.java:279)
	at com.android.sdklib.build.ApkBuilder.<init>(ApkBuilder.java:392)
	at com.android.ant.ApkBuilderTask.execute(ApkBuilderTask.java:334)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:396)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
	at com.android.ant.IfElseTask.execute(IfElseTask.java:124)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
	at com.android.ant.IfElseTask.execute(IfElseTask.java:124)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:396)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:435)
	at org.apache.tools.ant.Target.performTasks(Target.java:456)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
	at org.apache.tools.ant.Main.runBuild(Main.java:853)
	at org.apache.tools.ant.Main.startAnt(Main.java:235)
	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)

Total time: 7 seconds
cp: cannot stat ‘bin/love_android_sdl2-debug.apk’: No such file or directory
Skeletonxf
Citizen
Posts: 87
Joined: Tue Dec 30, 2014 6:07 pm

Re: [tool] LoveToAndroid - .love to .apk without thinking

Post by Skeletonxf »

Works great for me thank you!
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests