Hello.
I try to set up a project in CodeBlock with opencv libraries. To set-up the project I used the Project Generator and i added the “ofxOpenCv” and the ofxVectorGraphics"
If I try to compile the empty file but the debugger holds at #include ofxOpenCv.h.
I tried to add the path to the Compiler and Debugger Settings without success.
I can’t find t he file ofxCv.h at all on my computer. I use Ubuntu 12.04.2 LTS.
i think you are trying to open a windows project in linux, that won’t work. try to find out which addons the project uses and then generate it using the project generator
#include “ofxOpenCv.h” should work and indeed is more correct than <> for this case, <> is usually used for header files installed in the system rather than locally.
what do you mean you can find a bash? the install_dependencies script should compile the PG for you. You just need to double click it to open it.
I had to run “make” in the openFrameworks8/apps/projectGenerator/projectGeneratorSimple folder, now it works.
The <> issue is somehow confusing. As soon as I edit the testApp.h file (paste a copied code) I have to change the “” to <> in the testApp.h, but in the main.cpp file the “” is the one I have to use.
Perhaps this is why I have problems with declared variables.
For example the following code wan’t accept the i variable even so the “int i” is declared on top of the page as global variable.
// extract of testApp.cpp #include “testApp.h” // header of testApp.cpp the include is written “”.
int circleX, circleY, i, red, green, blue; // declaring variables.
void testApp::keyPressed(int key){
if(key == 115)
{
i ;
}
if(key == 119)
{
i++ ;
}
}
The error I get is:
src/testApp.cpp:97:1: error: stray \342 in program