Build error with opencvExample in Code::Blocks, Ubuntu

I’m using of_v0.8.4_linux64 with codeblocks on Ubuntu 15.04, having downloaded and followed instructions from here: http://openframeworks.cc/setup/linux-codeblocks/

So far, all examples work fine EXCEPT for those to do with ofxOpenCv.

The build messages from running opencvExample reads:

||=== Build: Debug in opencvExample (compiler: GNU GCC Compiler) ===|
../../../addons/ofxOpenCv/src/ofxCvImage.h|68|error: ‘IplImage’ does not name a type|
../../../addons/ofxOpenCv/src/ofxCvImage.h|84|error: ‘IplImage’ does not name a type|
../../../addons/ofxOpenCv/src/ofxCvImage.h|134|error: ‘IplImage’ has not been declared|
../../../addons/ofxOpenCv/src/ofxCvImage.h|134|error: ‘IplImage’ has not been declared|
../../../addons/ofxOpenCv/src/ofxCvImage.h|153|error: ‘IplImage’ has not been declared|
../../../addons/ofxOpenCv/src/ofxCvImage.h|154|error: ‘IplImage’ has not been declared|
../../../addons/ofxOpenCv/src/ofxCvImage.h|156|error: ‘IplImage’ has not been declared|
../../../addons/ofxOpenCv/src/ofxCvImage.h|157|error: ‘IplImage’ has not been declared|
../../../addons/ofxOpenCv/src/ofxCvImage.h|157|error: ‘IplImage’ has not been declared|
../../../addons/ofxOpenCv/src/ofxCvImage.h|161|error: ‘IplImage’ does not name a type|
../../../addons/ofxOpenCv/src/ofxCvImage.h|162|error: ‘IplImage’ does not name a type|
../../../addons/ofxOpenCv/src/ofxCvImage.h|164|error: ‘IplImage’ does not name a type|
../../../addons/ofxOpenCv/src/ofxCvImage.h|165|error: ‘IplImage’ does not name a type|
../../../addons/ofxOpenCv/src/ofxCvImage.h|115|error: ‘CV_INTER_NN’ was not declared in this scope|
../../../addons/ofxOpenCv/src/ofxCvGrayscaleImage.h|58|error: ‘IplImage’ does not name a type|
../../../addons/ofxOpenCv/src/ofxCvGrayscaleImage.h|153|error: ‘CvMat’ does not name a type|
../../../addons/ofxOpenCv/src/ofxCvGrayscaleImage.h|108|error: ‘CV_INTER_NN’ was not declared in this scope|
../../../addons/ofxOpenCv/src/ofxCvColorImage.h|56|error: ‘IplImage’ does not name a type|
../../../addons/ofxOpenCv/src/ofxCvColorImage.h|133|error: ‘IplImage’ does not name a type|
../../../addons/ofxOpenCv/src/ofxCvColorImage.h|104|error: ‘CV_INTER_NN’ was not declared in this scope|
../../../addons/ofxOpenCv/src/ofxCvFloatImage.h|72|error: ‘IplImage’ does not name a type|
../../../addons/ofxOpenCv/src/ofxCvFloatImage.h|145|error: ‘IplImage’ has not been declared|
../../../addons/ofxOpenCv/src/ofxCvFloatImage.h|145|error: ‘IplImage’ has not been declared|
../../../addons/ofxOpenCv/src/ofxCvFloatImage.h|146|error: ‘IplImage’ has not been declared|
../../../addons/ofxOpenCv/src/ofxCvFloatImage.h|146|error: ‘IplImage’ has not been declared|
../../../addons/ofxOpenCv/src/ofxCvFloatImage.h|147|error: ‘IplImage’ does not name a type|
../../../addons/ofxOpenCv/src/ofxCvFloatImage.h|148|error: ‘IplImage’ does not name a type|
../../../addons/ofxOpenCv/src/ofxCvFloatImage.h|154|error: ‘IplImage’ does not name a type|
../../../addons/ofxOpenCv/src/ofxCvFloatImage.h|118|error: ‘CV_INTER_NN’ was not declared in this scope|
../../../addons/ofxOpenCv/src/ofxCvShortImage.h|55|error: ‘IplImage’ does not name a type|
../../../addons/ofxOpenCv/src/ofxCvShortImage.h|125|error: ‘IplImage’ has not been declared|
../../../addons/ofxOpenCv/src/ofxCvShortImage.h|125|error: ‘IplImage’ has not been declared|
../../../addons/ofxOpenCv/src/ofxCvShortImage.h|126|error: ‘IplImage’ has not been declared|
../../../addons/ofxOpenCv/src/ofxCvShortImage.h|126|error: ‘IplImage’ has not been declared|
../../../addons/ofxOpenCv/src/ofxCvShortImage.h|127|error: ‘IplImage’ does not name a type|
../../../addons/ofxOpenCv/src/ofxCvShortImage.h|128|error: ‘IplImage’ does not name a type|
../../../addons/ofxOpenCv/src/ofxCvShortImage.h|130|error: ‘IplImage’ does not name a type|
../../../addons/ofxOpenCv/src/ofxCvShortImage.h|96|error: ‘CV_INTER_NN’ was not declared in this scope|
../../../addons/ofxOpenCv/src/ofxCvContourFinder.h|57|error: ‘CvMemStorage’ does not name a type|
../../../addons/ofxOpenCv/src/ofxCvContourFinder.h|58|error: ‘CvMemStorage’ does not name a type|
../../../addons/ofxOpenCv/src/ofxCvContourFinder.h|59|error: ‘CvMoments’ does not name a type|
../../../addons/ofxOpenCv/src/ofxCvContourFinder.h|60|error: ‘CvSeq’ was not declared in this scope|
../../../addons/ofxOpenCv/src/ofxCvContourFinder.h|60|error: template argument 1 is invalid|
../../../addons/ofxOpenCv/src/ofxCvContourFinder.h|60|error: template argument 2 is invalid|
../../../addons/ofxOpenCv/src/ofxCvHaarFinder.h|49|error: ‘CvHaarClassifierCascade’ does not name a type|
../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk|191|recipe for target 'obj/linux64/Debug/src/ofApp.o' failed|
../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk|144|recipe for target 'Debug' failed|
||=== Build failed: 47 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|

