Hi,

welcome to MITK!

When you say "my code", are you reffering to a MITK Modules (shared 
library) similar to the ones found in the MITK source code under the 
"Modules" directory?

If yes, you need to state your module dependencies explicitly in the 
MITK_CREATE_MODULE macro call in your modules CMakeLists.txt file. In 
the case of a OpenCV module dependency, the macro call in your 
CMakeLists.txt would look something like this:

MITK_CREATE_MODULE(MyModule DEPENDS mitkOpenCVVideoSupport)

Best,
Sascha


On 03/12/2013 04:30 PM, Ahmad Ahmadi wrote:
> Dear list,
>
> I'm new to MITK and to CMake as well, so I have a very basic question.
> I am trying to use certain modules / plugins in my code, but I have 
> problems figuring out how to use CMake to include the correct modules 
> into my project.
> Two concrete examples:
>
> 1.)
> I would like to use functionality from the 
> mitk::OpenCVToMitkImageFilter class. However, when I include the 
> following header:
> #include <mitkOpenCVToMitkImageFilter.h>
> it cannot be found by my IDE (VS2010), because it is not in the path.
> Consequently the OpenCVToMitkImageFilter class does not appear in the 
> mitk namespace.
>
> 2.)
> Later in my project, I am planning to use the "mitkTrackedBscanData" 
> class, since I work with ultrasound images. However, the following 
> header can also not be found:
> #include <mitkTrackedBscanData.h>
> and the class is also not in my namespace.
>
> In the MITK build instructions, there are only instructions on how to 
> configure CMake to offer general OpenCV support. Also, there is a 
> checkbox to build all plugins. But this apparently does not suffice to 
> have access to specific modules as in the two examples above.
>
> Thanks in advance for your help!
>
> Cheers,
> A.Ahmadi


------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to