Ask Your Question
2

problem with installation opencv

asked 2013-02-01 08:24:13 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

Hello ! I try to install opencv on macbook pro following this instruction i have problem when i build OpenCV framework. when i type

python opencv/ios/build_framework.py iOS

i got this problem:

CMake Error: Internal CMake error, TryCompile configure of cmake failed -- Looking for linux/videodev.h - not found -- Looking for linux/videodev2.h CMake Error at /opt/local/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (get_filename_component): get_filename_component called with incorrect number of arguments Call Stack (most recent call first): CMakeLists.txt:3 (PROJECT)

CMake Error: Internal CMake error, TryCompile configure of cmake failed -- Looking for linux/videodev2.h - not found -- Looking for sys/videoio.h CMake Error at /opt/local/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (get_filename_component): get_filename_component called with incorrect number of arguments Call Stack (most recent call first): CMakeLists.txt:3 (PROJECT)

CMake Error: Internal CMake error, TryCompile configure of cmake failed -- Looking for sys/videoio.h - not found -- Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.0") -- Performing Test HAVE_OBJCXX_FOBJC_EXCEPTIONS CMake Error at /opt/local/share/cmake-2.8/Modules/CMakeCXXInformation.cmake:37 (get_filename_component): get_filename_component called with incorrect number of arguments Call Stack (most recent call first): CMakeLists.txt:3 (PROJECT)

CMake Error: Internal CMake error, TryCompile configure of cmake failed

-- Performing Test HAVE_OBJCXX_FOBJC_EXCEPTIONS - Failed

-- General configuration for OpenCV 2.4.9 =====================================

-- Platform: -- Host: Darwin 11.4.2 i386 -- Target: iOS -- CMake: 2.8.10 -- CMake generator: Xcode -- CMake build tool: /opt/local/bin/cmakexbuild

-- Xcode: 4.3.3

-- C/C++: -- Built as dynamic libs?: NO -- C++ Compiler: CMAKE_CXX_COMPILER-NOTFOUND -- C++ flags (Release): -stdlib=libc++ -headerpad_max_install_names -fvisibility=hidden -fvisibility-inlines-hidden -DNDEBUG -O3 -fomit-frame-pointer -ffast-math -- C++ flags (Debug): -stdlib=libc++ -headerpad_max_install_names -fvisibility=hidden -fvisibility-inlines-hidden
-- C Compiler: CMAKE_C_COMPILER-NOTFOUND -- C flags (Release):
-- C flags (Debug):
-- Linker flags (Release):
-- Linker flags (Debug):

-- Precompiled headers: NO

-- OpenCV modules: -- To be built: core imgproc flann highgui features2d calib3d ml video objdetect contrib legacy nonfree photo stitching videostab world -- Disabled: - -- Disabled by dependency: -

-- Unavailable: androidcamera gpu java ocl python ts

-- GUI: -- Cocoa: YES

-- OpenGL support: NO

-- Media I/O: -- ZLib: build (ver 1.2.7) -- JPEG: NO -- PNG: NO -- TIFF: NO -- JPEG 2000: NO

-- OpenEXR: NO

-- Video I/O: -- AVFoundation: YES -- QuickTime: NO -- QTKit: YES

-- V4L/V4L2: NO/NO

-- Other third-party libraries: -- Use OpenCL: NO -- Use Eigen: NO

-- Use Clp: NO

-- Python:

-- Interpreter: NO

-- Documentation: -- Build Documentation: NO -- Sphinx: NO

-- PdfLaTeX compiler: NO

-- Tests and samples: -- Tests: NO -- Performance tests: NO

-- Examples: NO

-- Install path: /usr/local/working_directory/ios/build/iPhoneSimulator-i386/install

-- cvconfig.h is in: /usr/local/working_directory/ios/build/iPhoneSimulator-i386

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

-- Configuring incomplete, errors occurred! error: can't exec '/Developer/usr/bin/xcodebuild' (No such file or directory) error: can't exec '/Developer/usr/bin/xcodebuild' (No such file or directory) Traceback (most recent call last): File "opencv/ios/build_framework.py", line 128, in <module> build_framework(os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), "..")), os.path.abspath(sys.argv[1])) File "opencv/ios/build_framework.py", line 120, in build_framework put_framework_together(srcroot, dstroot) File "opencv/ios ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-02-06 17:01:49 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

Try running

$ git checkout 2.4.3 # or 2.4.3.1 or 2.4.3.2

...somewhere in your opencv checkout before you run

$ python ./build_framework.py <SOME_DIR_OUTSIDE_OF_OPENCV_SOURCE_TREE>
edit flag offensive delete link more

Comments

I did it : $ git checkout 2.3.4
and when i type "python .../build_framework.py <some dir> i got the same problem" Configuring incomplete, errors occurred!

Faiton gravatar imageFaiton ( 2013-02-07 07:11:02 -0600 )edit

It worked for me! It seems they fixe it in the 2.4.3.1. I just changed the branch with the command git checkout 2.4.3.1, and then I have built the framework.

I hope it works for you too! Thank you very much chancancode!

ecthelion07 gravatar imageecthelion07 ( 2013-02-07 13:39:30 -0600 )edit

Question Tools

Stats

Asked: 2013-02-01 08:24:13 -0600

Seen: 5,006 times

Last updated: Feb 17 '13