Problems On porting project OSX apps in Codeblocks&OF6

Hi world!

Im trying to make a port of a visual project of Zu (http://makingthingsmove.org/students/tu/ one of the students of http://makingthingsmove.org/) into LinuxOF&cb

Here’s the link to his package (VF + Particle Intc : Blinking '09)

http://makingthingsmove.org/students/tu/media/code/wk10-a.zip

Im almost new to cb IDE, but i know some C++

First of all, I ve created a dir under “of_preRelease_v0.06_linux_cb_FAT/apps” called “wk10_a”
(trying to recreate the functional enviroment of the example projects)

The first problem was that I was unable to create a project with cbp and layout files (with all the useful compilation hints) because xcode (i suppose) doesnt *use* something similar to the codeblocks .cbp xml config file…

Anyway, i ve hacked into this by creating an exnovo cbp bymyself.
here’s the code:

  
  
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>  
<CodeBlocks_project_file>  
	<FileVersion major="1" minor="6" />  
	<Project>  
		<Option title="wk10_a" />  
		<Option pch_mode="2" />  
		<Option compiler="gcc" />  
		<Option virtualFolders="addons/;libs/;src/;libs/openframeworks/;libs/openframeworks/app/;libs/openframeworks/communication/;libs/openframeworks/graphics/;libs/openframeworks/sound/;libs/openframeworks/utils/;libs/openframeworks/video/;libs/openframeworks/events/;" />  
		<Build>  
			<Target title="Debug">  
				<Option output="bin/wk10_a" prefix_auto="1" extension_auto="1" />  
				<Option working_dir="bin" />  
				<Option object_output="obj/Debug/" />  
				<Option type="1" />  
				<Option compiler="gcc" />  
				<Compiler>  
					<Add option="-g" />  
					<Add option="-MMD" />  
				</Compiler>  
			</Target>  
			<Target title="Release">  
				<Option output="bin/wk10_a" prefix_auto="1" extension_auto="1" />  
				<Option working_dir="bin" />  
				<Option object_output="obj/Release/" />  
				<Option type="1" />  
				<Option compiler="gcc" />  
				<Compiler>  
					<Add option="-O3" />  
					<Add option="-MMD" />  
				</Compiler>  
				<Linker>  
					<Add option="-s" />  
				</Linker>  
			</Target>  
			<Environment>  
				<Variable name="target" value="wk10_a" />  
				<Variable name="runOnBuild" value="false" />  
				<Variable name="nautilusOnBuild" value="false" />  
			</Environment>  
		</Build>  
		<Compiler>  
			<Add option="-Wall" />  
			<Add option="-fexceptions " />  
			<Add directory="../../addons/ofxXmlSettings" />			  
			<Add directory="../../addons/ofxVectorMath" />  
			<Add directory="../../addons/ofxVectorGraphics" />  
			<Add directory="../../addons/ofxThread" />  
			<Add directory="../../addons/ofxOsc" />  
			<Add directory="../../addons/ofxOpenCv" />  
			<Add directory="../../addons/ofxNetwork" />  
			<Add directory="../../addons/ofxDirList" />  
			<Add directory="../../addons/ofx3DModelLoader" />  
			<Add directory="../../libs/openFrameworks/" />  
			<Add directory="../../libs/openFrameworks/events" />  
			<Add directory="../../libs/openFrameworks/app" />  
			<Add directory="../../libs/openFrameworks/communication" />  
			<Add directory="../../libs/openFrameworks/graphics" />  
			<Add directory="../../libs/openFrameworks/video" />  
			<Add directory="../../libs/openFrameworks/utils" />  
			<Add directory="../../libs/openFrameworks/sound" />  
			<Add directory="../../libs/rtAudio" />  
			<Add directory="../../libs/fmodex/inc" />  
			<Add directory="../../libs/glee/include" />  
			<Add directory="../../libs/glee/" />  
			<Add directory="../../libs/freeimage/Source" />  
			<Add directory="../../libs/FreeImage" />  
			<Add directory="../../libs/alsa/include" />  
			<Add directory="../../libs/alsa/include/alsa" />  
			<Add directory="../../libs/freetype/include" />  
			<Add directory="../../libs/freetype/include/freetype2" />  
			<Add directory="../../libs/unicap/include" />  
			<Add directory="../../libs/gstappsink/include" />  
			<Add directory="../../addons" />  
			<Add directory="../../libs/poco/include" />  
		</Compiler>  
		<Linker>  
			<Add library="fmodex" />  
			<Add library="raw1394" />  
			<Add library="glut" />  
			<Add library="GL" />  
			<Add library="GLU" />  
			<Add library="Xxf86vm" />  
			<Add library="asound" />  
			<Add library="PocoFoundation" />  
			<Add library="../../libs/freetype/lib/libfreetype.a" />  
			<Add library="../../libs/FreeImage/libfreeimage.a" />  
			<Add library="../../libs/rtAudio/libRtAudio.a" />  
			<Add library="../../libs/glee/libGLee.a" />  
			<Add library="unicap" />  
			<Add library="../../libs/gstappsink/lib/liboFappsink.a" />  
			<Add directory="../../libs/fmodex/lib" />  
			<Add directory="../../libs/unicap/lib" />  
			<Add directory="../../libs/poco/lib" />  
			<Add directory="./bin/libs" />  
		</Linker>  
		<ExtraCommands>  
			<Add after="#" />  
			<Add after="#      copy libs and shell script to bin directory:" />  
			<Add after="#" />  
			<Add after="cp -r ../../export/libs $(PROJECT_DIR)bin/" />  
			<Add after="cp ../../export/clickToLaunchApp.sh $(PROJECT_DIR)bin/clickToLaunchApp_$(TARGET_NAME).sh" />  
			<Add after="sed -i s/applicationName/$(TARGET_OUTPUT_BASENAME)/g  $(PROJECT_DIR)bin/clickToLaunchApp_$(TARGET_NAME).sh" />  
			<Add after="#" />  
			<Add after="#    this is a shell script that can either (a) run the app or (b) launch nautilus to a good directory for you to run the app" />  
			<Add after="#" />  
			<Add after="./cb_build_runner.sh $(TARGET_OUTPUT_BASENAME) $runOnBuild $nautilusOnBuild" />  
			<Add after="#" />  
			<Add after="#     to enable either, change the custom variables in project-&gt;build options-&gt;custom variables" />  
			<Add after="#     to true / false." />  
			<Add after="#" />  
			<Add after="#     currently this is disabled, but allows you to run the app from w/in CB." />  
			<Add after="#" />  
			<Mode after="always" />  
		</ExtraCommands>  
		<Unit filename="src/main.cpp">  
			<Option virtualFolder="src/" />  
		</Unit>  
		<Unit filename="src/testApp.cpp">  
			<Option virtualFolder="src/" />  
		</Unit>  
		<Unit filename="src/testApp.h">  
			<Option virtualFolder="src/" />  
		</Unit>  
		<Unit filename="src/particle.cpp">  
			<Option virtualFolder="src/" />  
		</Unit>  
		<Unit filename="src/particle.h">  
			<Option virtualFolder="src/" />  
		</Unit>  
		<Unit filename="src/vectorField.cpp">  
			<Option virtualFolder="src/" />  
		</Unit>  
		<Unit filename="src/vectorField.h">  
			<Option virtualFolder="src/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/app/ofAppBaseWindow.h">  
			<Option virtualFolder="libs/openframeworks/app/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/app/ofAppGlutWindow.cpp">  
			<Option virtualFolder="libs/openframeworks/app/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/app/ofAppGlutWindow.h">  
			<Option virtualFolder="libs/openframeworks/app/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/app/ofAppRunner.cpp">  
			<Option virtualFolder="libs/openframeworks/app/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/app/ofAppRunner.h">  
			<Option virtualFolder="libs/openframeworks/app/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/app/ofBaseApp.h">  
			<Option virtualFolder="libs/openframeworks/app/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/communication/ofArduino.cpp">  
			<Option virtualFolder="libs/openframeworks/communication/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/communication/ofArduino.h">  
			<Option virtualFolder="libs/openframeworks/communication/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/communication/ofSerial.cpp">  
			<Option virtualFolder="libs/openframeworks/communication/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/communication/ofSerial.h">  
			<Option virtualFolder="libs/openframeworks/communication/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/communication/ofStandardFirmata.cpp">  
			<Option virtualFolder="libs/openframeworks/communication/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/communication/ofStandardFirmata.h">  
			<Option virtualFolder="libs/openframeworks/communication/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/events/ofEventUtils.h">  
			<Option virtualFolder="libs/openframeworks/events/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/events/ofEvents.h">  
			<Option virtualFolder="libs/openframeworks/events/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/graphics/ofBitmapFont.cpp">  
			<Option virtualFolder="libs/openframeworks/graphics/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/graphics/ofBitmapFont.h">  
			<Option virtualFolder="libs/openframeworks/graphics/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/graphics/ofGraphics.cpp">  
			<Option virtualFolder="libs/openframeworks/graphics/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/graphics/ofGraphics.h">  
			<Option virtualFolder="libs/openframeworks/graphics/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/graphics/ofImage.cpp">  
			<Option virtualFolder="libs/openframeworks/graphics/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/graphics/ofImage.h">  
			<Option virtualFolder="libs/openframeworks/graphics/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/graphics/ofTexture.cpp">  
			<Option virtualFolder="libs/openframeworks/graphics/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/graphics/ofTexture.h">  
			<Option virtualFolder="libs/openframeworks/graphics/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/graphics/ofTrueTypeFont.cpp">  
			<Option virtualFolder="libs/openframeworks/graphics/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/graphics/ofTrueTypeFont.h">  
			<Option virtualFolder="libs/openframeworks/graphics/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/ofMain.h">  
			<Option virtualFolder="libs/openframeworks/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/sound/ofSoundPlayer.cpp">  
			<Option virtualFolder="libs/openframeworks/sound/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/sound/ofSoundPlayer.h">  
			<Option virtualFolder="libs/openframeworks/sound/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/sound/ofSoundStream.cpp">  
			<Option virtualFolder="libs/openframeworks/sound/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/sound/ofSoundStream.h">  
			<Option virtualFolder="libs/openframeworks/sound/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/utils/ofConstants.h">  
			<Option virtualFolder="libs/openframeworks/utils/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/utils/ofMath.cpp">  
			<Option virtualFolder="libs/openframeworks/utils/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/utils/ofMath.h">  
			<Option virtualFolder="libs/openframeworks/utils/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/utils/ofTypes.h">  
			<Option virtualFolder="libs/openframeworks/utils/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/utils/ofUtils.cpp">  
			<Option virtualFolder="libs/openframeworks/utils/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/utils/ofUtils.h">  
			<Option virtualFolder="libs/openframeworks/utils/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/video/ofUCUtils.cpp">  
			<Option virtualFolder="libs/openframeworks/video/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/video/ofUCUtils.h">  
			<Option virtualFolder="libs/openframeworks/video/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/video/ofVideoGrabber.cpp">  
			<Option virtualFolder="libs/openframeworks/video/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/video/ofVideoGrabber.h">  
			<Option virtualFolder="libs/openframeworks/video/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/video/ofVideoPlayer.cpp">  
			<Option virtualFolder="libs/openframeworks/video/" />  
		</Unit>  
		<Unit filename="../../libs/openFrameworks/video/ofVideoPlayer.h">  
			<Option virtualFolder="libs/openframeworks/video/" />  
		</Unit>		  
		<Extensions>  
			<lib_finder>  
				<lib name="gstreamer-0.10" />  
				<lib name="gstreamer-video-0.10" />  
				<lib name="gstreamer-base-0.10" />  
				<lib name="libavcodec" />  
				<lib name="libavformat" />  
				<lib name="libavutil" />  
				<lib name="libswscale" />  
			</lib_finder>  
			<code_completion />  
			<envvars />  
			<debugger />  
		</Extensions>  
	</Project>  
</CodeBlocks_project_file>  
  

After that, a strange thing has happened!
All the pointing in the Zu’s files (under /apps/wk10_a/src/ ) was *relative* and expressed like this:

  
#include "ofMain.h"  

By my position, that is wrong! because the fitting path is:

  
#include "../../libs/openFrameworks/ofMain.h"  

Because “ofMain.h” is a script provided by the package i was almost sure that all the problems should have been resolved. But I was Wrong! :\

During the compilation (under ofAddons.h line 13) i ve got the same “filenotfound” error…
the pointer at that line (

  
 #include "ofxCvMain.h"   

doesnt want to work…)
Anyway, this is right because the right pointer should be like this:

  
"ofxOpenCv/src/ofxCvMain.h"  

!!

So, I ve decided to correct all the pointings that i ve found on my way.

And I was able to resolve that problem, until a new error appears!
Here’s the BuildLog!

  
  
-------------- Clean: Debug in wk10_a ---------------  
  
Cleaned "wk10_a - Debug"  
  
-------------- Build: Debug in wk10_a ---------------  
  
Compiling: src/main.cpp  
In file included from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/particle.h:6,  
                 from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/testApp.h:6,  
                 from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/main.cpp:2:  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:1:2: warning: #warning ______________________________________________________________________________  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:2:2: warning: #warning !!! ofAddons.h is deprecated - from OF 007 and on this file will NOT EXIST !!!  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:3:2: warning: #warning To see the new usage for using addons in OF please see www.openframeworks.cc/006-Important-Notes  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:4:2: warning: #warning ______________________________________________________________________________  
In file included from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/vectorField.h:7,  
                 from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/testApp.h:7,  
                 from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/main.cpp:2:  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:1:2: warning: #warning ______________________________________________________________________________  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:2:2: warning: #warning !!! ofAddons.h is deprecated - from OF 007 and on this file will NOT EXIST !!!  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:3:2: warning: #warning To see the new usage for using addons in OF please see www.openframeworks.cc/006-Important-Notes  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:4:2: warning: #warning ______________________________________________________________________________  
In file included from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/testApp.h:11,  
                 from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/main.cpp:2:  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:1:2: warning: #warning ______________________________________________________________________________  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:2:2: warning: #warning !!! ofAddons.h is deprecated - from OF 007 and on this file will NOT EXIST !!!  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:3:2: warning: #warning To see the new usage for using addons in OF please see www.openframeworks.cc/006-Important-Notes  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:4:2: warning: #warning ______________________________________________________________________________  
Compiling: src/particle.cpp  
In file included from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/particle.h:6,  
                 from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/particle.cpp:1:  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:1:2: warning: #warning ______________________________________________________________________________  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:2:2: warning: #warning !!! ofAddons.h is deprecated - from OF 007 and on this file will NOT EXIST !!!  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:3:2: warning: #warning To see the new usage for using addons in OF please see www.openframeworks.cc/006-Important-Notes  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:4:2: warning: #warning ______________________________________________________________________________  
In file included from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/particle.cpp:4:  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:1:2: warning: #warning ______________________________________________________________________________  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:2:2: warning: #warning !!! ofAddons.h is deprecated - from OF 007 and on this file will NOT EXIST !!!  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:3:2: warning: #warning To see the new usage for using addons in OF please see www.openframeworks.cc/006-Important-Notes  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:4:2: warning: #warning ______________________________________________________________________________  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/particle.cpp: In member function ‘void particle::draw()’:  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/particle.cpp:198: warning: unused variable ‘lightWidth’  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/particle.cpp:199: warning: unused variable ‘lightHeight’  
Compiling: src/testApp.cpp  
In file included from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/particle.h:6,  
                 from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/testApp.h:6,  
                 from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/testApp.cpp:1:  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:1:2: warning: #warning ______________________________________________________________________________  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:2:2: warning: #warning !!! ofAddons.h is deprecated - from OF 007 and on this file will NOT EXIST !!!  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:3:2: warning: #warning To see the new usage for using addons in OF please see www.openframeworks.cc/006-Important-Notes  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:4:2: warning: #warning ______________________________________________________________________________  
In file included from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/vectorField.h:7,  
                 from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/testApp.h:7,  
                 from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/testApp.cpp:1:  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:1:2: warning: #warning ______________________________________________________________________________  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:2:2: warning: #warning !!! ofAddons.h is deprecated - from OF 007 and on this file will NOT EXIST !!!  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:3:2: warning: #warning To see the new usage for using addons in OF please see www.openframeworks.cc/006-Important-Notes  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:4:2: warning: #warning ______________________________________________________________________________  
In file included from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/testApp.h:11,  
                 from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/testApp.cpp:1:  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:1:2: warning: #warning ______________________________________________________________________________  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:2:2: warning: #warning !!! ofAddons.h is deprecated - from OF 007 and on this file will NOT EXIST !!!  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:3:2: warning: #warning To see the new usage for using addons in OF please see www.openframeworks.cc/006-Important-Notes  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:4:2: warning: #warning ______________________________________________________________________________  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/testApp.cpp: In member function ‘virtual void testApp::update()’:  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/testApp.cpp:98: warning: comparison between signed and unsigned integer expressions  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/testApp.cpp: In member function ‘virtual void testApp::draw()’:  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/testApp.cpp:142: warning: comparison between signed and unsigned integer expressions  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/testApp.cpp: In member function ‘virtual void testApp::keyPressed(int)’:  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/testApp.cpp:195: warning: comparison between signed and unsigned integer expressions  
Compiling: src/vectorField.cpp  
In file included from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/vectorField.h:7,  
                 from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/vectorField.cpp:1:  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:1:2: warning: #warning ______________________________________________________________________________  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:2:2: warning: #warning !!! ofAddons.h is deprecated - from OF 007 and on this file will NOT EXIST !!!  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:3:2: warning: #warning To see the new usage for using addons in OF please see www.openframeworks.cc/006-Important-Notes  
../../addons/ofxXmlSettings/../../addons/ofAddons.h:4:2: warning: #warning ______________________________________________________________________________  
Compiling: ../../libs/openFrameworks/app/ofAppGlutWindow.cpp  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/libs/openFrameworks/app/ofAppGlutWindow.cpp: In member function ‘virtual void ofAppGlutWindow::setupOpenGL(int, int, int)’:  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/libs/openFrameworks/app/ofAppGlutWindow.cpp:59: warning: deprecated conversion from string constant to ‘char*’  
Compiling: ../../libs/openFrameworks/app/ofAppRunner.cpp  
Compiling: ../../libs/openFrameworks/communication/ofArduino.cpp  
Compiling: ../../libs/openFrameworks/communication/ofSerial.cpp  
Compiling: ../../libs/openFrameworks/communication/ofStandardFirmata.cpp  
Compiling: ../../libs/openFrameworks/graphics/ofBitmapFont.cpp  
Compiling: ../../libs/openFrameworks/graphics/ofGraphics.cpp  
Compiling: ../../libs/openFrameworks/graphics/ofImage.cpp  
Compiling: ../../libs/openFrameworks/graphics/ofTexture.cpp  
Compiling: ../../libs/openFrameworks/graphics/ofTrueTypeFont.cpp  
Compiling: ../../libs/openFrameworks/sound/ofSoundPlayer.cpp  
Compiling: ../../libs/openFrameworks/sound/ofSoundStream.cpp  
Compiling: ../../libs/openFrameworks/utils/ofMath.cpp  
Compiling: ../../libs/openFrameworks/utils/ofUtils.cpp  
Compiling: ../../libs/openFrameworks/video/ofUCUtils.cpp  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/libs/openFrameworks/video/ofUCUtils.cpp:19:22: warning: avformat.h: Nessun file o directory  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/libs/openFrameworks/video/ofUCUtils.cpp:20:21: warning: swscale.h: Nessun file o directory  
Compiling: ../../libs/openFrameworks/video/ofVideoGrabber.cpp  
Compiling: ../../libs/openFrameworks/video/ofVideoPlayer.cpp  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/libs/openFrameworks/video/ofVideoPlayer.cpp: In constructor ‘ofVideoPlayer::ofVideoPlayer()’:  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/libs/openFrameworks/video/ofVideoPlayer.cpp:234: warning: deprecated conversion from string constant to ‘gchar*’  
Linking console executable: bin/wk10_a  
obj/Debug/src/main.o: In function `~ofxCvGrayscaleImage':  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/../../addons/ofxXmlSettings/../../addons/ofxOpenCv/src/ofxCvGrayscaleImage.h:19: undefined reference to `vtable for ofxCvGrayscaleImage'  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/../../addons/ofxXmlSettings/../../addons/ofxOpenCv/src/ofxCvGrayscaleImage.h:19: undefined reference to `vtable for ofxCvGrayscaleImage'  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/../../addons/ofxXmlSettings/../../addons/ofxOpenCv/src/ofxCvGrayscaleImage.h:19: undefined reference to `vtable for ofxCvGrayscaleImage'  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/../../addons/ofxXmlSettings/../../addons/ofxOpenCv/src/ofxCvGrayscaleImage.h:19: undefined reference to `ofxCvImage::~ofxCvImage()'  
obj/Debug/src/main.o: In function `~ofxCvColorImage':  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/../../addons/ofxXmlSettings/../../addons/ofxOpenCv/src/ofxCvColorImage.h:17: undefined reference to `vtable for ofxCvColorImage'  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/../../addons/ofxXmlSettings/../../addons/ofxOpenCv/src/ofxCvColorImage.h:17: undefined reference to `vtable for ofxCvColorImage'  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/../../addons/ofxXmlSettings/../../addons/ofxOpenCv/src/ofxCvColorImage.h:17: undefined reference to `vtable for ofxCvColorImage'  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/../../addons/ofxXmlSettings/../../addons/ofxOpenCv/src/ofxCvColorImage.h:17: undefined reference to `ofxCvImage::~ofxCvImage()'  
obj/Debug/src/main.o: In function `testApp':  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/testApp.h:17: undefined reference to `ofxCvColorImage::ofxCvColorImage()'  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/testApp.h:17: undefined reference to `ofxCvGrayscaleImage::ofxCvGrayscaleImage()'  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/testApp.h:17: undefined reference to `ofxCvGrayscaleImage::ofxCvGrayscaleImage()'  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/testApp.h:17: undefined reference to `ofxCvGrayscaleImage::ofxCvGrayscaleImage()'  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/wk10_a/src/testApp.h:17: undefined reference to `ofxCvGrayscaleImage::ofxCvGrayscaleImage()'  
  
[...]  
  

…&On&On&On… for most of the file project…
precisely:

Process terminated with status 1 (1 minutes, 8 seconds)
50 errors, 45 warnings

I cant figure out of my oltrageous error…

Anyone have any idea?

Thnkx!
4k4B

Hi,
the best way to convert an OSX project to codeblocks linux is:

  • Use arturo’s excellent ofProject scripts to generate a new project with the required addons
  • copy the source files from the OSX project into the new project’s “src” directory
  • right click on the project in codeblocks and select “add files”
  • add any include paths that might be missing (especially if files in the src directory have subdirectories) by right clicking on the project, selecting “Build Options” then adding them to the Search Directories -> Compiler tab.
  • add any linking options (usually not necessary for simple projects)

The ofProject scripts are found in the scripts folder of the OF installation. Run the install script for ofProject and it should set up everything for you.

Otherwise I’ve no idea what your project problem is…usually it’s just easier to start afresh instead of trying to figure out that stuff :slight_smile:

1 Like

[quote author=“grimus”]Hi,
the best way to convert an OSX project to codeblocks linux is:

  • Use arturo’s excellent ofProject scripts to generate a new project with the required addons
  • copy the source files from the OSX project into the new project’s “src” directory
  • right click on the project in codeblocks and select “add files”
  • add any include paths that might be missing (especially if files in the src directory have subdirectories) by right clicking on the project, selecting “Build Options” then adding them to the Search Directories -> Compiler tab.
  • add any linking options (usually not necessary for simple projects)

The ofProject scripts are found in the scripts folder of the OF installation. Run the install script for ofProject and it should set up everything for you.

Otherwise I’ve no idea what your project problem is…usually it’s just easier to start afresh instead of trying to figure out that stuff 8)

Anyway, I ve succesfully manually ported the project jus some minutes ago! :stuck_out_tongue:

Thanks anyway grimus!
4k4B

[quote author=“4k4B”][quote author=“grimus”]Hi,
the best way to convert an OSX project to codeblocks linux is:

  • Use arturo’s excellent ofProject scripts to generate a new project with the required addons
  • copy the source files from the OSX project into the new project’s “src” directory
  • right click on the project in codeblocks and select “add files”
  • add any include paths that might be missing (especially if files in the src directory have subdirectories) by right clicking on the project, selecting “Build Options” then adding them to the Search Directories -> Compiler tab.
  • add any linking options (usually not necessary for simple projects)

The ofProject scripts are found in the scripts folder of the OF installation. Run the install script for ofProject and it should set up everything for you.

Otherwise I’ve no idea what your project problem is…usually it’s just easier to start afresh instead of trying to figure out that stuff 8)

