I know there are many similar questions to this, but I can't find an answer that helps me and this is beginning to drive me nuts!
I'm trying to install OpenCV 3.0.0-beta with Python bindings but I'm having no luck. I'm using CMake in terminal using the following:
cmake −D PYTHON_EXECUTABLE=/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 \
−D PYTHON_PACKAGES_PATH=/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site−packages \
−D PYTHON_INCLUDE_DIR=/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 \
−D PYTHON_LIBRARY=/Library/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib
In terminal I'm working as the root user (sudo -i) and I have unzipped opencv-3.0.0-beta to /Library as well as created a build folder using mkdir. I navigate to the build folder and run the cmake command, but I get the following error:
CMake Error: The source directory "/Library/opencv-3.0.0-beta/build/PYTHON_LIBRARY=/Library/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib" does not exist.
I've checked all the paths and checked again. All the files are there, so I can't see what the problem is. I've looked at lots of similar issues but I'm getting nowhere fast.
I would be grateful for any help or advice.