Hello, I started programming in C on linux, but I have an error when I install FMOD.
I copy all the inc files into /usr/include and all the lib into /usr/lib.
And i put #include <fmod> in my source code. But when I compil my programm I got 9400 errors…(on windows 7, 0 errors), so I think it’s a problem with FMOD.
/usr/local/include/fmod:9424 : error: stray ‘\10’ in program
/usr/local/include/fmod:8424: error: missing terminating ‘ character
/usr/local/include/fom:9423:3205: error: too many decimal points in numbers
Can you help me please, I really need to continue this program.
- necromoine asked 7 years ago
You should incude fmod headers in this way:
In the other hand, you see 4 library, but i think that two are simbolyc links. Your machine are 32 o 64 bits?
I have 64, and i create this simbolyc links:
[code:mey751eb]-rwxr-xr-x 1 root root 1580768 2010-12-24 17:15 /usr/lib/libfmodex64-4.32.00.so
-rwxr-xr-x 1 root root 1619264 2010-12-24 17:15 /usr/lib/libfmodex64L-4.32.00.so
lrwxrwxrwx 1 root root 23 2010-12-24 17:15 /usr/lib/libfmodex64L.so -> libfmodex64L-4.32.00.so
lrwxrwxrwx 1 root root 22 2010-12-24 17:15 /usr/lib/libfmodex64.so -> libfmodex64-4.32.00.so[/code:mey751eb]
How are you compiling your app?
- piskoleber answered 6 years ago
The first command work for me, but the second one says I have 4 fmod.so.
I juste have to copy the files from the lib folder of FMOD to /usr/lib ? It’s all, I don’t have to install somethinks ?
In your source code how do you include Fmod ?
include <fmod> ?
Edit : I deleted all files and launch the Makefile, but now I think my include is not good
- necromoine answered 7 years ago
Hi, i’m using now fmod in linux, and i doesn’t have any problem.
Check that you have all fmod headers:
[code:2te4vtwh]root@renaissance:/home/leber# ls /usr/include/fmod*
/usr/include/fmod_codec.h /usr/include/fmod_errors.h /usr/include/fmod.hpp
/usr/include/fmod_dsp.h /usr/include/fmod.h /usr/include/fmodlinux.h
And check that your link your program with library correctly:
[code:2te4vtwh]root@renaissance:/home/leber# ls -l /usr/lib/libfmodex*
-rwxr-xr-x 1 root root 1584600 feb 26 13:53 /usr/lib/libfmodex64.so
-rwxr-xr-x 1 root root 1626232 feb 25 23:39 /usr/lib/libfmodexL64.so
gcc -o test test.c -lfmodex64[/code:2te4vtwh]
It works for me
- piskoleber answered 7 years ago
Please login first to submit.