Anyway, I ve succesfully manually ported the project jus some minutes ago! :stuck_out_tongue:

Thanks anyway grimus!
4k4B[/quote]

Uhm… I ve installed the Arturo’s script but it seems not work…
look here!

  
  
akab@akab-dsktp:~/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/Vortex_akab$ ofProject create Vortex_akab  
/usr/lib/python2.6/sets.py:85: DeprecationWarning: functions overriding warnings.showwarning() must support the 'line' argument  
  stacklevel=2)  
/var/lib/python-support/python2.6/amara/bindery.py:4: DeprecationWarning: the sets module is deprecated  
  import sets  
  

Maybe a wrong python version?

I think that’s a warning that cropped up in 9.04, due to differing Python version. It should still work though if you have set it up correctly.

normal “empty” project creation is

  
  
ofProject create myNewProject  

The new project will appear in a myApps folder in the OF apps directory. You can use ofProject to include core addons as well.

[quote author=“grimus”]I think that’s a warning that cropped up in 9.04, due to differing Python version. It should still work though if you have set it up correctly.

normal “empty” project creation is

  
  
ofProject create myNewProject  

The new project will appear in a myApps folder in the OF apps directory. You can use ofProject to include core addons as well.[/quote]

I will try to downgrade 2 python2.5, this warning blocker, I can’t create my project! :\

