Find implementation of OpenCV related functionality while programming [closed]

asked 2015-09-29 03:55:01 -0500

updated 2015-09-30 04:38:25 -0500

We have a CodeBlocks system (version 13.12) running with OpenCV 2.4.8. In that setup, when setting the correct searching directories, it is perfectly possible to right click on an OpenCV related function and select find implementation. This opens up the corresponding *.cpp file and the corresponding function inside that file. Same works for the find declaration option.

However, I have noticed that in the latest 2.4.11 version and in the latest 3.0 version, I am no longer able to use the find implementation option. I am wondering if under the hood something has actually changed that doesn't allow me anymore to directly debug OpenCV source code this way, since there is no way in auto retrieving the file where I need to push breakpoints.

Any guidance is appreciated!

Current Setup:

  • OpenCV 3.0 built with option that enables profiling
  • I added the search directories for both linker and compiler
  • I have added the correct OpenCV libs using the pkg-config interface

BUMP - nobody?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-12-06 04:48:05.405920


are you sure that it is opencv related issue? because for example in qtcreator+opencv3 if I mark the function and press alt+mouse right click then it sends me to the source file where the function exists. So, my guess is that it might be CodeBlocks related or system related since it does not make automate redirect to the source code.

theodore gravatar imagetheodore ( 2015-09-30 04:48:24 -0500 )edit

my Search directories both for Compiler and Linker setting as below:

** this directory structure created by "mingw32-make install"**

where the source is on : D:\opencv-master\modules i can use Find declaration of , Find implemention of ... etc ( OpenCV 3.0 , Windows 7)

sturkmen gravatar imagesturkmen ( 2015-09-30 07:06:26 -0500 )edit

@theodore and @sturkmen, I will take a look at it and report back :D

StevenPuttemans gravatar imageStevenPuttemans ( 2015-09-30 07:57:53 -0500 )edit

@both it must be system related. On Ubuntu I do not have the proper content in the install directory, rather a script that copies everythin to /usr/local/lib/ for the so files and to /usr/local/include/opencv2/ for the header files. It might have something to do with the fact that those are not located somewhere related to the actual source files. Will dig deeper in this!

StevenPuttemans gravatar imageStevenPuttemans ( 2015-09-30 08:03:43 -0500 )edit


this is the path for the opened file when i did "Find declaration" for Mat

sturkmen gravatar imagesturkmen ( 2015-09-30 08:25:06 -0500 )edit

Yeah okay, but find declaration is working here too. Now skip the standard mat and do a find implementation on for example a findContours functionality. I am more and more expecting that this has something to do with the hidden implementation strategy of OpenCV rather then with my codeblocks version, since codeblocks reports that it should work.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-09-30 08:45:37 -0500 )edit

Sorry my declaration was wrong find implementation also did not work to me :(

sturkmen gravatar imagesturkmen ( 2015-09-30 09:00:16 -0500 )edit