cannot find -lfmodex (64 bits machine)

Anyone an idea what I should do to fix this error? I just started using Linux and try to run the openframeworks makefile samples.

  
/usr/bin/ld: skipping incompatible /home/rick/Desktop/0.04/apps/graphicsExample/../../libs/fmodex/lib/libfmodex.so when searching for -lfmodex  
/usr/bin/ld: cannot find -lfmodex  
collect2: ld returned 1 exit status  
make: *** [bin/graphicsExample] Error   

instead of running the app (exe)
run the shell script “click_to_launch_app.sh”

it sets the LD_LIBRARY_PATH so that the local fmod so can be loaded…

if you are in code blocks, navigate out to the filebrowser or terminal and launch the exe that way…

hope that helps!
zach

Hmm…
I was running the makefile from the shell by entering ‘make’ in the command shell.
I’m currently not using ‘code blocks’.
It seems to me that the problem occurs not in execute phase but during the compile step.

oh ! ok —

did you by chance separate the installation up? it looks like it’s incomplete…

you should have a folder structure like:

apps
libs
other

can you check in libs and see what’s in there?

thanks!
zach

oh ! ok —

did you by chance separate the installation up? it looks like it’s incomplete…

you should have a folder structure like:

apps
libs
other

can you check in libs and see what’s in there?

thanks!
zach

I downloaded a new copy of the of0.04 makefile distribution for linux but g++ still seems to have the same problem with fmodex.

  
/usr/bin/ld: skipping incompatible /home/rick/Desktop/0.04/apps/fontsExample/../../libs/fmodex/lib/libfmodex.so when searching for -lfmodex  
/usr/bin/ld: cannot find -lfmodex  

Seems to be ‘incompatible’ or so?

Hi, just out of curiosity, are you on a 64 bit linux machine? We had a similar problem this weekend with fmod and a 64 bit linux laptop.

If you are on a 64 bit machine you have two solutions: either create-a-32-bit-chroot-to-build-your-OF-apps or rebuild OpenFrameworks with 64 bit versions of the library dependencies.

Hope this helps,

Cheers,
P.

Ah, that must be it. It is indeed a 64bit machine.
I will look into this 32bit chroot
Thank you

Hiya!

I’m dealing now with this issue. Can anybody give me a clue on how to rebuild the OF on my 64 bit box?

My box: Ubuntu 8.04, 64-bit AMD, with code::blocks.

Tnx a lot, F.

I still have this same problem… we have to find 64 bits versions of the libraries used in OF…

I’m pretty sure that has been done once for 0.04 and could be done again for 0.05 w/ out major back breaking effort – we need to assemble a 64 bit team :slight_smile: part of the problem is that theo and I don’t have 64 bit machines to test on.

if someone puts together a package, we’re happy to add it to the downloads…

thanks!
zach

On this website I found the fmodex 64 files:
http://www.fmod.org/index.php/download

Next problem to solve is the ffmpeg. working on that right now.

For ffmpeg, you can just install it with

apt-get install libavcodec1d libavformat1d libavutils1d

and copy the libraries from /usr/lib to your OF install

The same can be done for most of the libraries, including opencv.

Also I will have access to a 64 bit machine with linux installed this weekend, i’ll try to upload the compiled libraries.

Hi Arturo,

That would be cool to have the compiled versions after the weekend.
I just managed to assemble the ffmpeg files for linux 64 bits. Here they are: http://companje.nl/downloads/openFramew-…-g64.tar.gz

btw. there’s a little typo in your example: libavutils should libavutil

Thanks, my next step is freetype. Any hints on that?

Rick

I think this should be the compiled version of freetype for linux 64:
http://companje.nl/downloads/openFramew-…-e64.tar.gz

And here I have the linux 64 bits FreeImage version: http://companje.nl/downloads/openFramew-…-e64.tar.gz

The last one for today is rtAudio: http://companje.nl/downloads/openFramew-…-o64.tar.gz

I got stuck with this error when I compile the emptyExample with my fresh 64 bits libraries:

  
-------------- Build: Debug in emptyExample ---------------  
  
Compiling: ../../../libs/openFrameworks/sound/ofSoundStream.cpp  
/home/rick/of0.05_linux_cb_FAT/libs/openFrameworks/sound/ofSoundStream.cpp: In function ‘void ofSoundStreamSetup(int, int, ofSimpleApp*, int, int, int)’:  
/home/rick/of0.05_linux_cb_FAT/libs/openFrameworks/sound/ofSoundStream.cpp:56: error: no matching function for call to ‘RtAudio::StreamParameters::StreamParameters(int&)’  
../../../libs/rtAudio64/RtAudio.h:234: note: candidates are: RtAudio::StreamParameters::StreamParameters()  
../../../libs/rtAudio64/RtAudio.h:228: note:                 RtAudio::StreamParameters::StreamParameters(const RtAudio::StreamParameters&)  
/home/rick/of0.05_linux_cb_FAT/libs/openFrameworks/sound/ofSoundStream.cpp:64: error: ‘class RtAudio’ has no member named ‘setStreamCallback’  
/home/rick/of0.05_linux_cb_FAT/libs/openFrameworks/sound/ofSoundStream.cpp: In function ‘void ofSoundStreamListDevices()’:  
/home/rick/of0.05_linux_cb_FAT/libs/openFrameworks/sound/ofSoundStream.cpp:113: error: ‘RtAudioDeviceInfo’ was not declared in this scope  
/home/rick/of0.05_linux_cb_FAT/libs/openFrameworks/sound/ofSoundStream.cpp:113: error: expected `;' before ‘info’  
/home/rick/of0.05_linux_cb_FAT/libs/openFrameworks/sound/ofSoundStream.cpp:116: error: ‘info’ was not declared in this scope  
/home/rick/of0.05_linux_cb_FAT/libs/openFrameworks/sound/ofSoundStream.cpp:121: error: ‘info’ was not declared in this scope  

Arturo, hopefully you can take over here. Let’s see what the weekend brings us.

I don’t think you have the right version of rtAudio – we are using a one older then the one on the rtAudio website –

there are other versions here:
http://music.mcgill.ca/~gary/rtaudio/release/
we were using version 3.0.3

that should solve that error with the 64 bit version you compiled…

best!
zach

Hi Zach,

That did it. Here is a working version of rtAudio. I’m using version 3.03 now.
You can download it from: http://companje.nl/downloads/openFramew-…-o64.tar.gz

Thanks,
Rick

The next one is FOBS:

http://companje.nl/downloads/openFramew-…-s64.tar.gz