I would like to know if you could help me to compile MiniFMOD 1.6 for gcc.
I have tried to compile the source code under Dev-C++ 184.108.40.206 but I get many errors of compilation.
What is the way to compile the source code without any errors?
My goal is to try to use the version 1.7 which have corrected bugs (see [url:azixoyr3]http://www.fmod.org/forum/viewtopic.php?t=3763[/url:azixoyr3] to see my problem)
Could you help me please?
Thanks and have a nice day.
- skirby asked 12 years ago
[url=http://sbougribate.free.fr/Files/FMOD/MiniFMOD.rar:3cp103qx]Here[/url:3cp103qx] is a quick trick to get the thing compiled with DevC++/Gcc.
Note that the minifmod 1.7 project use the mixer and the formatxm from the 1.6 engine.
you are amazing 8)
I have tested your project and it works very well on my computer. I have also delete obj files to see and I can compile it on my computer (I only have some warnings on the compilation)
If I have understanded what you have done:
To compile the version 1.6, you have modified:
– fsound.c and minifmod.h
– compile separately the asm file (with nasm) to make an obj file in order to add it to your project
Am I right?
On the other hand, the way you use to compile the version 1.7 seems to be more complicate. Could you explain me what you have done?
Otherwise, If I want to make a library file, I suppose that I only need to delete the main.cpp file from the project and to change the type of the project to WIN32 Static Lib. After that, I suppose that I need to add the new library file and the mixer_fpu_ramp_asm.o file to my project in to order to make it works, isn’t it?
It is the method I used but is it the good one?
Anyway, I would like to thank you very much for your help.
You should add your work on the web site in the Download section in order to everyone could use it.
Have a nice day.
- skirby answered 12 years ago
You are 100 % right, all you describe is what i did and what you should do 😀
Concerning the 1.7 build, i did the following tricks :
in minifmod.h, the line 32 typedef an “abstract/opaque” struct wich is allready defined in the music.h, gcc complains about that so ive commented it and include this file. (music.h)
Next, fmusic.c can’t be compile because of the undefined “SAMPLELOADCALLBACK”, this is why i ve added it before adding the music.h in the minifmod.h file.
i ve fixed some type errors : some functions were using “signed char” in the C source file but were “char” (or vice versa) in the header (one of the function was returning a “int” instead of a “char”).
I ve injected music_formatxm.c, mixer_fpu_ramp.c and mixer_clipcopy.c from minifmod 1.6.
That’s all 😛
Please login first to submit.