我想使用 OpenCV 来处理使用摄像头的线跟踪机器人中的图像。我想在装有 ubuntu 12.04 2GB Nvidia 卡的 64 位笔记本电脑上安装 openCV。
我尝试了以下命令:
sudo apt-get install libopen-dev
但我收到了无法更正的错误,并且您有一些损坏的包:
The following packages have unmet dependencies:
libopencv-dev : Depends: libopencv-objdetect-dev (= 2.3.1-7) but it is not going to be installed
Depends: libopencv-highgui-dev (= 2.3.1-7) but it is not going to be installed
Depends: libopencv-calib3d-dev (= 2.3.1-7) but it is not going to be installed
Depends: libopencv-features2d-dev (= 2.3.1-7) but it is not going to be installed
Depends: libopencv-legacy-dev (= 2.3.1-7) but it is not going to be installed
Depends: libopencv-contrib-dev (= 2.3.1-7) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
答案1
打开终端并运行:
sudo apt-get autoclean
sudo apt-get autoremove
sudo apt-get -f install
sudo apt-get dist-upgrade
sudo apt-get install --reinstall libopencv-dev