The wikis are now using the new authentication system.
If you did not migrate your account yet, visit https://idp-portal-info.suse.com/

SDB:How to add OpenCV libraries to a Kdevelop project

Jump to: navigation, search

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

600px

you need to have the Packman repository in your list.

  • The same way for kdevelop4

600px

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:

600px

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

600px