前提・実現したいこと
Jetson Nanoのpyenv環境上にOpenCVをビルドしたいのですがうまく行きません.
インストールしたpythonは3.6.9です. ~/.pyenv/versions/3.6.9以下にインストールしています.
ビルドするOpenCVは
CMakeは3.10.2を使用し, 以下のようにオプションを設定しました.
cmake ${PWD}/../opencv-3.4.11
-DCMAKE_BUILD_TYPE=RELEASE
-DCMAKE_INSTALL_PREFIX=${HOME}/.pyenv/versions/3.6.9/lib/python3.6/site-packages
-DINSTALL_C_EXAMPLES=OFF
-DBUILD_NEW_PYTHON_SUPPORT=ON
-DBUILD_opencv_python3=ON
-DBUILD_opencv_legacy=OFF
-DINSTALL_PYTHON_EXAMPLES=ON
-DBUILD_EXAMPLES=ON
-DWITH_V4L=ON
-DPYTHON_EXECUTABLE=${HOME}/.pyenv/versions/3.6.9/bin/python
-DPYTHON_LIBRARY=${HOME}/.pyenv/versions/3.6.9/lib/libpython3.6m.so
-DPYTHON_INCLUDE_DIR=${HOME}/.pyenv/versions/3.6.9/include/python3.6m
-DPYTHON_INCLUDE_DIRS=${HOME}/.pyenv/versions/3.6.9/include/python3.6m
-DPYTHON_INCLUDE_DIRS2=${HOME}/.pyenv/versions/3.6.9/include/python3.6m
-DINCLUDE_DIRS=${HOME}/.pyenv/versions/3.6.5/include/python3.6m
-DINCLUDE_DIRS2=${HOME}/.pyenv/versions/3.6.5/include/python3.6m
-DPYTHON_PACKAGES_PATH=${HOME}/.pyenv/versions/3.6.9/lib/python3.6/site-packages
-DPYTHON_NUMPY_INCLUDE_DIR=${HOME}/.pyenv/versions/3.6.9/lib/python3.6/site-packages/numpy/core/include
-DOPENCV_EXTRA_MODULES_PATH=${PWD}/../opencv_contrib-3.4.11/modules
あなたの回答
tips
プレビュー