I am trying to run an OpenCV program written in C++ on Ubuntu. I followed this tutorial to install OpenCV on my system.
I then followed this tutorial to run my code with the following Cmake commands as specified in the tutorial:
cmake_minimum_required(VERSION 2.8)
project( PedestrianDetection )
find_package( OpenCV REQUIRED )
add_executable( PedestrianDetection PedestrianDetection.cpp )
target_link_libraries( ${OpenCV_LIBS} )
However, Cmake gives me the following output:
CMake Error at CMakeLists.txt:5 (target_link_libraries):
Cannot specify link libraries for target "opencv_videostab" which is not
built by this project.
Can someone point me in the right direction to link the libraries?
By the way, I am using OpenCV2.4.8
from the documentation
try instead