I cannot cmake opencv with support of python 3.4.
I'm on mac 10.9.
This is the command I use:
$ cmake -G "Unix Makefiles" -DBUILD_NEW_PYTHON_SUPPORT=ON -DINSTALL_PYTHON_EXAMPLES=ON -DPYTHON_EXECUTABLE=/opt/local/bin/python -DPYTHON_NUMPY_INCLUDE_DIR=/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/numpy/core/include/ -DPYTHON_INCLUDE_DIR=/opt/local/Library/Frameworks/Python.framework/Versions/3.4/include/ -DPYTHON_PACKAGES_PATH=/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/ -DBUILD_PYTHON_SUPPORT=ON -DPYTHON_LIBRARY=/opt/local/Library/Frameworks/Python.framework/Versions/3.4/Python ..
I installed python with macports, everything is great except the opencv. I can install opencv with macports, but then my python installation does not see anything from it (or I don't know how to provide it there).
In the beginning of cmake'ing process:
-- Found PythonLibs: /opt/local/Library/Frameworks/Python.framework/Versions/3.4/Python (Required is exact version "3.4.1")
File "<string>", line 1
from distutils.sysconfig import *; print get_python_lib()
^
SyntaxError: invalid syntax
File "<string>", line 1
import numpy; print numpy.version.version
At the end there is a bunch of errors and suggestion to look into cmake errors log with the following:
Run Build Command:"/usr/bin/make" "cmTryCompileExec3501891729/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTryCompileExec3501891729.dir/build.make CMakeFiles/cmTryCompileExec3501891729.dir/build
/opt/local/bin/cmake -E cmake_progress_report /Users/emorozov/Downloads/opencv-2.4.9/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3501891729.dir/OFF64_T.c.o
/usr/bin/cc -fsigned-char -W -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -fdiagnostics-show-option -Wno-long-long -fno-omit-frame-pointer -msse -msse2 -msse3 -O3 -DNDEBUG -o CMakeFiles/cmTryCompileExec3501891729.dir/OFF64_T.c.o -c /Users/emorozov/Downloads/opencv-2.4.9/build/CMakeFiles/CheckTypeSize/OFF64_T.c
/Users/emorozov/Downloads/opencv-2.4.9/build/CMakeFiles/CheckTypeSize/OFF64_T.c:19:12: error: use of undeclared identifier 'off64_t'; did you mean 'off_t'?
('0' + ((SIZE / 10000)%10)),
Everyone with any suggestions are really welcome!
Thanks in advance