007 + ofxOpenCV

Hi - I’m wondering if there is an issue with 007 + ofxOpenCV (or I’m doing it wrong…).

Simply adding ofxOpenCV to the emptyExample and trying to compile results in a bunch of errors relating to missing files (error dump below). Is something not being linked correctly or am I using this addOn incorrectly?

this is on OSX using xCode 4.

  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/libs/opencv/include/opencv/cv.h:63:33: error: opencv2/core/core_c.h: No such file or directory  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/libs/opencv/include/opencv/cv.h:64:33: error: opencv2/core/core.hpp: No such file or directory  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/libs/opencv/include/opencv/cv.h:65:39: error: opencv2/imgproc/imgproc_c.h: No such file or directory  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/libs/opencv/include/opencv/cv.h:66:39: error: opencv2/imgproc/imgproc.hpp: No such file or directory  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/libs/opencv/include/opencv/cv.h:67:38: error: opencv2/video/tracking.hpp: No such file or directory  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/libs/opencv/include/opencv/cv.h:68:45: error: opencv2/features2d/features2d.hpp: No such file or directory  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/libs/opencv/include/opencv/cv.h:69:35: error: opencv2/flann/flann.hpp: No such file or directory  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/libs/opencv/include/opencv/cv.h:70:39: error: opencv2/calib3d/calib3d.hpp: No such file or directory  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/libs/opencv/include/opencv/cv.h:63:33: error: opencv2/core/core_c.h: No such file or directory  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/libs/opencv/include/opencv/cv.h:64:33: error: opencv2/core/core.hpp: No such file or directory  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/libs/opencv/include/opencv/cv.h:65:39: error: opencv2/imgproc/imgproc_c.h: No such file or directory  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/libs/opencv/include/opencv/cv.h:66:39: error: opencv2/imgproc/imgproc.hpp: No such file or directory  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/libs/opencv/include/opencv/cv.h:67:38: error: opencv2/video/tracking.hpp: No such file or directory  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/libs/opencv/include/opencv/cv.h:68:45: error: opencv2/features2d/features2d.hpp: No such file or directory  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/libs/opencv/include/opencv/cv.h:69:35: error: opencv2/flann/flann.hpp: No such file or directory  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/libs/opencv/include/opencv/cv.h:70:39: error: opencv2/calib3d/calib3d.hpp: No such file or directory  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/libs/opencv/include/opencv/cv.h:71:43: error: opencv2/objdetect/objdetect.hpp: No such file or directory  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/libs/opencv/include/opencv/cv.h:72:37: error: opencv2/legacy/compat.hpp: No such file or directory  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/libs/opencv/include/opencv/cv.h:79:37: error: opencv2/core/internal.hpp: No such file or directory  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/libs/opencv/include/opencv/cv.h:71:43: error: opencv2/objdetect/objdetect.hpp: No such file or directory  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/libs/opencv/include/opencv/cv.h:72:37: error: opencv2/legacy/compat.hpp: No such file or directory  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/libs/opencv/include/opencv/cv.h:79:37: error: opencv2/core/internal.hpp: No such file or directory  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:70: error: expected ',' or '...' before '*' token  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:70: error: ISO C++ forbids declaration of 'IplImage' with no type  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:86: error: ISO C++ forbids declaration of 'IplImage' with no type  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:86: error: 'IplImage' declared as a 'virtual' field  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:86: error: expected ';' before '*' token  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:136: error: 'IplImage' has not been declared  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:136: error: 'IplImage' has not been declared  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:155: error: 'IplImage' has not been declared  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:156: error: 'IplImage' has not been declared  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:158: error: 'IplImage' has not been declared  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:159: error: 'IplImage' has not been declared  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:159: error: 'IplImage' has not been declared  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:163: error: ISO C++ forbids declaration of 'IplImage' with no type  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:163: error: 'IplImage' declared as a 'virtual' field  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:163: error: expected ';' before '*' token  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:164: error: expected `;' before 'virtual'  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:164: error: ISO C++ forbids declaration of 'IplImage' with no type  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:164: error: 'IplImage' declared as a 'virtual' field  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:164: error: expected ';' before '*' token  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:166: error: expected `;' before 'IplImage'  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:166: error: ISO C++ forbids declaration of 'IplImage' with no type  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:166: error: expected ';' before '*' token  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:167: error: ISO C++ forbids declaration of 'IplImage' with no type  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:167: error: expected ';' before '*' token  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:117: error: 'CV_INTER_NN' was not declared in this scope  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:70: error: expected ',' or '...' before '*' token  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:70: error: ISO C++ forbids declaration of 'IplImage' with no type  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:86: error: ISO C++ forbids declaration of 'IplImage' with no type  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:86: error: 'IplImage' declared as a 'virtual' field  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:86: error: expected ';' before '*' token  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:136: error: 'IplImage' has not been declared  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:136: error: 'IplImage' has not been declared  
  
/Users/rise/Documents/_Development/openframeworks/of_preRelease_v007_osx/apps/rp/emptyExample/../../../addons/ofxOpenCv/src/ofxCvImage.h:155: error: 'IplImage' has not been declared  
  
...etc.  
  

You probably have to link the headers and the libs. It may be easier to copy the openCV example instead of the empty example, since all of this will already by linked for you.

Nick is right, you can copy the oCV example or add the headers to the header search paths (look in the project configuration for ‘header search paths’) and add

  
$(OF_PATH)/addons/ofxOpenCv/src  
$(OF_PATH)/addons/ofxOpenCv/libs/opencv/include  
$(OF_PATH)/addons/ofxOpenCv/libs/opencv/include/opencv  

OK - thanks guys (can you tell I am still wading through the weeds of xcode et al :wink:

btw - I’m in Somerville, MA - if anyone is interested in a casual working meetup sort of thing, that would be cool. We can meet at Sprout or one of the other local hacker spaces.

Sounds good. I am in Cambridge, MA. Sending you an email.