opencv on windows

已回答

Hi there, 

I am student and do love clion as my go to IDE, even though i don't understand everything in it. 

I mostly wrote c and c++ programs but now I'd like to start opencv programming. but is can't get it to work. it doesn't even find the include files at the beginning of my programs. I wanted to ask if someone can help me with recipe on how to set up opencv on a windows 64bit machine so I can use it with CLion. 

Sorry for the huge beginner question but I just don't get it.

Greetings from Switzerland 

 

Retus 

 
0

Hello!

If it's a CMake project, you need to add something similar to the following lines to your CMakeLists.txt:

find_package( OpenCV REQUIRED )
include_directories( ${OpenCV_INCLUDE_DIRS} )
target_link_libraries( <your_target_name> ${OpenCV_LIBS} )
where <your_target_name> is the name of your target (specified in add_executable() command). 
1
Avatar
Permanently deleted user

thank you thats, what i looked for. 

 
0

请先登录再写评论。