how to run c++ program on mac os x with terminale
Hi i don't know how to run a program like this:
how can i run this program with terminale?
Hi i don't know how to run a program like this:
how can i run this program with terminale?
I think the easiest way is to create a cmake project and compile your program using cmake. Details are at http://docs.opencv.org/trunk/db/df5/t... (it refers to Linux and gcc, but it's the same on Mac).
Just create a CmakeLists.txt (provided your file is called DisplayImage.cpp):
cmake_minimum_required(VERSION 2.8)
project( DisplayImage )
find_package( OpenCV REQUIRED )
include_directories( ${OpenCV_INCLUDE_DIRS} )
add_executable( DisplayImage DisplayImage.cpp )
target_link_libraries( DisplayImage ${OpenCV_LIBS} )
and then compile your program:
cmake .
make
./DisplayImage
Asked: 2017-09-13 06:56:41 -0600
Seen: 269 times
Last updated: Sep 13 '17
Macports, compiling using G++ in Terminal
createsample success, but traincascade said 'Can not get new positive sample'
Linux Terminal Command to test the OpenCV
How do I write into YML format and read it with opencv and C++ ?
Help with "Undefined-reference" when compiling with CMake for OpenCV & C++ program