Error: build OpenCV3.0 + opencv_contrib in Mac

asked 2015-12-24 22:39:29 -0500

Wei gravatar image

build OpenCV + opencv_contrib I refer this net: http://xfanzone.me/opencv-for-ios-en.... and enter code in Terminal: cmake -DOPENCV_EXTRA_MODULES_PATH=/Users/admin/OpenCV_for_iOS/opencv_contrib/modules /Users/admin/OpenCV_for_iOS/opencv-master.

Terminal export:


-- GUI: -- QT: NO -- Cocoa: YES -- OpenGL support: NO

-- VTK support: NO

-- Media I/O: -- ZLib: build (ver 1.2.8) -- JPEG: build (ver 90) -- WEBP: build (ver 0.3.1) -- PNG: build (ver 1.6.19) -- TIFF: build (ver 42 - 4.0.2) -- JPEG 2000: build (ver 1.900.1) -- OpenEXR: build (ver 1.7.1)

-- GDAL: NO

-- Video I/O: -- DC1394 1.x: NO -- DC1394 2.x: NO -- FFMPEG: NO -- codec: NO -- format: NO -- util: NO -- swscale: NO -- resample: NO -- gentoo-style: NO -- GStreamer: NO -- OpenNI: NO -- OpenNI PrimeSensor Modules: NO -- OpenNI2: NO -- PvAPI: NO -- GigEVisionSDK: NO -- QuickTime: NO -- QTKit: YES -- V4L/V4L2: NO/NO -- XIMEA: NO

-- gPhoto2: NO

-- Parallel framework: GCD

-- Other third-party libraries: -- Use IPP: 9.0.1 [9.0.1] -- at: /Users/admin/Desktop/ChenWei-workspace/OpenCV_for_iOS/opencv-master/3rdparty/ippicv/unpack/ippicv_osx -- Use IPP Async: NO -- Use VA: NO -- Use Intel VA-API/OpenCL: NO -- Use Eigen: NO -- Use Cuda: NO

-- Use OpenCL: YES

-- OpenCL: -- Version: static -- libraries: -framework OpenCL -- Use AMDFFT: NO

-- Use AMDBLAS: NO

-- Python 2: -- Interpreter: /usr/bin/python2.7 (ver 2.7.10) -- Libraries: /usr/lib/libpython2.7.dylib (ver 2.7.10) -- numpy: /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include (ver 1.8.0rc1)

-- packages path: lib/python2.7/site-packages

-- Python 3:

-- Interpreter: NO

-- Python (for build): /usr/bin/python2.7

-- Java: -- ant: NO -- JNI: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/JavaVM.framework/Headers /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/JavaVM.framework/Headers /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/JavaVM.framework/Headers -- Java wrappers: NO

-- Java tests: NO

-- Matlab:

-- mex: NO

-- Documentation: -- Doxygen: NO

-- PlantUML: NO

-- Tests and samples: -- Tests: YES -- Performance tests: YES

-- C/C++ Examples: NO

-- Install path: /usr/local

-- cvconfig.h is in: /Users/admin/Desktop/ChenWei-workspace/OpenCV_for_iOS/opencvframeworkbuild

-- -----------------------------------------------------------------

-- Configuring done -- Generating done -- Build files have been written to: /Users/admin/Desktop/ChenWei-workspace/OpenCV_for_iOS/opencv


and then . make -j Error in 80%


/usr/local/include/opencv2/core/mat.hpp:58:13: error: incomplete type 'cv::Mat' named in nested name specifier inline void Mat::initEmpty() ^~~~~

/usr/local/include/opencv2/core/mat.hpp:67:8: error: incomplete type 'cv::Mat' named in nested name specifier inline Mat::Mat() : size(&rows) ^~~~~ /usr/local/include/opencv2/core/mat.hpp:72:8: error: incomplete type 'cv::Mat' named in nested name specifier inline Mat::Mat(int _rows, int _cols, int _type) : size(&rows)

/usr/local/include/opencv2/core/mat.hpp:78:8: error: incomplete type 'cv::Mat' named in nested name specifier inline Mat::Mat(int _rows, int _cols, int _type, const Scalar& _s) : size(&rows)

/usr/local/include/opencv2/core/mat.hpp:78:8: error: incomplete type 'cv ...

(more)
edit retag flag offensive close merge delete

Comments

1

it seems, you have an older opencv2.4 version around

(why does it even look in /usr/local/include ?)

berak gravatar imageberak ( 2015-12-25 03:11:28 -0500 )edit