Giter Site home page Giter Site logo

cmake_python2_libraries's People

Watchers

 avatar

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.