Love2D Windows, Android, Flash (test) exporter

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Snake174rus
Prole
Posts: 32
Joined: Thu Aug 28, 2014 8:38 am
Location: Russia
Contact:

Re: Love2D Windows, Android, Flash (test) exporter

Post by Snake174rus »

SiENcE wrote:Could you make a github repository where people can access the project code?
Лови: Sources
User avatar
IceQB
Citizen
Posts: 67
Joined: Sat Nov 03, 2012 1:11 pm

Re: Love2D Windows, Android, Flash (test) exporter

Post by IceQB »

Problem is that program automatically delete .apk file. Can you compile and upload version with automatically deleting files turned off?
Snake174rus
Prole
Posts: 32
Joined: Thu Aug 28, 2014 8:38 am
Location: Russia
Contact:

Re: Love2D Windows, Android, Flash (test) exporter

Post by Snake174rus »

Program without delete, sign and align android files. Can you insert log message here?
User avatar
IceQB
Citizen
Posts: 67
Joined: Sat Nov 03, 2012 1:11 pm

Re: Love2D Windows, Android, Flash (test) exporter

Post by IceQB »

Log:

Code: Select all

Export started

Get build info - OK
Create build folder - OK
Copy libraries - OK
Create game.love file - OK
Create default.properties file - OK
Create project.properties file - OK
Create AndroidManifest.xml file - OK
Copy scripts - OK
Create executable file:
C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame>set ANT_HOME=C:\ant C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame>set JAVA_HOME=C:\java_jdk C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame>set ANDROID_SDK=C:\android_sdk C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame>set ANDROID_HOME=C:\android_sdk C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame>set ANDROID_NDK=C:\android_ndk C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame>set ANDROID_SWT=C:\android_sdk\tools\lib\x86 C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame>set PATH=C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\QuickTime\QTSystem\ ;C:\ant\bin;C:\android_sdk\tools;C:\android_ndk;C:\ant\bin;C:\android_sdk\tools;C:\android_ndk C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame>C:\ant\bin\ant release 
Buildfile: C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\build.xml 
-set-mode-check: -set-release-mode: -release-obfuscation-check: [echo] proguard.config is ${proguard.config} -pre-build: -check-env: [checkenv] Android SDK Tools Revision 23.0.5 [checkenv] Installed at C:\android_sdk -setup: [echo] Project Name: game [gettype] Project Type: Application -build-setup: [getbuildtools] Using latest Build Tools: 21.1.1 [echo] Resolving Build Target for game... 
[gettarget] Project Target: Android 2.3.3 [gettarget] API level: 10 [echo] ---------- [echo] Creating output directories if needed... [mkdir] Created dir: C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\bin [mkdir] Created dir: C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\bin\res [mkdir] Created dir: C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\bin\rsObj [mkdir] Created dir: C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\bin\rsLibs [mkdir] Created dir: C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\gen [mkdir] Created dir: C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\bin\classes [mkdir] Created dir: C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\bin\dexedLibs [echo] ---------- [echo] Resolving Dependencies for game... [dependency] Library dependencies: [dependency] No Libraries [dependency] [dependency] ------------------ [dependency] API
[echo] ---------- [echo] Handling BuildConfig class... [buildconfig] Generating BuildConfig class. -pre-compile: -compile: 
[javac] Compiling 7 source files to C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\bin\classes 
[javac] Note: C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\src\org\libsdl\app\SDLActivity.java uses or overrides a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. -post-compile: -obfuscate: -dex: [dex] input: C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\bin\classes [dex] input: C:\android_sdk\tools\support\annotations.jar [dex] Pre-Dexing C:\android_sdk\tools\support\annotations.jar -> annotations-09e7c8c4019778a1ef8e317df561f72e.jar 
[dex] Converting compiled files and external libraries into C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\bin\classes.dex... 
[dx] Merged dex A (20 defs/26,3KiB) with dex B (2 defs/1,1KiB). Result is 22 defs/30,8KiB. Took 0,0s -crunch: 
[crunch] Crunching PNG Files in source dir: C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\res [crunch] To destination dir: C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\bin\res [crunch] Processing image to cache: C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\res\drawable-hdpi\ic_launcher.png => C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\bin\res\drawable-hdpi\ic_launcher.png [crunch] (processed image to cache entry C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\bin\res\drawable-hdpi\ic_launcher.png: 53% size of source) [crunch] Processing image to cache: C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\res\drawable-mdpi\ic_launcher.png => C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\bin\res\drawable-mdpi\ic_launcher.png [crunch] (processed image to cache entry C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\bin\res\drawable-mdpi\ic_launcher.png: 0% size of source) [crunch] Processing image to cache: C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\res\drawable-xhdpi\ic_launcher.png => C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\bin\res\drawable-xhdpi\ic_launcher.png [crunch] (processed image to cache entry C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\bin\res\drawable-xhdpi\ic_launcher.png: 95% size of source) [crunch] Processing image to cache: C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\res\drawable-xxhdpi\ic_launcher.png => C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\bin\res\drawable-xxhdpi\ic_launcher.png [crunch] (processed image to cache entry C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\bin\res\drawable-xxhdpi\ic_launcher.png: 89% size of source) [crunch] Crunched 4 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 game-release-unsigned.apk for release... 
-post-package: -release-prompt-for-password: -release-nosign: [echo] No key.store and key.alias properties found in build.properties. [echo] Please sign C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\bin\game-release-unsigned.apk manually [echo] and run zipalign from the Android SDK tools. [propertyfile] Creating new property file: C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\bin\build.prop [propertyfile] Updating property file: C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\bin\build.prop [propertyfile] Updating property file: C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\bin\build.prop [propertyfile] Updating property file: C:\Users\IceQB\Downloads\LoveExporter01\LoveExporter01\LoveGame\bin\build.prop -release-sign: -post-build: release: BUILD SUCCESSFUL Total time: 11 seconds 
Create apk file - OK
Sign apk file:
Enter Passphrase for keystore: 
adding: META-INF/MANIFEST.MF 
adding: META-INF/SNAKE174.SF adding: META-INF/SNAKE174.RSA signing: AndroidManifest.xml signing: assets/game.love signing: res/drawable-hdpi-v4/ic_launcher.png signing: res/drawable-mdpi-v4/ic_launcher.png signing: res/drawable-xhdpi-v4/ic_launcher.png signing: res/drawable-xxhdpi-v4/ic_launcher.png signing: resources.arsc signing: classes.dex signing: org/libsdl/app/old._ja signing: lib/armeabi/libdevil.so 
signing: lib/armeabi/libgnustl_shared.so 
signing: lib/armeabi/liblove.so 
signing: lib/armeabi/libmpg123.so 
signing: lib/armeabi/libopenal.so 
signing: lib/armeabi-v7a/libdevil.so 
signing: lib/armeabi-v7a/libgnustl_shared.so 
signing: lib/armeabi-v7a/liblove.so 
signing: lib/armeabi-v7a/libmpg123.so signing: lib/armeabi-v7a/libopenal.so 
signing: lib/x86/libdevil.so 
signing: lib/x86/libgnustl_shared.so 
signing: lib/x86/liblove.so 
signing: lib/x86/libmpg123.so signing: lib/x86/libopenal.so 
Align apk file:
Clear temp files - OK