Grimus do u know another user with the same problem?

Maybe we can fix the Arturo’s script for jaunty/python2.6!

Downgraded to py2.5!

Now it works!

Thanks Grimus!

btw. the main problem you were having at first is your project must be under apps/something/your_project

that’s, 2 levels under apps, that’s from were the relative references in projects are looking for the libraries: …/…/…/libs…

you can use the script or you can also just copy the emptyExample to a new location while you do it 2 dirs under apps.

I still cant compile my project,

After creating a new project with the “ofProject create myproject” command, and adding the “src” files under the relative directory, i ve tryied to follow the addons guide at this link -> http://wiki.openframeworks.cc/index.php?title=Adding-addons

By adding files under Project -> Add Files (or Add Files recursively) and Clicking “Select All” and then “Ok” on the small dialog box, i dont get the little blue folder with the name of the addons and all the relative files under it, but i get 2 different directories, the first called “headers” with the same specular structure of the addon that contain all the “*.h” files, and a directory called “Sources” with the same structure but containing all the “.cpp” files…

When I try to compile, all the pointings on the #include “something.h” seems to be wrong, and needs to be manually modified…

the headers and sources folders is normal, you can disable that way of showing files in codeblocks in the menu project > project tree > categorize by file type

can you post the errors you are getting and a zip file with your project?

