<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hi, <BR>
I got the same question a few weeks ago. Here is what the Boss answered to me:<BR>
<BR>> ><BR>> ><BR>> > Hi Pedro,<BR>> ><BR>> > The basic step is to replace<BR>> ><BR>> ><BR>> > ADD_EXECUTABLE(GradientImageFilter GradientImageFilter.cxx)<BR>> ><BR>> ><BR>> > with<BR>> ><BR>> > ADD_LIBRARY(GradientImageFilter SHARED GradientImageFilter.cxx)<BR>> ><BR>> ><BR>> > in your CMakeLists.txt file.<BR>> ><BR>> ><BR>> > However, in addition to that, you need to add an explicit instantiation<BR>> > for the type in the .cxx file, add the EXPORT symbol, and provide a<BR>> > mechanism for checking versions when you load the DLL.<BR>> ><BR>> ><BR>> > All of this is illustrated in the VolViewPlugins directory in<BR>> > InsightApplications:<BR>> ><BR>> > InsightApplications/VolViewPlugins<BR>> ><BR>> ><BR>> ><BR>> > Regards,<BR>> ><BR>> ><BR>> > Luis<BR>> ><BR>> ><BR>> ><BR>> > ------------------------------<BR>> > Pedro Madrigal wrote:<BR>> > > Hi, i'm new ITK user. My question is:<BR>> > ><BR>> > > anybody knows how to obtain DLLs (not .exe) when compiling the proyect<BR>> > > with Visual Studio 6.0?<BR>> > > For example, how can i make the Filter GradientImageFilter.dll instead<BR>> > > GradientImageFilter.exe??<BR>> > > It would be fantastic if someone send me the code showing me the <BR>> way to<BR>> > > do this with this filter.<BR>> > ><BR>> > > Regards,<BR>> > ><BR>> > ><BR>> > > Thanks<BR>> > ><BR>> > > <BR><BR><BR>> Date: Tue, 3 Jun 2008 15:00:03 +0200<BR>> From: benjamint@maunakeatech.com<BR>> To: insight-users@itk.org<BR>> Subject: [Insight-users] Compile ITK with Visual Express 2008<BR>> <BR>> Hi all,<BR>> <BR>> I'm new at ITK and I try to compile the ITK libraries on Visual Studio 2008.<BR>> I used CMake to create Visual Solution.<BR>> I opened the "ALL_BUILD" solution and clicked "Generate". Everything is <BR>> OK and the system created many *.lib files :<BR>> <BR>> ITKAlgorithms.lib ITKBasicFilters.lib ITKCommon.lib <BR>> ITKDICOMParser.lib<BR>> ITKEXPAT.lib ITKFEM.lib ITKIO.lib ITKMetaIO.lib<BR>> ITKNrrdIO.lib ITKNumerics.lib ITKSpatialObject.lib <BR>> ITKStatistics.lib<BR>> ITKniftiio.lib ITKznz.lib itkTestDriver.lib<BR>> itkgdcm.lib itkjpeg12.lib itkjpeg16.lib<BR>> itkjpeg8.lib itkopenjpeg.lib itkpng.lib<BR>> itksys.lib itktestlib.lib itktiff.lib<BR>> itkv3p_netlib.lib itkvcl.lib itkvnl.lib<BR>> itkvnl_algo.lib itkvnl_inst.lib itkzlib.lib<BR>> <BR>> I only have one dll : ITKCommon.dll<BR>> <BR>> Now, I'd like to know :<BR>> Is that possible to compile all the ITK sources into dynamic libraries <BR>> instead of static libraies ?<BR>> Why ITKCommon is the only dll ?<BR>> <BR>> Thanks for your help,<BR>> _______________________________________________<BR>> Insight-users mailing list<BR>> Insight-users@itk.org<BR>> http://www.itk.org/mailman/listinfo/insight-users<BR><BR><br /><hr />Todo ruedas: información práctica y todo el glamour del mundo del motor. <a href='http://estilo.es.msn.com/' target='_new'>MSN Estilo y Tendencias</a></body>
</html>