![]() ![]() C flags (Release): -fsigned-char -ffast-math -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG AVX2 (33 files): SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX (5 files): SSSE3 SSE4_1 POPCNT SSE4_2 AVX FP16 (1 files): SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX Location (extra): /tmp/opencv_contrib/modules D OPENCV_EXTRA_MODULES_PATH=/tmp/opencv_contrib/modules \Īnd this is the General Config output - General configuration for OpenCV 4.5.5 = D OPENCV_PYTHON3_INSTALL_PATH=$(python3 -c "from distutils.sysconfig import get_python_lib print(get_python_lib())") \ D CMAKE_INSTALL_PREFIX=$(python3 -c "import sys print(sys.prefix)") \ I wanted to add to CYL answer, I use that GitHub Gist and it works, but I have to drop all my junk cmake flags. Note: compiling opencv-4.5.4 on L4T ubuntu But grep -ni OPENCV_PYTHON3_INSTALL_PATH CMakeCache.txt returns nothing.Īt this point, I tried to add cmake -DOPENCV_PYTHON3_INSTALL_PATH=~/Programs/opencv/local/lib/python3.6/site-packages/, still nothing in cmake output (blank install path) but grep -ni OPENCV_PYTHON3_INSTALL_PATH CMakeCache.txtġ076:OPENCV_PYTHON3_INSTALL_PATH:UNINITIALIZED=~/Programs/opencv/local/lib/python3.6/site-packages/Īnd after make install (without sudo - I don't have root privilege and need local install), I have no python binding in the local install. So I guess empty install path hides a problem behind. ![]() numpy: /home/me/.local/lib/python3.6/site-packages/numpy/core/include (ver 1.19.5) Interpreter: /usr/bin/python3 (ver 3.6.9) Once installed, how to set up environnement to get python -c "import cv2" to work with my custom-built OpenCV ? How to get python(3) binding for OpenCV when building it on a module basis ? There is no python related option but only a CMake option as far as I understand the doc. Would be easier to use these OpenCV modules from python so I add cmake -D BUILD_opencv_python3=ON but make install does not create the prefix/lib/pythonX.Y/site-packages directory I expected. I need to build OpenCV from source and I have limited space, so, I have to build OpenCV on a module basis ( - Build limited set of modules).
0 Comments
Leave a Reply. |