I am working with OpenFrameworks for the first time (I am also rusty at C++).
I am trying to build an app with OFX, and I want to call my app something other than testApp. I am building off the openCVExample code, and I’ve replaced testApp everywhere with the new name and moved the files from testApp.{h,cpp} to newname.{h,cpp}.
However, when I try to build (using Microsoft Visual C++ 2010 Express, if that makes a difference) I see that the testApp.cpp file is being generated with the contents of newname.cpp and put into my src/ folder. I’m also getting griped at by the build saying that testApp isn’t a valid namespace on all lines in newname.cpp where I am trying to call or define member functions (I am using newname::functionName).
I’ve looked at the build commandline, and it doesn’t seem to be looking for testApp.cpp; I’ve also looked through the linker and other stuff, but don’t see it mentioned anywhere in there. Is this some bizarre feature of OpenFrameworks?
In the openframeworks directory there is a project creator app that will do this for you.
D:\workspace\of_v0073_vs2010_release\projectGenerator\projectGenerator.exe
It will also setup addons you’ve downloaded.
Note:: It creates solutions for VS 2010, i assume this can be opened by Express?