Translation(s): English - Français

(!) Discussion


FMOD is a commercial library not provide by Debian. It use to manage sound and music in C/C++ project.

This article describe how to install FMOD on your Debian system.

FMOD version 3.75

Get development library

Install library on your Debian system

What you must install

In the archive file, you can found lot of files. Only following files are usable with Debian:

libfmod-3.75.so : The library file

inc/*.h : The header files containing FMOD's prototype using by your compiler

libfmod-3.75.so library

Normal way, Debian packages install libraries in /usr/lib. In this case, we are going to install a non-maintaining library. So we install it in /usr/local/lib.

sudo cp ~/fmodapi375linux/api/libfmod-3.75.so /usr/local/lib/

Headers

Like previous case, headers are install in /usr/local/include instead /usr/include as normal way.

sudo cp ~/fmodapi375linux/api/include/*.h /usr/local/include/

Compilation

gcc

Add following options to your command line:

-I/usr/local/include -L/usr/local/lib -lfmod-3.75

KDevelop

Validate

Type following commandes:

cd ~/testfmod
gcc -I/usr/local/include -L/usr/local/lib -lfmod-3.75 testfmod.c -o testfmod
./testfmod

We must listen test.wav file

Troubleshooting

FSOUND_Init can't initialize

External links