[Insight-users] problem with SHARED option and STATIC libraries

Augustin Cosse augustin.cosse at uclouvain.be
Mon Jun 4 09:41:45 EDT 2012


Hi there,

I have just started to use ITK for medical image segmentation. However
when I want to compile the Examples/DataRepresentation/Image examples, I
get the following error from ccmake or cmake-gui :

ADD_LIBRARY for library itksys is used with the SHARED option, but the
target platform supports only STATIC libraries. Building it STATIC
instead. This may lead to problems.
ADD_LIBRARY for library itkvcl is used with the SHARED option, but the
target platform supports only STATIC libraries. Building it STATIC
instead. This may lead to problems.
ADD_LIBRARY for library itkv3p_netlib is used with the SHARED option, but
the target platform supports only STATIC libraries. Building it STATIC
instead. This may lead to problems.
ADD_LIBRARY for library itkv3p_lsqr is used with the SHARED option, but
the target platform supports only STATIC libraries. Building it STATIC
instead. This may lead to problems.
ADD_LIBRARY for library itktestlib is used with the SHARED option, but the
target platform supports only STATIC libraries. Building it STATIC
instead. This may lead to problems.
ADD_LIBRARY for library itkvnl is used with the SHARED option, but the
target platform supports only STATIC libraries. Building it STATIC
instead. This may lead to problems.
ADD_LIBRARY for library itkvnl_algo is used with the SHARED option, but
the target platform supports only STATIC libraries. Building it STATIC
instead. This may lead to problems.


And so on and so on for many libraries. I am using cmake 2.8.0. I
downloaded the 4.1.0 version of ITK. I also have a previous ITK version on
my computer but on this previous version, several libraries were missing
so I had to download the more recent 4.1.0 version.
However, I now have this problem which I didn't have with the previous ITK
version. And I don't know how to fix it...

Any ideas ?

Thanks in advance,

Augustin Cosse





More information about the Insight-users mailing list