Answered
0
0

Hi,

I’ve used FMOD on windows using visual studio. Adding FMOD library to the project was quite easy but I can’t find how to add FMOD to the project on CLion (linux), I know that I have to use CMake but no idea how to.
Any help would be appreciated.

G.G

  • You must to post comments
Best Answer
0
0

Unfortunately I am not familiar with CLion, perhaps someone else here can assist in that regard.

I’d recommend taking a look at our example Makefiles in our Linux SDK. The flags they use are likely the same what you’ll need for CLion.

The basics are usually:

-I[include_path]
-L[library_path]
-l[fmod]

EDIT:
Based on your response, it looks like CMake syntax, so you will probably need to use the following commands:

link_directories([library_path])
include_directories([include_path])
target_link_libraries(<target>, [fmod_library_name])

I found this information here.

  • GhPGame

    Thank you so much Mathew it worked for me. just one note, I have to replace “fmod_library_name” in the “target_link_libraries” by the library_path+library name.

  • You must to post comments
0
0

Hi Mathew:

Thank you for your reply,
I already figured out how to add include and lib directories, it can be done as follows:

# Add extra include directories
include_directories(/../../fmodstudioapi10812linux/api/lowlevel/inc)
include_directories(/../../fmodstudioapi10812linux/api/studio/inc)

# Add extra lib directories
include_directories(/home/golnaz/fmodstudioapi10812linux/api/lowlevel/lib)
include_directories(/home/golnaz/fmodstudioapi10812linux/api/studio/lib)

I know that I also have to include a few more lines like “findPackage” and “set” but I don’t know how to.
I appreciate any help from you or anyone else with more information.

G.G

  • Mathew Block

    I’ve added some additional information to my response based on your extra info.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.