[Insight-users] Compile ITK with Visual Express 2008

Pedro Madrigal Bayonas pmb_007 at hotmail.com
Tue Jun 3 12:18:22 EDT 2008


Hi,  
I got the same question a few weeks ago. Here is what the Boss answered to me:
> >> >> > 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 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> > >> > > > Date: Tue, 3 Jun 2008 15:00:03 +0200> From: benjamint at maunakeatech.com> To: insight-users at itk.org> Subject: [Insight-users] Compile ITK with Visual Express 2008> > Hi all,> > I'm new at ITK and I try to compile the ITK libraries on Visual Studio 2008.> I used CMake to create Visual Solution.> I opened the "ALL_BUILD" solution and clicked "Generate". Everything is > OK and the system created many *.lib files :> > ITKAlgorithms.lib ITKBasicFilters.lib ITKCommon.lib > ITKDICOMParser.lib> ITKEXPAT.lib ITKFEM.lib ITKIO.lib ITKMetaIO.lib> ITKNrrdIO.lib ITKNumerics.lib ITKSpatialObject.lib > ITKStatistics.lib> ITKniftiio.lib ITKznz.lib itkTestDriver.lib> itkgdcm.lib itkjpeg12.lib itkjpeg16.lib> itkjpeg8.lib itkopenjpeg.lib itkpng.lib> itksys.lib itktestlib.lib itktiff.lib> itkv3p_netlib.lib itkvcl.lib itkvnl.lib> itkvnl_algo.lib itkvnl_inst.lib itkzlib.lib> > I only have one dll : ITKCommon.dll> > Now, I'd like to know :> Is that possible to compile all the ITK sources into dynamic libraries > instead of static libraies ?> Why ITKCommon is the only dll ?> > Thanks for your help,> _______________________________________________> Insight-users mailing list> Insight-users at itk.org> http://www.itk.org/mailman/listinfo/insight-users
_________________________________________________________________
MSN Video. 
http://video.msn.com/?mkt=es-es
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080603/cf04c5d8/attachment.htm>


More information about the Insight-users mailing list