SDB:How to add OpenCV libraries to a Kdevelop project
How to Add OpenCV libraries to a Kdevelop 4 project
Adding the Packages
- you need to install OpenCV[1] and Kdevelop 4 [2] , open YaST to add the packages:
- Search for opencv and then install the following packages
you need to have the Packman repository in your list.
- The same way for kdevelop4
this package is found on the Factory repository
Setting up Kdevelop 4
- Run the Kdevelop 4 IDE and select New Project From Template + No GUI like show below:
After you create the project, you will need to edit the file CMakeLists.txt, adding the following lines(I'm using 64bit libs):
include_directories(/usr/include/opencv) link_libraries(/usr/lib64/libcv.so) link_libraries(/usr/lib64/libcvaux.so) link_libraries(/usr/lib64/libcxcore.so) link_libraries(/usr/lib64/libhighgui.so) link_libraries(/usr/lib64/libml.so)
Now you can build your OpenCV project