Here It Is!

  
  
-------------- Build: Debug in Vortex_OF ---------------  
  
Compiling: ofxBullet/libs/src/BulletCollision/BroadphaseCollision/btAxisSweep3.cpp  
In file included from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/myApps/Vortex_OF/ofxBullet/libs/src/BulletCollision/BroadphaseCollision/btAxisSweep3.cpp:20:  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/myApps/Vortex_OF/ofxBullet/libs/src/BulletCollision/BroadphaseCollision/btAxisSweep3.h:22:34: error: LinearMath/btVector3.h: Nessun file o directory  
In file included from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/myApps/Vortex_OF/ofxBullet/libs/src/BulletCollision/BroadphaseCollision/btBroadphaseInterface.h:23,  
                 from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/myApps/Vortex_OF/ofxBullet/libs/src/BulletCollision/BroadphaseCollision/btOverlappingPairCache.h:20,  
                 from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/myApps/Vortex_OF/ofxBullet/libs/src/BulletCollision/BroadphaseCollision/btAxisSweep3.h:23,  
                 from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/myApps/Vortex_OF/ofxBullet/libs/src/BulletCollision/BroadphaseCollision/btAxisSweep3.cpp:20:  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/myApps/Vortex_OF/ofxBullet/libs/src/BulletCollision/BroadphaseCollision/btBroadphaseProxy.h:19:57: error: LinearMath/btScalar.h: Nessun file o directory  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/myApps/Vortex_OF/ofxBullet/libs/src/BulletCollision/BroadphaseCollision/btBroadphaseProxy.h:21:43: error: LinearMath/btAlignedAllocator.h: Nessun file o directory  
