在Ubuntu8.10上安装opencv2.0缺lesslibunicap,libucil和libv4l1

基本上,我正在尝试通过Ubuntu 8.10上的CMake来构buildopencv 2.0。 它一直说我的系统上缺lesslibunicap,libucil和libv4l1。 我在Synaptic Package Manager之类的地方search了这些库的软件包,但是在http://packages.ubuntu.com上找不到任何东西,除此之外还有一些类似的libunicap2 libucil2,由于“安装错误:依赖不可满足“。

这是CMake报告的缺失的图书馆信息:

$ cmake -D CMAKE\_BUILD\_TYPE=RELEASE -D CMAKE\_INSTALL\_PREFIX=/usr/local -D BUILD\_PYTHON\_SUPPORT=ON .. -- Detected version of GNU GCC: 43 -- checking for module 'libunicap' -- package 'libunicap' not found -- checking for module 'libucil' -- package 'libucil' not found -- checking for module 'libv4l1' -- package 'libv4l1' not found -- IPP detected: -- Parsing 'cvconfig.h.cmake' running mkdir -p "/home/tim/program_files/tim/OpenCV-2.0.0/release/unix-install/" 2>&1 -- -- General configuration for opencv 2.0.0 ===================================== -- -- Compiler: -- C++ flags (Release): -Wall -pthread -ffunction-sections -O3 -DNDEBUG -fomit-frame-pointer -O3 -ffast-math -mmmx -DNDEBUG -- C++ flags (Debug): -Wall -pthread -ffunction-sections -g -O0 -DDEBUG -D_DEBUG -- Linker flags (Release): -- Linker flags (Debug): -- -- GUI: -- GTK+ 2.x: 1 -- GThread: 1 -- -- Image I/O: -- JPEG: TRUE -- PNG: TRUE -- TIFF: TRUE -- JASPER: TRUE -- -- Video I/O: -- DC1394 1.x: -- DC1394 2.x: 1 -- FFMPEG: 1 -- codec: 1 -- format: 1 -- util: 1 -- swscale: 1 -- gentoo-style: -- GStreamer: 1 -- UniCap: -- V4L/V4L2: 1/1 -- Xine: 1 -- -- Interfaces: -- Old Python: 0 -- Python: ON -- Use IPP: NO -- Build Documentation 0 -- -- Install path: /usr/local -- -- cvconfig.h is in: /home/tim/program_files/tim/OpenCV-2.0.0/release -- ----------------------------------------------------------------- -- -- Configuring done -- Generatim done -- Build files have been written to: /home/tim/program_files/tim/OpenCV-2.0.0/release 

我也尝试安装为OpenCV的早期版本指定的预先需要的库,我在网上find它,但发现它们已经安装:

 $ sudo apt-get install libgtk2.0-dev libavcodec-dev libavformat-dev libjpeg62-dev libtiff4-dev Reading package lists... Done Building dependency tree Reading state information... Done libgtk2.0-dev is already the newest version. libavcodec-dev is already the newest version. libavformat-dev is already the newest version. libjpeg62-dev is already the newest version. libtiff4-dev is already the newest version. The following packages were automatically installed and are no longer required: dnsmasq-base ttf-liberation Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded. 

所以我感到困惑。 任何人都可以提出一些build议吗?

感谢致敬!

不幸的是,没有unicap和ucil包的Ubuntu的耐寒。 这并不意味着你不能在你的应用程序中编译和使用openCV-2.0,只是你会错过这些特定库提供的function。

运行cmake后,你只需要编译和安装OpenCV:

 $ make $ sudo make install 

从你执行cmake的同一个目录。

然后,您可以按照INSTALL文件最后一部分的信息来编译和链接您的应用程序和OpenCV。