opencvExample does not work with a make file in Terminal either.

Any idea what might be wrong here? Thanks.

Did you confirm that you installed the dependencies and have openCv installed?

I’ve rerun ./install_dependencies.sh and apparently all is up to date:

selecting gtk 3
installing OF dependencies
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libsndfile1-dev' instead of 'libsndfile-dev'
Note, selecting 'libpython2.7-stdlib' instead of 'python-argparse'
freeglut3-dev is already the newest version.
g++ is already the newest version.
libasound2-dev is already the newest version.
libcairo2-dev is already the newest version.
libdrm-dev is already the newest version.
libglew-dev is already the newest version.
libglu1-mesa-dev is already the newest version.
libpulse-dev is already the newest version.
libpython2.7-stdlib is already the newest version.
libraw1394-dev is already the newest version.
libsndfile1-dev is already the newest version.
libusb-1.0-0-dev is already the newest version.
libxmu-dev is already the newest version.
libxxf86vm-dev is already the newest version.
python-lxml is already the newest version.
libfreeimage-dev is already the newest version.
libopenal-dev is already the newest version.
libfreetype6-dev is already the newest version.
libgl1-mesa-dev is already the newest version.
libgtk-3-dev is already the newest version.
libssl-dev is already the newest version.
libudev-dev is already the newest version.
The following packages were automatically installed and are no longer required:
  gamin libgamin0 valgrind
Use 'apt-get autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 7 not to upgrade.
installing gstreamer
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gstreamer1.0-alsa is already the newest version.
gstreamer1.0-plugins-base is already the newest version.
gstreamer1.0-plugins-good is already the newest version.
gstreamer1.0-pulseaudio is already the newest version.
gstreamer1.0-x is already the newest version.
libgstreamer-plugins-base1.0-dev is already the newest version.
libgstreamer1.0-dev is already the newest version.
gstreamer1.0-libav is already the newest version.
gstreamer1.0-plugins-bad is already the newest version.
The following packages were automatically installed and are no longer required:
  gamin libgamin0 valgrind
Use 'apt-get autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 7 not to upgrade.

How can I confirm that I have openCv installed?

I’ve also just run: sudo apt-get install libopencv-dev and this did not appear to fix any problem. The package is openCv 2.4.9.

Thanks again.

there might be some incompatibility between the library we packed in 0.8.4 and ubuntu 15.04. can you try with the nightly builds that you can find below the normal downloads?