Running openFrameworks on 64-bit Fedora 13

Posted: June 17th, 2010 | Author: Jason Walsh | Filed under: Fedora, Linux, openFrameworks | Tags: , , , , , | No Comments »

There’s not much to say that’s not said in the title, other than that I’m blogging this ex post facto, so in the (likely) event that I left anything out, let me know in the comments. While this is written for Fedora 13, it should be easily adaptable to other 64-bit distros.

Step 1: Install CodeBlocks and xterm
Even though openFrameworks includes a script that installs CodeBlocks 8.02, and another that installs CodeBlocks from Subversion, after trying both of those I found that just installing CodeBlocks via yum is the easiest way to go. xterm is required to run CodeBlocks, otherwise you will get the astonishingly unhelpful error message Process terminated with status 255.

1
sudo yum install codeblocks xterm

Step 2: Get openFrameworks from Git
In the current pre-release version of openFrameworks there are several bugs due to changing APIs that affect 64-bit platforms. The easiest work around is to get it from the source at GitHub.

1
git clone http://github.com/openframeworks/openFrameworks.git

This took quite a while on my machine, you may have to be patient.

Step 3: Get rid of ofUCUtils
This is something I found referenced on the openFrameworks forums. Files related to ofUCUtils would not compile properly on my machine (due to changing FFMPEG APIs, I think), and someone on the forums said these files weren’t actually necessary for the development versions of openFrameworks. So I took their word for it, and got rid of them.

1
rm -f /path/to/openFrameworks/libs/openFrameworks/video/ofUCUtils.*

Step 4: Run ./install_dependencies.sh
This is a script provided with openFrameworks that installs some dependencies and does some compiling.

1
sudo ./path/to/openFrameworks/scripts/linux/fedora/install_dependencies.sh

Step 5: Test
Open CodeBlocks, choose to open an existing project, choose any of the example projects (I went with openFrameworks/apps/examples/fontsExample/fontsExample_linux64.cbp), and try to run it (Build -> Build and Run or F9).

Hopefully that worked for you; if not, let me know in the comments.

UPDATE: The OpenCV example doesn’t work out of the box. The fix is adding these linker flags in CodeBlocks: -ldl -lX11 -lXext



Leave a Reply