Ask Your Question
-1

Core hpp header must be compiled with C++

asked 2014-07-06 08:00:10 -0600

bryanjhlim gravatar image

I have some problems compiling a simple OpenCV iOS project on Xcode.

After compiling in Xcode I get the following errors: "Core.hpp header must be compiled as C++" "Base.hpp header must be compiled as C++" "climits file not found"

I have setup OpenCV 2.4.9 the following way (Cmake installed): git clone https://github.com/Itseez/opencv.git python opencv/platforms/ios/build_framework.py ios

I get the following:

$ python opencv/platforms/ios/build_framework.py ios -- Setting up iPhoneOS toolchain -- iPhoneOS toolchain loaded -- Looking for linux/videodev.h -- Looking for linux/videodev.h - not found -- Looking for linux/videodev2.h -- Looking for linux/videodev2.h - not found -- Looking for sys/videoio.h -- Looking for sys/videoio.h - not found -- Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.7") -- Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.6") -- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) -- Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN)

Machine Details: MacBook Air - Mac OS X 10.9.3 Xcode 5.1.1 Python 2.7

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-09-17 18:19:26 -0600

1000eyes gravatar image

Rename the related *.m files to *.mm and *.h to *.hpp. This works with mine.

edit flag offensive delete link more

Comments

wich os are you using i'm facing the same error in ubuntu14.04 using the latest version of opencv 3.0

franken gravatar imagefranken ( 2015-07-08 15:47:16 -0600 )edit
0

answered 2015-12-20 06:19:42 -0600

pavees gravatar image

Hi All, I too have the same issue, but the above solution is not working for me. I am stuck with this issue for last few days. Could you suggest me in what to be done to fix the same.

Please advice

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-07-06 08:00:10 -0600

Seen: 9,842 times

Last updated: Sep 17 '14