[Insight-users] itk cvs 2003-12-17: no shared libs built under cygwin?

Bertram Herzog bertram . herzog at web . de
Thu, 18 Dec 2003 07:03:24 -0500


Hello together!

Sorry to bother again, but my I can't get itk compiled under cygwin with 
shared libs, which is the prerequisite for building with CSWIG-Tcl-Wrappers:

Building without shared libs functions by "make" and "make install".

However when I switch to shared libs.

(The lines in the actively used CMakeCache.txt state:
//Build ITK with shared libraries.
BUILD_SHARED_LIBS:BOOL=ON )

I get the following error:

Building object file itkFEMLoadImplementationGenericBodyLoad.o...
Building object file itkFEMLoadImplementationGenericLandmarkLoad.o...
Building object file itkFEMSolver.o...
/cygdrive/f/SW/Insight/Insight_cvs_2003_12_17/Code/Common/itkImage.h: In 
member

   function `void itk::Image<TPixel,
   
VImageDimension>::SetSpacing(itk::ImageBase<VImageDimension>::SpacingType)
   [with TPixel = const itk::fem::Element*, unsigned int VImageDimension 
= 3]':
/cygdrive/f/SW/Insight/Insight_cvs_2003_12_17/Code/Common/itkImage.txx:108:   
in
stantiated from `void itk::Image<TPixel, 
VImageDimension>::SetSpacing(const doub
le*) [with TPixel = const itk::fem::Element*, unsigned int 
VImageDimension = 3]'

/cygdrive/f/SW/Insight/Insight_cvs_2003_12_17/Code/Numerics/FEM/itkFEMSolver.cxx
:821:   instantiated from here
/cygdrive/f/SW/Insight/Insight_cvs_2003_12_17/Code/Common/itkVector.txx:317: 
fun
ction
   `std::ostream& itk::operator<<(std::ostream&, const itk::Vector<T,
   NVectorDimension>&) [with T = double, unsigned int NVectorDimension = 3]'
   definition is marked dllimport
make[7]: *** [itkFEMSolver.o] Error 1
make[6]: *** [default_target] Error 2
make[5]: *** [default_target_FEM] Error 2
make[4]: *** [default_target] Error 2
make[3]: *** [default_target_Numerics] Error 2
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Code] Error 2
make: *** [default_target] Error 2

Looking at the current dashboard, the tests seem to run fine.
I actually have no idea where the concept of "definition is marked 
dllimport" comes from and guess, that other people were able to build 
using wrappers under cygwin. There are about 3 GB of free memory in the 
partition, so I guess it should not be a swap-problem of not enough memory.

My configuration:
cygwin running on Windows XP home
cmake 1.9 built from cvs-sourcecode-version from 2003-11-12
itk-cvs-checkout from yesterday afternoon

Thank you very much for your advise,
    Bertram