[Insight-users] Making ITK dlls with Visual Studio
Luis Ibanez
luis.ibanez at kitware.com
Sun May 18 09:52:26 EDT 2008
Hi Pedro,
The basic step is to replace
ADD_EXECUTABLE(GradientImageFilter GradientImageFilter.cxx)
with
ADD_LIBRARY(GradientImageFilter SHARED GradientImageFilter.cxx)
in your CMakeLists.txt file.
However, in addition to that, you need to add an explicit instantiation
for the type in the .cxx file, add the EXPORT symbol, and provide a
mechanism for checking versions when you load the DLL.
All of this is illustrated in the VolViewPlugins directory in
InsightApplications:
InsightApplications/VolViewPlugins
Regards,
Luis
------------------------------
Pedro Madrigal Bayonas wrote:
> Hi, i'm new ITK user. My question is:
>
> anybody knows how to obtain DLLs (not .exe) when compiling the proyect
> with Visual Studio 6.0?
> For example, how can i make the Filter GradientImageFilter.dll instead
> GradientImageFilter.exe??
> It would be fantastic if someone send me the code showing me the way to
> do this with this filter.
>
> Regards,
>
>
> Thanks
>
> ------------------------------------------------------------------------
> Tecnología, moda, motor, viajes,.suscríbete a nuestros boletines para
> estar siempre a la última MSN Newsletters
> <http://newsletters.msn.com/hm/maintenanceeses.asp?L=ES&C=ES&P=WCMaintenance&Brand=WL&RU=http%3a%2f%2fmail.live.com>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
More information about the Insight-users
mailing list