Ask Your Question

Revision history [back]

To use CMAKE:

cmake_minimum_required(VERSION 2.8) set (CMAKE_CXX_STANDARD 11) project( DisplayImage ) find_package( OpenCV REQUIRED ) include_directories( /usr/local/include/opencv4/ ) add_executable( DisplayImage DisplayImage.cpp ) target_link_libraries( DisplayImage /usr/local/lib -lopencv_core -lopencv_imgcodecs -lopencv_highgui )

Compiles the program without error.

click to hide/show revision 2
No.2 Revision

updated 2018-12-16 11:36:39 -0600

berak gravatar image

To use CMAKE:

 cmake_minimum_required(VERSION 2.8)
set (CMAKE_CXX_STANDARD 11)
project( DisplayImage )
find_package( OpenCV REQUIRED )
include_directories( /usr/local/include/opencv4/ )
add_executable( DisplayImage DisplayImage.cpp )
target_link_libraries( DisplayImage /usr/local/lib -lopencv_core -lopencv_imgcodecs -lopencv_highgui )

Compiles the program without error.