In file included from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/myApps/Vortex_OF/ofxBullet/libs/src/BulletCollision/BroadphaseCollision/btAxisSweep3.h:23,  
                 from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/myApps/Vortex_OF/ofxBullet/libs/src/BulletCollision/BroadphaseCollision/btAxisSweep3.cpp:20:  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/myApps/Vortex_OF/ofxBullet/libs/src/BulletCollision/BroadphaseCollision/btOverlappingPairCache.h:24:45: error: LinearMath/btAlignedObjectArray.h: Nessun file o directory  
In file included from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/myApps/Vortex_OF/ofxBullet/libs/src/BulletCollision/BroadphaseCollision/btAxisSweep3.h:27,  
                 from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/myApps/Vortex_OF/ofxBullet/libs/src/BulletCollision/BroadphaseCollision/btAxisSweep3.cpp:20:  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/myApps/Vortex_OF/ofxBullet/libs/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.h:19:56: error: BulletCollision/BroadphaseCollision/btDbvt.h: Nessun file o directory  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/myApps/Vortex_OF/ofxBullet/libs/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.h:20:72: error: BulletCollision/BroadphaseCollision/btOverlappingPairCache.h: Nessun file o directory  
In file included from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/myApps/Vortex_OF/ofxBullet/libs/src/BulletCollision/BroadphaseCollision/btBroadphaseInterface.h:23,  
                 from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/myApps/Vortex_OF/ofxBullet/libs/src/BulletCollision/BroadphaseCollision/btOverlappingPairCache.h:20,  
                 from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/myApps/Vortex_OF/ofxBullet/libs/src/BulletCollision/BroadphaseCollision/btAxisSweep3.h:23,  
                 from /home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/myApps/Vortex_OF/ofxBullet/libs/src/BulletCollision/BroadphaseCollision/btAxisSweep3.cpp:20:  
