![]() ![]() ![]() ![]() D PYTHON3_EXECUTABLE=~/miniconda3/envs/cv/bin/python \ D PYTHON3_INCLUDE_DIR=~/miniconda3/envs/cv/include/python3.6m \ D PYTHON3_LIBRARY=~/miniconda3/envs/cv/lib/python3.6m.dylib \ D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \ On my system, compiling OpenCV (from source directories in my home directory) for a Conda virtual environment called cv for a Miniconda installation located in my home directory looks like this: export CPLUS_INCLUDE_PATH=~/miniconda3/envs/cv/lib/python3.6 The first line tells cmake where to find C headers for your virtual environment. D PYTHON3_PACKAGES_PATH=/lib/python3.6/site-packages \ D PYTHON3_INCLUDE_DIR=/include/python3.6m \ D PYTHON3_LIBRARY=/lib/python3.6m.dylib \ D OPENCV_EXTRA_MODULES_PATH=/opencv_contrib/modules \ Instead, execute the following commands (adjusting the Python version as necessary): export CPLUS_INCLUDE_PATH=/lib/python3.6 Follow the steps in Adrian’s tutorial up until executing the cmake command. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |