Page 1 of 1

Building APK

Posted: Sat Jan 18, 2020 2:38 pm
by axehigh
Hi,

I am trying to build a APK, using the "https://github.com/love2d/love-android" repo. I've copied the game.love file into the asset folder. When running "gradlew assemble" the build fails, because

" Missing LOVE. Make sure to initialize the submodule correctly!"

The error message is coming from the Android.mk file

Code: Select all

LOVE_JNI_DIR := $(call my-dir)
IS_NDK_R17 := $(shell python ${LOVE_JNI_DIR}/detect_ndkrel.py $(NDK_ROOT)/source.properties 17)
IS_ANDROID_21 := $(shell python ${LOVE_JNI_DIR}/detect_androidapi.py $(TARGET_PLATFORM) 21)
HAS_LOVE := $(shell python ${LOVE_JNI_DIR}/detect_love.py ${LOVE_JNI_DIR})

ifneq (${HAS_LOVE},yes)
    $(error Missing LOVE. Make sure to initialize the submodule correctly!)
endif

include $(call all-subdir-makefiles)
Apparently has_love is false. What is missing here?

Love is installed, so I fail to see what is missing here

Re: Building APK

Posted: Tue Jan 28, 2020 4:15 pm
by AuahDark
Make sure to clone the submodules along with the repository.

Code: Select all

git clone --recurse-submodules https://github.com/love2d/love-android
I added that check because often people did not clone the repository correctly. I should probably updated the readme to include this notice.

EDIT: Added important instructions to love-android readme.