/home/akab/Scrivania/of_preRelease_v0.06_linux_cb_FAT/apps/myApps/Vortex_OF/ofxBullet/libs/src/BulletCollision/BroadphaseCollision/btBroadphaseProxy.h:82: error: expected constructor, destructor, or type conversion before ‘(’ token  
Process terminated with status 1 (0 minutes, 1 seconds)  
7 errors, 0 warnings  
  

And here it is the tar.gz of the entire project!

http://rapidshare.com/files/289967783/Vortex-OF.tar.gz.html

As you can see from the buildlog, in file btAxisSweep3.cpp
the #include “LinearMath/btVector3.h” is wrong!
because the dir LinearMath doesnt exist under “BroadphaseCollision/” (is 2 o 3 dir up!)

Similar errors for all the include call in all the files…
And the errors recursively remains also for all the called system libraries! (Like glee.h, GL/ libs or gst/ libs dirs, that are “included” in Jaunty!! :twisted:

Sincerely I dont know where to crush my head with this problem :roll:

Thanks Guys!
I really apprecciate the help!

can you try adding this:

to the section of your project file.

try adding also:

to the compiler section of the cbp

Added, i ve also mapped all the dir to the ofx addons, Now it works!

I ve noticed that sometimes specifing a relative path like /ofxaddon/src under Build Option is not enough.

i ve manually mapped all the pointing to the src dirs and lib dirs of all the ofx addons in a new empty cbp project (created with your excellent script), and obtained a “typized” cbp to use with all my project (jus by adding the /src/*.cpp and /src/*.h files on the xml structure of the .cbp with a text editor :mrgreen: )

Maybe I can write a tipized cbp file with all the standard ofx addons already mapped and post it here!
It could be an “hotshot” for linux OF newbies (like me!)

What do u think?

Anyway, Understanding that, could be impossible without all your helps!

Thanks!