love2d / love-android

Android build setup for LÖVE.
https://love2d.org
Other
209 stars 73 forks source link

gradlew build fails in 0.11.x branch #181

Closed slime73 closed 5 years ago

slime73 commented 5 years ago

Original report by Chris Olsen (Bitbucket: chrisolsen, GitHub: chrisolsen).


I can build using the master branch (with some minor fixes), but building in the 0.11.x branch fails.

:love:generateJsonModelDebug
make: *** No rule to make target `/home/chris/Projects/games/target-practice/android/love/src/jni/SDL2-2.0.7/src/SDL_assert.c', needed by `/home/chris/Projects/games/target-practice/android/love/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs-debug/SDL2/src/SDL_assert.o'.  Stop.
:love:generateJsonModelDebug FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':love:generateJsonModelDebug'.
> Build command failed.
  Error while executing process /home/chris/Android/Ndk/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/home/chris/Projects/games/target-practice/android/love/src/jni/Android.mk NDK_APPLICATION_MK=/home/chris/Projects/games/target-practice/android/love/src/jni/Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-14 NDK_OUT=/home/chris/Projects/games/target-practice/android/love/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=/home/chris/Projects/games/target-practice/android/love/build/intermediates/ndkBuild/debug/lib -j4 APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n}
  rm -f /home/chris/Projects/games/target-practice/android/love/build/intermediates/ndkBuild/debug/lib/armeabi-v7a/*
  rm -f /home/chris/Projects/games/target-practice/android/love/build/intermediates/ndkBuild/debug/lib/armeabi-v7a/gdbserver
  rm -f /home/chris/Projects/games/target-practice/android/love/build/intermediates/ndkBuild/debug/lib/armeabi-v7a/gdb.setup
  mkdir -p /home/chris/Projects/games/target-practice/android/love/build/intermediates/ndkBuild/debug/lib/armeabi-v7a
  echo [armeabi-v7a] "Gdbserver      ": "[arm-linux-androideabi] /home/chris/Projects/games/target-practice/android/love/build/intermediates/ndkBuild/debug/lib/armeabi-v7a/gdbserver"
  install -p /home/chris/Android/Ndk/prebuilt/android-arm/gdbserver/gdbserver /home/chris/Projects/games/target-practice/android/love/build/intermediates/ndkBuild/debug/lib/armeabi-v7a/gdbserver
  echo [armeabi-v7a] "Gdbsetup       ": "/home/chris/Projects/games/target-practice/android/love/build/intermediates/ndkBuild/debug/lib/armeabi-v7a/gdb.setup"
  echo "set solib-search-path /home/chris/Projects/games/target-practice/android/love/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a" > /home/chris/Projects/games/target-practice/android/love/build/intermediates/ndkBuild/debug/lib/armeabi-v7a/gdb.setup
  echo "directory /home/chris/Android/Ndk/platforms/android-14/arch-arm /home/chris/Projects/games/target-practice/android/love/src/jni/SDL2-2.0.9/include /home/chris/Android/Ndk/sources/cxx-stl/llvm-libc++/include /home/chris/Android/Ndk/sources/cxx-stl/llvm-libc++/../llvm-libc++abi/include /home/chris/Android/Ndk/sources/android/support/include /home/chris/Android/Ndk/sources/cxx-stl/llvm-libc++abi /home/chris/Projects/games/target-practice/android/love/src/jni/freetype2-android/include /home/chris/Projects/games/target-practice/android/love/src/jni/freetype2-android/src /home/chris/Projects/games/target-practice/android/love/src/jni/love/src /home/chris/Projects/games/target-practice/android/love/src/jni/love/src/modules /home/chris/Projects/games/target-practice/android/love/src/jni/love/src/libraries/ /home/chris/Projects/games/target-practice/android/love/src/jni/love/src/libraries/enet/libenet/include /home/chris/Projects/games/target-practice/android/love/src/jni/love/src/libraries/physfs /home/chris/Projects/games/target-practice/android/love/src/jni/love/src/libraries/glslang/glslang/Include /home/chris/Projects/games/target-practice/android/love/src/jni/love/../SDL2-2.0.9/include /home/chris/Projects/games/target-practice/android/love/src/jni/love/../jasper-1.900.1/src/libjasper/include /home/chris/Projects/games/target-practice/android/love/src/jni/love/../libmng-1.0.10/ /home/chris/Projects/games/target-practice/android/love/src/jni/love/../lcms2-2.5/include /home/chris/Projects/games/target-practice/android/love/src/jni/love/../tiff-3.9.5/libtiff /home/chris/Projects/games/target-practice/android/love/src/jni/love/../openal-soft-1.18.2/include /home/chris/Projects/games/target-practice/android/love/src/jni/love/../openal-soft-1.18.2/OpenAL32/Include /home/chris/Projects/games/target-practice/android/love/src/jni/love/../freetype2-android/include /home/chris/Projects/games/target-practice/android/love/src/jni/love/../freetype2-android/src /home/chris/Projects/games/target-practice/android/love/src/jni/make: *** No rule to maketarget `/home/chris/Projects/games/target-practice/android/love/src/jni/SDL2-2.0.7/src/SDL_assert.c', needed by `/home/chris/Projects/games/target-practice/android/love/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs-debug/SDL2/src/SDL_assert.o'.  Stop.
  love/../mpg123-1.17.0/src/libmpg123 /home/chris/Projects/games/target-practice/android/love/src/jni/love/../libmodplug-0.8.8.4/src /home/chris/Projects/games/target-practice/android/love/src/jni/love/../libvorbis-1.3.5/include /home/chris/Projects/games/target-practice/android/love/src/jni/love/../LuaJIT-2.1/src /home/chris/Projects/games/target-practice/android/love/src/jni/love/../libogg-1.3.2/include /home/chris/Projects/games/target-practice/android/love/src/jni/love/../libtheora-1.2.0alpha1/include /home/chris/Projects/games/target-practice/android/love/src/jni/LuaJIT-2.1 /home/chris/Projects/games/target-practice/android/love/src/jni/libmodplug-0.8.8.4/src /home/chris/Projects/games/target-practice/android/love/src/jni/libmodplug-0.8.8.4/src/libmodplug /home/chris/Projects/games/target-practice/android/love/src/jni/mpg123-1.17.0/src /home/chris/Projects/games/target-practice/android/love/src/jni/libogg-1.3.2/include /home/chris/Projects/games/target-practice/android/love/src/jni/openal-soft-1.18.2/include /home/chris/Projects/games/target-practice/android/love/src/jni/openal-soft-1.18.2/common /home/chris/Projects/games/target-practice/android/love/src/jni/openal-soft-1.18.2/Alc /home/chris/Projects/games/target-practice/android/love/src/jni/openal-soft-1.18.2/OpenAL32/Include /home/chris/Projects/games/target-practice/android/love/src/jni/libtheora-1.2.0alpha1/include /lib/arm /home/chris/Projects/games/target-practice/android/love/src/jni/libtheora-1.2.0alpha1/../libogg-1.3.2/include /home/chris/Projects/games/target-practice/android/love/src/jni/libvorbis-1.3.5/../libogg-1.3.2/include /home/chris/Projects/games/target-practice/android/love/src/jni/libvorbis-1.3.5/include" >> /home/chris/Projects/games/target-practice/android/love/build/intermediates/ndkBuild/debug/lib/armeabi-v7a/gdb.setup
  mkdir -p /home/chris/Projects/games/target-practice/android/love/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs-debug/SDL2/src
slime73 commented 5 years ago

Original comment by Alex Szpakowski (Bitbucket: slime73, GitHub: slime73).


There is no SDL2-2.0.7 folder in the 0.11.x branch, only SDL2-2.0.9. My first guess is you probably need to clean some build artifacts and rebuild.