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 Type:
svn checkout http://nuicode.svnrepository.com/svn/tbeta/trunk/tbeta/Linux Linux-ccv
Now go the script directory under the CCV source.
Give +x permission to the script “install_codeblocks.sh” and execute it.
chmod +x install_codeblocks.sh sudo ./install_codeblocks.sh This will add two new repositories in the source.lst and will install Code::Blocks (a cross-platform IDE):
Repeat the process for the “install_dependencies.sh” script:
chmod +x install_dependencies.sh sudo ./install_dependencies.sh
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/libfmodex.so: 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/ mv libfmodex.so libfmodex.so.bkp mv libfmodexp.so libfmodexp.so.bkp ln -s libfmodex-4.22.00.so libfmodex.so ln -s libfmodexp-4.22.00.so libfmodexp.so 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)
1 1 640 480 60
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 mv libfmodex.so libfmodex.so.bkp mv libfmodexp.so libfmodexp.so.bkp ln -s libfmodex-4.22.00.so libfmodex.so ln -s libfmodexp-4.22.00.so libfmodexp.so Now you can use the script “clickToLaunchApp.sh” to open CCV.