Exported debug APK doesn't work!

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.
Post Reply
mizothedev
Prole
Posts: 2
Joined: Mon Nov 07, 2016 6:44 pm

Exported debug APK doesn't work!

Post by mizothedev »

I've recently been working on a game for android and I've been testing it using the LÖVE For Android downloaded from the Play Store. I wanted to try it as an APK to see if everything is fine, turns out the thing doesn't even work. I followed this tutorial https://www.reddit.com/r/love2d/comment ... ld_an_apk/ exactly then I installed the resulting love-android-debug.apk an this is what I got:
https://www.dropbox.com/s/uylkxg4tr0ajv ... .jpeg?dl=0

(If that link doesn't work it's just a message: "Unfortunately, LÖVE For Android has stopped." and two buttons "OK" and "Try to Solve")

The .love file works fine with the Play Store version of LÖVE For Android but the debug APK doesn't :( !

When I tried to build Love SDL (ndk-build step) I got this:

Code: Select all

[armeabi] SharedLibrary  : liblove.so
[armeabi-v7a] SharedLibrary  : liblove.so
[armeabi] Install        : libmpg123.so => libs/armeabi/libmpg123.so
[armeabi] Install        : libopenal.so => libs/armeabi/libopenal.so
[armeabi] Install        : libgnustl_shared.so => libs/armeabi/libgnustl_shared.so
[armeabi-v7a] Install        : libmpg123.so => libs/armeabi-v7a/libmpg123.so
[armeabi-v7a] Install        : libopenal.so => libs/armeabi-v7a/libopenal.so
[armeabi-v7a] Install        : libgnustl_shared.so => libs/armeabi-v7a/libgnustl_shared.so
/home/mizo/ANDROID/android-ndk-r13b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: ./obj/local/armeabi-v7a/libfreetype.a(ftbase.o): multiple definition of 'FT_Load_Glyph'
/home/mizo/ANDROID/android-ndk-r13b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi-v7a/libfreetype.a(ftobjs.o): previous definition here
/home/mizo/ANDROID/android-ndk-r13b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: ./obj/local/armeabi-v7a/libfreetype.a(ftbase.o): multiple definition of 'FT_GlyphLoader_New'
/home/mizo/ANDROID/android-ndk-r13b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi-v7a/libfreetype.a(ftgloadr.o): previous definition here
......
......
......
/home/mizo/ANDROID/android-ndk-r13b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi/libfreetype.a(ftbase.o): previous definition here
collect2: error: ld returned 1 exit status
/home/mizo/ANDROID/android-ndk-r13b/build/core/build-binary.mk:702: recipe for target 'obj/local/armeabi/liblove.so' failed
make: *** [obj/local/armeabi/liblove.so] Error 1
There was a ton of other stuff in place of the [.....] but it is too long.

Please help. I don't want to switch engines LÖVE2D is awesome and I want to use it besides I am already halfway in my game so I don't want to start over in another engine :cry: .
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Exported debug APK doesn't work!

Post by bartbes »

The compilation failure looks like this issue.
mizothedev
Prole
Posts: 2
Joined: Mon Nov 07, 2016 6:44 pm

Re: Exported debug APK doesn't work!

Post by mizothedev »

bartbes wrote:The compilation failure looks like this issue.
Thanks! I updated the Android.mk file https://bitbucket.org/MartinFelis/love- ... ts/08b116c and it worked :ultrahappy: !
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests