0
0

Hello,

I’m compiling the PlayStream sample with XCode on my Mac x86.
I’m running the code (Build and run) from XCode, no problem, all running well.

I’m launching the bin from the PlayStream folder, "missing the lib".
I’m launching the bin from the PlayStream folder with Terminal, "missing the lib".
Into the both cases, it want I put the lib into usr/lib….
To ensure a simple installation, I no want to do that.

[b:e2djy47t]Questions:[/b:e2djy47t]
1) Existing a way to have this LIB into the same folder of my EXE ?
2) Existing a way to link this LIB into my EXE during compilation ?
3) Is it possible to have the LIB for PPC and x86 into the same folder (to let me user select if he want Rosetta or x86) ?

Thanks for your help,
Cheers,
Stef

  • You must to post comments
0
0

Ok, I give you more information.
The Terminal log that after I’v tryed to execute the Bin:

[code:u21jhmhs]Last login: Wed Dec 20 21:50:29 on console
/Developer/FMOD\ Programmers\ API/examples/playstream/playstream; exit
Welcome to Darwin!
LapTopMacStef:~ stef$ /Developer/FMOD\ Programmers\ API/examples/playstream/playstream; exit
dyld: Library not loaded: /usr/local/lib/libfmodex.dylib
Referenced from: /Developer/FMOD Programmers API/examples/playstream/playstream
Reason: image not found
Trace/BPT trap
logout
[Opération terminée][/code:u21jhmhs]

I hope you can help me to use FMOD ?

Cheers,
Stef

  • You must to post comments
0
0

[quote:1vfdmxlg]
1) Existing a way to have this LIB into the same folder of my EXE ?
[/quote:1vfdmxlg]

Use [b:1vfdmxlg]install_name_tool[/b:1vfdmxlg]
http://developer.apple.com/documentatio … ool.1.html

You will notice that the makefiles in the examples use this.

[quote:1vfdmxlg]
2) Existing a way to link this LIB into my EXE during compilation ?
[/quote:1vfdmxlg]

No, FMOD is only available as a dynamic library unless you get a source code license.

[quote:1vfdmxlg]
3) Is it possible to have the LIB for PPC and x86 into the same folder (to let me user select if he want Rosetta or x86) ?
[/quote:1vfdmxlg]

Use [b:1vfdmxlg]lipo[/b:1vfdmxlg] to create a universal binary
http://developer.apple.com/documentatio … ipo.1.html

  • You must to post comments
0
0

Thanks chenpo for the reply :)

[quote:1soxcl9d]1) Existing a way to have this LIB into the same folder of my EXE ?

Use install_name_tool
http://developer.apple.com/documentatio … ool.1.html

You will notice that the makefiles in the examples use this. [/quote:1soxcl9d]

Is it possible to do that from my code (i no want to have installer or complex installation process for my little tool) ?

Thanks, it is nice to have guys could help :)
Stef

  • You must to post comments
0
0

you just do it to the your executable after you have built it

  • You must to post comments
0
0

Humm, impossible to have it runs :(

Ok, I’ve restarted from the begin.

Install the last FMOD
use terminal to go to the playstream sample folder
use make to compil the sample

[code:36eqw8yu]LapTopMacStef:/Developer/FMOD Programmers API/examples/playstream stef$ make
g++ -O3 -o playstream main.cpp ../../api/lib/libfmodex.dylib
cp ../../api/lib/libfmodex.dylib .
install_name_tool -change libfmodex.dylib @executable_path/libfmodex.dylib playstream
[/code:36eqw8yu]

and run the playstream
[code:36eqw8yu]LapTopMacStef:/Developer/FMOD Programmers API/examples/playstream stef$ ./playstreamdyld: Library not loaded: /usr/local/lib/libfmodex.dylib
Referenced from: /Developer/FMOD Programmers API/examples/playstream/./playstream
Reason: image not found
Trace/BPT trap[/code:36eqw8yu]

I’m sure I’m wrong somewhere, but I can’t found where it could be :'(

THANKS for your help,
Cheers,
Stef

  • You must to post comments
0
0

Hello,

Where is my new friend : [b:6to0um39]chenpo[/b:6to0um39] ?

I need your help please dear ?!?

Cheers ([b:6to0um39]and HAPPY NEW YEAR[/b:6to0um39] to everybody)
Stef

  • You must to post comments
Showing 6 results
Your Answer

Please first to submit.