Iss*_*sac 4 c++ ubuntu opencv apt-get
读取包列表...完成构建依赖关系树
读取状态信息...完成某些包无法安装.这可能意味着您已经请求了一个不可能的情况,或者如果您正在使用不稳定的分发,某些必需的包尚未创建或已被移出Incoming.以下信息可能有助于解决此问题:
The following packages have unmet dependencies:
libopencv-dev : Depends: libopencv-objdetect-dev (= 2.4.8+dfsg1-2ubuntu1) but it is not going to be installed
Depends: libopencv-highgui-dev (= 2.4.8+dfsg1-2ubuntu1) but it is not going to be installed
Depends: libopencv-legacy-dev (= 2.4.8+dfsg1-2ubuntu1) but it is not going to be installed
Depends: libopencv-contrib-dev (= 2.4.8+dfsg1-2ubuntu1) but it is not going to be installed
Depends: libopencv-videostab-dev (= 2.4.8+dfsg1-2ubuntu1) but it is not going to be installed
Depends: libopencv-superres-dev (= 2.4.8+dfsg1-2ubuntu1) but it is not going to be installed
Depends: libopencv-ocl-dev (= 2.4.8+dfsg1-2ubuntu1) but it is not going to be installed
Depends: libcv-dev (= 2.4.8+dfsg1-2ubuntu1) but it is not going to be installed
Depends: libhighgui-dev (= 2.4.8+dfsg1-2ubuntu1) but it is not going to be installed
Depends: libcvaux-dev (= 2.4.8+dfsg1-2ubuntu1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)
另外,我使用了"aptitude install libopencv-dev",但它没有用.所以我不知道如何完成这个问题.
官方回购中的包装已过时,请勿使用.这是我用来安装OpenCV的,也应该适合你.
sudo apt-get install build-essential make cmake git libgtk2.0-dev pkg-config python python-dev python-numpy libavcodec-dev libavformat-dev libswscale-dev libjpeg-dev libpng-dev libtiff-dev
cd ~/Downloads
git clone https://github.com/itseez/opencv
mv opencv /opt
cd /opt/opencv
git checkout 2.4.10.1 #or whatever version you want
sudo mkdir build
cd build
sudo cmake -j4 -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
sudo make -j4
sudo make -j4 install
sudo ldconfig
Run Code Online (Sandbox Code Playgroud)
请参阅此http://docs.opencv.org/doc/tutorials/introduction/linux_install/linux_install.html
| 归档时间: |
|
| 查看次数: |
8666 次 |
| 最近记录: |