【发布时间】:2014-04-17 04:33:18
【问题描述】:
我正在尝试在 Ubuntu 上运行用 C++ 编写的 OpenCV 程序。我按照this 教程在我的系统上安装 OpenCV。
然后我按照 this 教程使用教程中指定的以下 Cmake 命令运行我的代码:
cmake_minimum_required(VERSION 2.8)
project( PedestrianDetection )
find_package( OpenCV REQUIRED )
add_executable( PedestrianDetection PedestrianDetection.cpp )
target_link_libraries( ${OpenCV_LIBS} )
但是,Cmake 给了我以下输出:
CMake Error at CMakeLists.txt:5 (target_link_libraries):
Cannot specify link libraries for target "opencv_videostab" which is not
built by this project.
有人可以指出我链接库的正确方向吗?
顺便说一下,我用的是OpenCV2.4.8
【问题讨论】: