conda环境下安装opencv c++

#禁用 BUILD_TIFF=ON
cmake -D BUILD_TIFF=ON
# 安装 conda install opencv=4.5.3
conda install -c conda-forge opencv

cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/home/qingshen2/anaconda3/envs/1.26_gpu -D BUILD_opencv_python=OFF -D BUILD_opencv_java=OFF -D BUILD_opencv_js=OFF ..

conda install -c conda-forge libva libdrm

conda config --add channels conda-forge
conda install tbb
conda install -c conda-forge cmake git pkg-config
conda install -c conda-forge gtk2 libavcodec libavformat libswscale libtbb2 libjpeg-turbo 
conda install -c conda-forge libtiff libva-dev libdrm-dev
libpng libtiff libdc1394 ffmpeg
git clone https://github.com/opencv/opencv.git
cd opencv

mkdir build
cd build
cmake ..
make
make install
还是报错,继续调整
Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