cmake_python2_libraries's People
cmake_python2_libraries's Issues
cmake cannot find python2_libraries
System Mac 10.12 Sierra
Cmake 3.7
I am following http://www.pyimagesearch.com/2016/11/28/macos-install-opencv-3-and-python-2-7/, to install python2.7 with opencv, but I come across a issue which Is when I tried to configure them via cmake, it shows like:
-- Python 2:
-- Interpreter: /Users/tianyimiao/.virtualenvs/cv/bin/python (ver 2.7.10)
-- Libraries: NO
-- numpy: /Users/tianyimiao/.virtualenvs/cv/lib/python2.7/site-packages/numpy/core/include (ver 1.11.2)
-- packages path: lib/python2.7/site-packages
The Cmake Library path I use is:
cmake -D CMAKE_BUILD_TYPE=RELEASE
-D CMAKE_INSTALL_PREFIX=/usr/local
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules
-D PYTHON2_LIBRARY=/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/libpython2.7.dylib
-D PYTHON2_INCLUDE_DIR=/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/include/python2.7
-D PYTHON2_EXECUTABLE=$VIRTUAL_ENV/bin/python
-D BUILD_opencv_python2=ON
-D BUILD_opencv_python3=OFF
-D INSTALL_PYTHON_EXAMPLES=ON
-D INSTALL_C_EXAMPLES=OFF
-D BUILD_EXAMPLES=ON ..
The libraries cannot be found all the time, and I have tried to delete and recreate build several times and it does not work, and the specified Library path I used is right coz I can find that 'libpython2.7.dylib' file by that path.
I am new at Mac and python as well, so really want to know the reason and how to fix that.
I appreciate for any help! Thank you
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.