0
0

Hi Everyone,
I’m trying to make FMOD Ex works with Mac os X but it still not work.
I got:

"undefined symbols:
_FMUSIC_FreeSong
_FMUSIC_LoadSong
_FMUSIC_PlaySong
_FMUSIC_StopSong
_FSOUND_GetError
_FSOUND_GetVersion
_FSOUND_Init"

… it seems that he did not link (dynamic?) library …
I need help .. Is there anybody with static library compiled on macosx ?
Thanks for your help

(By the way, in the fmod.h from the .dmg, there was no definition for fmod types (FMUSIC_MODULE, …), and it gave me some error, I had to take another header from internet)

  • You must to post comments
0
0

Do you mean FMOD Ex or FMOD 3? They are fmod 3 symbols. Just make sure you have linked the right library, if you are using codewarrior use the .lib file, otherwise use the .a file.

  • You must to post comments
0
0

It is FMOD Ex and I’m using gcc.

It works with Fmod 3, but when I had to run ranlib I got

"ranlib: file: api/lib/libfmod.a(system_debug.o) has no symbols
ranlib: file: api/lib/libfmod.a(mixer_c_spline.o) has no symbols
ranlib: file: api/lib/libfmod.a(mixer_c_cubic.o) has no symbols"

I don’t know if it is important but it compiled … (I got other undefined reference but I saw in your example that you linked framework Carbon, and it was that …)

Thanks for your help brett ! 😆

  • You must to post comments
0
0

I have the same ranlib error as above, but linking the Carbon framework did not solve the problem for me, still getting the following:

g++ -O3 -o audioTag main.cpp mac/api/lib/libfmod.a -framework Carbon
/usr/bin/ld: Undefined symbols:
TagLib::String::String(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, TagLib::String::Type)
TagLib::String::~String()
TagLib::FileRef::save()
TagLib::FileRef::FileRef(char const*, bool, TagLib::AudioProperties::ReadStyle)
TagLib::FileRef::~FileRef()
TagLib::FileRef::tag() const
collect2: ld returned 1 exit status
make: *** [darwin] Error 1

Can anyone help?

david

  • You must to post comments
0
0

Those link errors have nothing to do with FMOD, it looks like you just aren’t linking to "TagLib"

  • You must to post comments
0
0

ah yes.

sorry about that, and thanks for your reply.

d

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.