Hi I am trying to install OpenCV on my Macbook air 2013, but I always have this error:
Last login: Sun Jan 12 19:37:05 on ttys000
MacBook-Air-de-Charles-Olivier:~ Charlot$ cd /Users/Charlot/Desktop/OpenCV-2.3.1
MacBook-Air-de-Charles-Olivier:OpenCV-2.3.1 Charlot$ mkdir build
MacBook-Air-de-Charles-Olivier:OpenCV-2.3.1 Charlot$ cd /Users/Charlot/Desktop/OpenCV-2.3.1/build
MacBook-Air-de-Charles-Olivier:build Charlot$ cmake -G "Unix Makefiles" ..
-- The C compiler identification is Clang 5.0.0
-- The CXX compiler identification is Clang 5.0.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Extracting svn version, please wait...
-- SVNVERSION: svn:Répertoire non versionné
-- Looking for libavformat/avformat.h
-- Looking for libavformat/avformat.h - not found
-- Looking for ffmpeg/avformat.h
-- Looking for ffmpeg/avformat.h - not found
-- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.8")
-- Found PNG: /usr/local/lib/libpng.dylib (found version "1.5.14")
-- Looking for /usr/local/include/png.h
-- Looking for /usr/local/include/png.h - found
-- Looking for /usr/local/include/libpng/png.h
-- Looking for /usr/local/include/libpng/png.h - not found
-- Found TIFF: /opt/local/lib/libtiff.dylib (found version "4.0.3")
-- Found JPEG: /opt/local/lib/libjpeg.dylib
-- Found Jasper: /opt/local/lib/libjasper.dylib (found version "1.900.1")
-- Found OpenEXR: /opt/local/lib/libIlmImf.dylib
-- Found PythonInterp: /usr/bin/python (found version "2.7.5")
-- Found PythonLibs: /usr/lib/libpython2.7.dylib (found version "2.7.5")
-- Use NumPy headers from: /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named sphinx
CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version "4.0")
-- Parsing 'cvconfig.h.cmake'
-- General configuration for opencv 2.3.1 =====================================
-- Built as dynamic libs?: YES
-- Compiler: /usr/bin/c++
-- C++ flags (Release): -O3 -DNDEBUG
-- C++ flags (Debug): -g
-- Linker flags (Release):
-- Linker flags (Debug):
-- GUI:
-- Cocoa: YES
-- Media I/O:
-- ZLib: YES
-- JPEG: TRUE
-- PNG: TRUE
-- TIFF: TRUE
-- JPEG 2000: TRUE
-- OpenEXR: YES
-- OpenNI: NO
-- OpenNI PrimeSensor Modules: NO
-- XIMEA: NO
-- Video I/O: QTKit
-- Other third-party libraries:
-- Use IPP: NO
-- Use TBB: NO
-- Use ThreadingFramework: NO
-- Use Cuda: NO
-- Use Eigen: NO
-- Interfaces:
-- Python: YES
-- Python interpreter: /usr/bin/python -B (ver 2.7)
-- Python numpy: YES
-- Java: NO
-- Documentation:
-- Sphinx: NO
-- PdfLaTeX compiler: /usr/texbin/pdflatex
-- Build Documentation: NO
-- Tests and samples:
-- Tests: YES
-- Examples: NO
-- Install path: /usr/local
-- cvconfig.h is in: /Users/Charlot/Desktop/OpenCV-2.3.1/build
-- -----------------------------------------------------------------
-- Configuring done
CMake Warning (dev) in modules/haartraining/CMakeLists.txt:
Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link
interface. Run "cmake --help-policy ...
(more)