Scons Help! 'Unable to Find Library' building extension

Godot Version

4.2

Question

Hi everyone,

I’m looking for some help on a scons issue.

I’m currently trying to compile an extension for the engine, but I’m encountering an issue where some library files are not found during the process.

I’ll link the repo, which has the scons file in question, below.

Here is my output where the error occurs:

C:\Users\dude\AppData\Local\Android\Sdk/ndk/23.2.8568313/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -o demo\addons\fmod\libs\android\arm64\libGodotFmod.android.template_debug.arm64.so --target=aarch64-linux-android21 -march=armv8-a -s -fvisibility=hidden -shared src\fmod_cache.os src\fmod_server.os src\register_types.os src\callback\event_callbacks.os src\callback\file_callbacks.os src\core\fmod_file.os src\core\fmod_sound.os src\data\performance_data.os src\tools\fmod_editor_export_plugin.os src\tools\fmod_editor_plugin.os src\nodes\fmod_bank_loader.os src\nodes\fmod_event_emitter_2d.os src\nodes\fmod_event_emitter_3d.os src\nodes\fmod_listener_2d.os src\nodes\fmod_listener_3d.os src\resources\fmod_dsp_settings.os src\resources\fmod_settings.os src\resources\fmod_software_format_settings.os src\resources\fmod_sound_3d_settings.os src\studio\fmod_bank.os src\studio\fmod_bus.os src\studio\fmod_event.os src\studio\fmod_event_description.os src\studio\fmod_parameter_description.os src\studio\fmod_vca.os -LC:\Users\dude\Documents\GameDev\testing\FMod_Extension\libs\fmod\android\core\lib\arm64-v8a -LC:\Users\dude\Documents\GameDev\testing\FMod_Extension\libs\fmod\android\studio\lib\arm64-v8a godot-cpp\bin\libgodot-cpp.android.template_debug.arm64.a -lfmodL.so -lfmodstudioL.so

ld: error: unable to find library -lfmodL.so
ld: error: unable to find library -lfmodstudioL.so
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

scons: *** [demo\addons\fmod\libs\android\arm64\libGodotFmod.android.template_debug.arm64.so] Error 1 scons: building terminated because of errors.

I suspect the cause is the libpath flags. They appear to be incorrect, but I’m just not familiar enough with the system to understand where exactly this change is happening to really track it down. Example from above:

-LC:\Users\dude\Documents\GameDev\testing\FMod_Extension\libs\fmod\android\core\lib\arm64-v8a

I’m hoping someone has some more insight on this or sees something obvious I’m missing, and learn more in the process! Thank you all in advance!

Link to the extension repo: https://github.com/utopia-rise/fmod-gdextension