0 votes

I am trying to write a module to implement the FMOD audio engine into Godot. (My code here https://github.com/rmazzier/FMOD-Module---Godot )

My plan was to implement a custom Node, containing the basic functionalities of the FMOD audio engine (i followed this really nice guide for using the FMOD API https://codyclaborn.me/tutorials/making-a-basic-fmod-audio-engine-in-c/ ).
As long as the fmod.cpp file is empty, so without the methods implementations, the engine compiles correctly and a empty "FMode" node, (which inherits from Node) appears in the compiled Godot.
enter image description here

As soon as I write a method implementation in the .cpp file though, I get all sorts of linker errors, which made me think I did something wrong in setting up the SCsub file, which tells SCons where to look for external libraries (I suppose scons wants the .a files, so the static libraries, to know how to correctly link the program).
enter image description here

Does anyone have any idea of what I'm doing wrong, or can suggest where I can find more info on how the SConstruct files work?

in Engine by (12 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.