tar -xzvf opencv-3.3.0.tar.gz
cd opencv-3.3.0/
cd ..
mkdir my_build_dir
cd my_build_dir
cmake ../opencv-3.3.0 -DWITH_GTK_2_X=ON -DCMAKE_INSTALL_PREFIX=/usr/local
make    # make -j4表示开4个线程来进行编译
make install

 如果安装ffmpeg后发现找不到ffmpeg相关的so,可以试试export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

相关文章:

  • 2022-12-23
  • 2022-01-18
  • 2021-08-18
  • 2022-12-23
  • 2022-12-23
  • 2021-07-19
  • 2022-01-13
猜你喜欢
  • 2018-07-27
  • 2021-05-20
  • 2021-08-06
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
相关资源
相似解决方案