Compiling CCV in Ubuntu

Tutorial kindly sent by Dino Magri (See his blog)

Installing CCV from source code

If you do not have subversion (svn) do:

sudo apt-get install subversion
Now you can get the source, create a new directory for that.
mkdir /home/user/CCV
cd /home/user/CCV
svn checkout Linux-ccv

Now go the script directory under the CCV source.

cd Linux-ccv/scripts/ubuntu/

Give +x permission to the script “” and execute it.

chmod +x
sudo ./
This will add two new repositories in the source.lst and will install Code::Blocks (a cross-platform IDE):

Repeat the process for the  “” script:

chmod +x
sudo ./
This will ultimately install the needed packages to build and run CCV.

Now start Code::Blocks (either from start menu or by command line)

Open the project that its located at: “apps/addonsExamples/Codeblocks_8_linux/Community Core Vision.cbp”

Then hit Build and Run,

This error is bound to appear:

Linking console executable: bin/Community_Core_Vision
../../../libs/fmodex/lib/ file not recognized: File format not recognized

collect2: ld returned 1 exit status
(it means the linker is not finding a library that is required by the executable/source)

Organizing the files and links should fix it, do as follows:
cd /home/user</CCV/Linux-ccv/libs/fmodex/lib/
ln -s
ln -s
Now before compiling and running the CCV again, lets alter the config.xmlç
(it is held in “../../Codeblocks_8_linux/bin/data”)
cd /home/user/CCV/Linux-ccv/apps/addonsExamples/Codeblocks_8_linux/bin/data/
gedit config.xml (or favorite IDE, mine is vim)

Now, hit build and run. It works.

If you want to execute CCV without launching it from Code::Blocks you have to modify the libs that are in bin/libs, do the following:

cd /home/user/CCV/Linux-ccv/apps/addonsExamples/Codeblocks_8_linux/bin/libs
ln -s
ln -s
Now you can use the script “” to open CCV.

1 Comment

  1. menno
    December 10, 2010


    thanks for the tutorial! this worked, though I had to place the libfmodex files from the Linux 64bit branch of CCV to the directory and apply ln -s. running ubuntu 10.04 64bit here.

    then, the error for libfmodex was gone. however, I get a different error now:

    Linking console executable: bin/Community_Core_Vision
    /usr/bin/ld: skipping incompatible ../../../libs/poco/lib/libPocoFoundation.a when searching for -lPocoFoundation
    /usr/bin/ld: skipping incompatible ../../../libs/unicap/lib/libunicap.a when searching for -lunicap
    /usr/bin/ld: cannot find -lunicap
    collect2: ld returned 1 exit status

    any ideas how resolve this? thanks! menno.


Leave a Reply