Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

run error opencv 3.0.0 on Ubuntu 14.04

$
0
0
Can you help me understand what wrong exactly and what should I do? linaro@linaro-nano:~/opencv/samples/cpp$ ./cpp-example-facedetect lena.jpg This program demonstrates the cascade recognizer. Now you can use Haar or LBP features. This classifier can recognize many kinds of rigid objects, once the appropriate classifier is trained. It's most known use is for faces. Usage: ./facedetect [--cascade= this is the primary trained classifier such as frontal face] [--nested-cascade[=nested_cascade_path this an optional secondary classifier such as eyes]] [--scale=] [--try-flip] [filename|camera_index] see facedetect.cmd for one call: ./facedetect --cascade="../../data/haarcascades/haarcascade_frontalface_alt.xml" --nested-cascade="../../data/haarcascades/haarcascade_eye.xml" --scale=1.3 During execution: Hit any key to quit. Using OpenCV version 3.0.0-dev Processing 1 lena.jpg Capture from AVI didn't work OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvNamedWindow, file /home/linaro/nourelhak/opencv/modules/highgui/src/window.cpp, line 522 terminate called after throwing an instance of 'cv::Exception' what(): /home/linaro/nourelhak/opencv/modules/highgui/src/window.cpp:522: error: (-2) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function cvNamedWindow Aborted linaro@linaro-nano:~opencv/samples/cpp$ sudo apt-get install cmake git libgtk2.0-dev pkg-config Reading package lists... Done Building dependency tree Reading state information... Done cmake is already the newest version. git is already the newest version. pkg-config is already the newest version. Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: libgtk2.0-dev : Depends: libpango1.0-dev (>= 1.20) but it is not going to be installed Depends: libcairo2-dev (>= 1.6.4-6.1) but it is not going to be installed E: Unable to correct problems, you have held broken packages. linaro@linaro-nano:~/opencv/samples/cpp$ sudo apt-get install libgtk2.0-dev libpango1-dev libcairo2-dev libfontconfig1-dev Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libpango1-dev linaro@linaro-nano:~/opencv/samples/cpp$ apt-cache policy libfontconfig1 libfontconfig1: Installed: 2.11.0-0ubuntu4 Candidate: 2.11.0-0ubuntu4 Version table: *** 2.11.0-0ubuntu4 0 500 http://ports.ubuntu.com/ubuntu-ports/ trusty/main armhf Packages 100 /var/lib/dpkg/status linaro@linaro-nano:~/opencv/samples/cpp$ apt-cache madison libfontconfig1 libfontconfig1 | 2.11.0-0ubuntu4 | http://ports.ubuntu.com/ubuntu-ports/ trusty/main armhf Packages fontconfig | 2.11.0-0ubuntu4 | http://ports.ubuntu.com/ubuntu-ports/ trusty/main Sources linaro@linaro-nano:~/opencv/samples/cpp$ linaro@linaro-nano:~/nourelhak/opencv/samples/cpp$ sudo apt-get install libpango1.0-dev Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: libpango1.0-dev : Depends: libfreetype6-dev but it is not going to be installed Depends: libxft-dev but it is not going to be installed Depends: libfontconfig1-dev (>= 2.10.91) but it is not going to be installed Depends: libcairo2-dev (>= 1.12.10) but it is not going to be installed E: Unable to correct problems, you have held broken packages.

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>