Closed bitbrain closed 2 years ago
Perhaps related to https://github.com/utopia-rise/fmod-gdnative/issues/114?
Perhaps related to https://github.com/utopia-rise/fmod-gdnative/issues/114?
It is not, the failure is linked to a cpp compilation error because of ndk version
The problem is that github runners now have a newer version of NDK by default.
But I got another problem. When I try to locally build android with right NDK version, I got weird behaviour:
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
/Users/pierre-thomasmeisels/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ -o bin/libGodotFmod.android.release.arm64v8.so -Wl -shared --sysroot=/Users/pierre-thomasmeisels/Library/Android/sdk/ndk/21.4.7075529/platforms/android-21/arch-arm64/usr/lib src/godot_fmod.os src/gdlibrary.os src/callback/file_callbacks.os src/callback/event_callbacks.os $( -L/Users/pierre-thomasmeisels/git/Godot-GDNative-Modules/godot-cpp/bin -L/Users/pierre-thomasmeisels/git/Godot-GDNative-Modules/libs/fmod/android/core/lib/arm64-v8a -L/Users/pierre-thomasmeisels/git/Godot-GDNative-Modules/libs/fmod/android/studio/lib/arm64-v8a $) -lgodot-cpp.android.release.arm64v8 -lfmod.so -lfmodstudio.so
ld: library not found for -lfmod.so
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
scons: *** [bin/libGodotFmod.android.release.arm64v8.so] Error 1
scons: building terminated because of errors.
@piiertho are you using MacOS? Looks like the 'library not found for' might be MacOS specific. Perhaps try running it with https://github.com/nektos/act instead might solve the issue?
@piiertho are you using MacOS? Looks like the 'library not found for' might be MacOS specific. Perhaps try running it with https://github.com/nektos/act instead might solve the issue?
I always used macOS for my android builds :/
Seems you're right, there's a problem with my mac: https://github.com/utopia-rise/fmod-gdnative/runs/7597666067?check_suite_focus=true
@piiertho awesome! Cherry-picked it onto the 4.x branch too
This happens on the
master
branch for some reason.