Hi,

Searching for "vnl_gaussian_kernel_1d" in MITK-superbuild/ep/src/ITK reveals 
that it is located in the itkvnl_algo target. Adding it your target link 
libraries should do the trick.

Best,
Stefan

From: Gwenael G [mailto:gwen.li...@hotmail.co.uk]
Sent: Tuesday, November 19, 2019 10:16 AM
To: mitk-users@lists.sourceforge.net
Subject: [mitk-users] using vnl_algo

Hi All,

I've been trying to use some vnl_algo classes in an MITK module I am developing 
in Windows. Unfortunately, the module code doesn't link.
This is the line of code that compiles but doesn't link:
vnl_gaussian_kernel_1d k(0.0);

The CMakeLists:
MITK_CREATE_MODULE(
  INCLUDE_DIRS
    PRIVATE src
    PUBLIC ${MYMODULE_INCLUDES_DIR}
  DEPENDS PUBLIC MitkCore MitkAnnotation
  PACKAGE_DEPENDS
    PUBLIC
    VTK|vtkFiltersFlowPaths ITK|ITKRegistrationCommon+ITKImageStatistics+ITKVNL 
OpenCV
)
target_link_libraries(${MODULE_TARGET} PUBLIC ${MYMODULE_LIBRARIES})

Furthermore, when looking at the project in Visual Studio 
(properties->Linker->Input->Additional Dependencies), the vnl_algo lib is there.
I am using the ITK from the superbuild.

Best,
Gwenael



Sent from Outlook<http://aka.ms/weboutlook>
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to