0
0

How do i fix the below? originally i had only libfmodex but i had a linking error so i add in the fmod api dylibs.
I have AudioUnit and coreaudio framework. i recieved the below.

/usr/bin/ld: /Developer/FMOD Programmers API/api/lib/libfmodex.dylib load command 5 unknown cmd field
/usr/bin/ld: /Developer/FMOD Programmers API/api/lib/libfmodexL.dylib load command 5 unknown cmd field
/usr/bin/ld: /Developer/FMOD Programmers API/api/lib/libfmodexp.dylib load command 5 unknown cmd field

/usr/bin/g++-4.0 -o /Volumes/F1/dev/igp/prj/xcode/testapp/build/Debug/Untitled.app/Contents/MacOS/Untitled -L/Volumes/F1/dev/igp/prj/xcode/testapp/build/Debug -L/Developer/FMOD\ Programmers\ API/api/lib -L/Developer/FMOD\ Programmers\ API/api/plugins -F/Volumes/F1/dev/igp/prj/xcode/testapp/build/Debug -filelist /Volumes/F1/dev/igp/prj/xcode/testapp/build/testapp.build/Debug/Untitled.build/Objects-normal/i386/Untitled.LinkFileList -framework Carbon -framework Cocoa -framework CoreFoundation -framework Foundation -framework CoreServices -lfmodex /Developer/FMOD\ Programmers\ API/api/plugins/codec_aiff.dylib /Developer/FMOD\ Programmers\ API/api/plugins/codec_cdda.dylib /Developer/FMOD\ Programmers\ API/api/plugins/codec_dls.dylib /Developer/FMOD\ Programmers\ API/api/plugins/codec_flac.dylib /Developer/FMOD\ Programmers\ API/api/plugins/codec_fsb.dylib /Developer/FMOD\ Programmers\ API/api/plugins/codec_it.dylib /Developer/FMOD\ Programmers\ API/api/plugins/codec_midi.dylib /Developer/FMOD\ Programmers\ API/api/plugins/codec_mod.dylib /Developer/FMOD\ Programmers\ API/api/plugins/codec_mpeg.dylib /Developer/FMOD\ Programmers\ API/api/plugins/codec_oggvorbis.dylib /Developer/FMOD\ Programmers\ API/api/plugins/codec_playlist.dylib /Developer/FMOD\ Programmers\ API/api/plugins/codec_raw.dylib /Developer/FMOD\ Programmers\ API/api/plugins/codec_s3m.dylib /Developer/FMOD\ Programmers\ API/api/plugins/codec_sf2.dylib /Developer/FMOD\ Programmers\ API/api/plugins/codec_tag.dylib /Developer/FMOD\ Programmers\ API/api/plugins/codec_wav.dylib /Developer/FMOD\ Programmers\ API/api/plugins/codec_xm.dylib /Developer/FMOD\ Programmers\ API/api/plugins/dsp_chorus.dylib /Developer/FMOD\ Programmers\ API/api/plugins/dsp_distortion.dylib /Developer/FMOD\ Programmers\ API/api/plugins/dsp_echo.dylib /Developer/FMOD\ Programmers\ API/api/plugins/dsp_flange.dylib /Developer/FMOD\ Programmers\ API/api/plugins/dsp_highpass.dylib /Developer/FMOD\ Programmers\ API/api/plugins/dsp_itecho.dylib /Developer/FMOD\ Programmers\ API/api/plugins/dsp_lowpass.dylib /Developer/FMOD\ Programmers\ API/api/plugins/dsp_lowpass2.dylib /Developer/FMOD\ Programmers\ API/api/plugins/dsp_normalize.dylib /Developer/FMOD\ Programmers\ API/api/plugins/dsp_oscillator.dylib /Developer/FMOD\ Programmers\ API/api/plugins/dsp_parameq.dylib /Developer/FMOD\ Programmers\ API/api/plugins/dsp_pitchshift.dylib /Developer/FMOD\ Programmers\ API/api/plugins/dsp_reverb.dylib /Developer/FMOD\ Programmers\ API/api/plugins/output_coreaudio.dylib /Developer/FMOD\ Programmers\ API/api/plugins/output_nosound_nrt.dylib /Developer/FMOD\ Programmers\ API/api/plugins/output_nosound.dylib /Developer/FMOD\ Programmers\ API/api/plugins/output_soundmanager.dylib /Developer/FMOD\ Programmers\ API/api/plugins/output_wavwriter_nrt.dylib /Developer/FMOD\ Programmers\ API/api/plugins/output_wavwriter.dylib -framework AudioUnit -framework CoreAudio -lfmodexL -lfmodexp -arch i386 -framework Carbon -lFreeType -lFreeImage -SDLmain -lSDL

  • You must to post comments
0
0

It looks like you are trying to link in all the FMOD dylibs in one application. This is not the correct approach as different dylibs are for different tasks.

libfmodex.dylib should be the only one you need to link against to use the FMOD low level API.

Alternatives are libfmodexp.dylib for the plugins version or libfmodexL.dylib for the logging version.

You should not link with any of the dylibs in the plugins directory, these are loaded by FMOD at runtime when you use the libfmodexp library.

If you are having trouble linking and setting up your project I would suggest you take a look at the examples, for instance the "playsound" example. We provide Xcode and Makefile methods for compiling.

Let me know if you are still having troubles after looking at the examples, I can walk you through your linker problems.

  • You must to post comments
0
0

Great then my thinking was right when i started the project.

I opened the xcode example of playsound and tried to compile. I got premission errors so i gave all of fmod read/write. I tried again, same problem with unknown command.

I then tried the makefile. I got the below

/Developer/FMOD Programmers API/examples/playsound MyName$ make
g++ -O3 -o playsound main.cpp ../../api/lib/libfmodex.dylib
/usr/bin/ld: ../../api/lib/libfmodex.dylib load command 5 unknown cmd field
collect2: ld returned 1 exit status
make: *** [playsound_cpp] Error 1

  • You must to post comments
0
0

It sounds like your linker doesn’t know about something in our dylib.

Are you using very old (or beta) tools to build the examples? I have tested here using our up-to-date build machine OSX 10.5.4, Xcode 3.0, GCC 4.0.1 and on our older test machine OSX 10.4.11, Xcode 2.4.1, GCC 3.3.

  • You must to post comments
0
0

i forgot to post this yesterday

i remember not being able to update xcode through the apple site (required leopard) so i googled Xcode 2.4.1 and found a download

everything linked perfectly and it runs great.
thanks.

  • You must to post comments
0
0

It’s good to hear you got everything working properly.

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.