Support #233

libfmodex link error on ubuntu linux (fixed?)

Added by Thomas Hansen over 4 years ago. Updated over 4 years ago.

Status:New Start:05/03/2009
Priority:Normal Due date:
Assigned to:- % Done:

90%

Category:- Spent time: -
Target version:-

Description

Not sure if anyone else has had similar problems. Maybe we can add a compile instructions section on the wiki. I couldn't figure out how to add new page on the project wiki, the start new page link just loads the same page again.

I ran the "install_codeblocks" and "install_dependencies" scripts inside the script folder.

Now I can either use the makefile in "Linux/apps/addonsExamples/Codeblocks_8_linux/" or the codeblocks project in the same folder.
Everything seems to compile just fine, but I got an error as soon as it tried to link "bin/Community_Core_Vision_debug" (same for relsease)

Here is the error message it threw at me:
Linking console executable: bin/Community_Core_Vision_debug
../../../libs/fmodex/lib/libfmodex.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status

I checked the "Linux/libs/fmodex/lib" folder. the file libfmodex.so seems really small (48 bytes), but there was another file called libfmodex-4.22.00.so
I moved the current libfmodex.so somewhere esle and renamed libfmodex-4.22.00.so to libfmodex.so instead. that seems to fix the problem and it compiles and links just fine.

History

Updated by Thiago de Freitas Oliveira Araujo over 4 years ago

Following Thomas suggestion, I created a "Compiling instructions" page on the top of the Wiki Page(although could not update it, yet).

The link for it,if wanted, is: http://nuicode.com/projects/tbeta/wiki/Compiling_instructions

I had the same issue with the libfoxmodem.

Also, another really minor issue I have faced(and I do not know if it was discussed before), but maybe it could be also on the Compiling instructions page to help if some other person faces it. It seems to have a bug on some GCC versions with the "ofUCUtils.cpp", so some persons might need to make a cast like:

toRGB_convert_ctx = sws_getContext(format.size.width, format.size.height (PixelFormat)src_pix_fmt,d_width, d_height, PIX_FMT_RGB24,VIDEOGRABBER_RESIZE_FLAGS, NULL, NULL, NULL);

instead of the original:

toRGB_convert_ctx = sws_getContext(format.size.width, format.size.height, src_pix_fmt, d_width, d_height, PIX_FMT_RGB24,VIDEOGRABBER_RESIZE_FLAGS, NULL, NULL, NULL);

I am compiling on CodeBlocks, Kubuntu...gcc version 4.3.3. I ran the "install_codeblocks" and "install_dependencies" scripts inside the script folder, too.

Updated by Phil M. over 4 years ago

Thiago,

The compiling instructions link is a dead end. I'm having trouble compiling on 64-bit Ubuntu myself.

Updated by Thiago de Freitas Oliveira Araujo over 4 years ago

Hey Phil,

Phil Magnone wrote:

Thiago,

The compiling instructions link is a dead end. I'm having trouble compiling on 64-bit Ubuntu myself.

I have just created the "compiling instructions" on that time, so I am really sorry as it was a "dead-end". I am currently updating the "compiling instructions" page , now, with as much as information I can organize there, then :). Please give more details on the errors you are currently having , because even if I can not help you, I am sure someone else from the community will surely do it.

Updated by Seth Sandler over 4 years ago

Thiago de Freitas Oliveira Araujo wrote:

Hey Phil,

Phil Magnone wrote:

Thiago,

The compiling instructions link is a dead end. I'm having trouble compiling on 64-bit Ubuntu myself.

I have just created the "compiling instructions" on that time, so I am really sorry as it was a "dead-end". I am currently updating the "compiling instructions" page , now, with as much as information I can organize there, then :). Please give more details on the errors you are currently having , because even if I can not help you, I am sure someone else from the community will surely do it.

Also, to compile on 64bit you need the 64bit version of openframeworks located here: http://www.openframeworks.cc/download/ We don't currently have that version on the svn.

Also available in: Atom PDF