Export finished
When process is running:
http://www.fotosik.pl/pokaz_obrazek/487 ... e804d.html

When process is finished:
http://images67.fotosik.pl/355/2bb9319da7a93e8egen.png

When I use program with automatically deleting temp files, sign and align turned off, i get game-release-unsigned.apk in LoveExporter01\LoveGame\bin folder. After (and before too) signing and aligning, I receive a blackscreen and game has crashes to android menu.
Snake174rus
Prole
Posts: 32
Joined: Thu Aug 28, 2014 8:38 am
Location: Russia
Contact:

Re: Love2D Windows, Android, Flash (test) exporter

Post by Snake174rus »

Program delete apk file because can't find zipalign tool.
After (and before too) signing and aligning, I receive a blackscreen and game has crashes to android menu.
Can you run apk in emulator and type here logcat?

May be you are using in the project some specific library like a Loveframes?
And if you try to display one image will it work?
I have Android 2.3.3 all worked well on emulator and real device.
Snake174rus
Prole
Posts: 32
Joined: Thu Aug 28, 2014 8:38 am
Location: Russia
Contact:

Re: Love2D Windows, Android, Flash (test) exporter

Post by Snake174rus »

Version 0.2 (15.1 Mb without data folder)

Added settings for file conf.lua (create if not exist)

Image
User avatar
IceQB
Citizen
Posts: 67
Joined: Sat Nov 03, 2012 1:11 pm

Re: Love2D Windows, Android, Flash (test) exporter

Post by IceQB »

Version 0.2 crashes on startup.
http://images69.fotosik.pl/364/b1bc5871fdd58547gen.png

In the last days I worked on problems with export . I tried to build * .apk with ndk and ant, but the *.apk crashes with error 'The application Love for Android (process com.love2d.android) has stopped unexpectedly. Please try again.' , so I think the problem with exports is by my side, not your program.

In a few days I will again check all android stuff , maybe I skip something.
Snake174rus
Prole
Posts: 32
Joined: Thu Aug 28, 2014 8:38 am
Location: Russia
Contact:

Re: Love2D Windows, Android, Flash (test) exporter

Post by Snake174rus »

Version 0.2 crashes on startup.
I'm sorry. I forget put some plugins needed for Qt5. It's will be posted later. The first time I work with Qt5 and I don't know all of the details of this version. Usually compile programs on VirtualBox which is a 32 bit windows and Qt4. This time I had to build on another computer.
In a few days I will again check all android stuff , maybe I skip something.
Good luck. Replaced here when you solve the problem please.
Snake174rus
Prole
Posts: 32
Joined: Thu Aug 28, 2014 8:38 am
Location: Russia
Contact:

Re: Love2D Windows, Android, Flash (test) exporter

Post by Snake174rus »

It's will be posted later.
Just unpack this archive in folder with program.

It's one bug founded. Need set version "0.9.1" (without quotes) in Settings->Game tab in Version field.
Snake174rus
Prole
Posts: 32
Joined: Thu Aug 28, 2014 8:38 am
Location: Russia
Contact:

Re: Love2D Windows, Android, Flash (test) exporter

Post by Snake174rus »

Hi All!

Who can test new exporter for Mac OS?
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Semrush [Bot] and 4 guests