[Insight-users] Build error - itk 3.20, gdcm 2.0.[15+] under mingw

Markus Neuner neuner.markus at gmx.net
Sat Sep 4 06:53:36 EDT 2010


My cmake version is the latest (2.8.2).

I checked out the latest version from git
   commit 95134adf16da8e643f47912368e69d9dac6aacb6
   Date:   Sat Sep 4 02:10:51 2010 -0400
and tried to build it against gdcm 2.0.15 but still the same error.
(I know that the git version now ships with the latest gdcm but i wanted
to test if it can compile against the SYSTEM_GDCM).

--- SNIP ---
Scanning dependencies of target itkTestDriver
[ 95%] Building CXX object
Code/IO/CMakeFiles/itkTestDriver.dir/itkTestDriver.cxx.obj
Linking CXX executable ..\..\bin\itkTestDriver.exe
c:/qt/2010.04/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe:
cannot find -lgdcmMSFF
collect2: ld returned 1 exit status
mingw32-make[2]: *** [bin/itkTestDriver.exe] Error 1
mingw32-make[1]: *** [Code/IO/CMakeFiles/itkTestDriver.dir/all] Error 2
mingw32-make: *** [all] Error 2
--- SNAP ---

The latest version of SYSTEM_GDCM hat can be used with ITK 3.20 is 2.0.14.


On 02.09.2010 17:09, Vincent Simoes wrote:
> You might want to look at previous thread such as :
> http://old.nabble.com/Error-during-build-of-ITK-3.20.0-with-GDCM-2.0.15-td29315187.html
>
> Several persons were experiencing the same problem few weeks ago.
> Don't know if a solution has been found yet.
>
> 2010/9/2 Bill Lorensen <bill.lorensen at gmail.com
> <mailto:bill.lorensen at gmail.com>>
>
>     I was getting the same error a while back. Since then I have upgraded
>     to cmake 2.8.2 and I'm building against the current itk head.
>
>     What version of cmake are you using?
>
>     Mathieu, Has something changed since 3.20 that would fix this issue.
>     Other than the move of gdcm 2 into the itk tree.
>
>     Bill
>
>     On Thu, Sep 2, 2010 at 8:10 AM, Markus Neuner
>     <neuner.markus at gmx.net <mailto:neuner.markus at gmx.net>> wrote:
>     > Hi,
>     >
>     > i get a linker error when building gdcm 2.0.15 or greater with
>     itk 3.20 with mingw under windows xp:
>     >
>     > ---- SNIP ----
>     > Scanning dependencies of target itkTestDriver
>     > [ 96%] Building CXX object
>     Code/IO/CMakeFiles/itkTestDriver.dir/itkTestDriver.obj
>     > Linking CXX executable ..\..\bin\itkTestDriver.exe
>     >
>     c:/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe:
>     cannot find -lgdcmMSFF
>     > collect2: ld gab 1 als Ende-Status zurück
>     > mingw32-make[2]: *** [bin/itkTestDriver.exe] Error 1
>     > mingw32-make[1]: *** [Code/IO/CMakeFiles/itkTestDriver.dir/all]
>     Error 2
>     > mingw32-make: *** [all] Error 2
>     > ---- SNAP ----
>     >
>     > Bilding with gdcm 2.0.14 works fine without any issues.
>     >
>     > gdcm and itk are configured without any changes to teh standard
>     cmake configurations insted of: ITK_USE_SYSTEM_GDCM=ON and the
>     correct GDCM_DIR.
>     >
>     > To put the gscm-build/bin on the path does not solve the problem.
>     >
>     > Greetings,
>     > Markus
>     >
>     > Additional informations:
>     > MinGW versions used:
>     > binutils-2.20.51-1-mingw32-bin.tar.lzma
>     > gcc-c++-4.4.0-mingw32-bin.tar.gz
>     > gcc-c++-4.4.0-mingw32-dll.tar.gz
>     > gcc-core-4.4.0-mingw32-bin.tar.gz
>     > gcc-core-4.4.0-mingw32-dll.tar.gz
>     > gdb-7.1-2-mingw32-bin.tar.gz
>     > gmp-5.0.1-1-mingw32-dev.tar.lzma
>     > libexpat-2.0.1-1-mingw32-dll-1.tar.gz
>     > libgmp-5.0.1-1-mingw32-dll-10.tar.lzma
>     > libgomp-4.5.0-1-mingw32-dll-1.tar.lzma
>     > libmpc-0.8.1-1-mingw32-dll-2.tar.lzma
>     > libmpfr-2.4.1-1-mingw32-dll-1.tar.lzma
>     > libpthread-2.8.0-3-mingw32-dll-2.tar.lzma
>     > libssp-4.5.0-1-mingw32-dll-0.tar.lzma
>     > libstdc++-4.5.0-1-mingw32-dll-6.tar.lzma
>     > mingw-utils-0.4-1-mingw32-bin.tar.lzma
>     > mingw32-make-3.81-20090910.tar.gz
>     > mingwrt-3.18-mingw32-dev.tar.gz
>     > mingwrt-3.18-mingw32-dll.tar.gz
>     > mpc-0.8.1-1-mingw32-dev.tar.lzma
>     > mpfr-2.4.1-1-mingw32-dev.tar.lzma
>     > pthreads-w32-2.8.0-3-mingw32-dev.tar.lzma
>     > w32api-3.15-1-mingw32-dev.tar.lzma
>     > --
>     > GMX DSL SOMMER-SPECIAL: Surf & Phone Flat 16.000 für nur 19,99
>     &euro;/mtl.!*
>     > http://portal.gmx.net/de/go/dsl
>     > _____________________________________
>     > Powered by www.kitware.com <http://www.kitware.com>
>     >
>     > Visit other Kitware open-source projects at
>     > http://www.kitware.com/opensource/opensource.html
>     >
>     > Kitware offers ITK Training Courses, for more information visit:
>     > http://www.kitware.com/products/protraining.html
>     >
>     > Please keep messages on-topic and check the ITK FAQ at:
>     > http://www.itk.org/Wiki/ITK_FAQ
>     >
>     > Follow this link to subscribe/unsubscribe:
>     > http://www.itk.org/mailman/listinfo/insight-users
>     >
>     _____________________________________
>     Powered by www.kitware.com <http://www.kitware.com>
>
>     Visit other Kitware open-source projects at
>     http://www.kitware.com/opensource/opensource.html
>
>     Kitware offers ITK Training Courses, for more information visit:
>     http://www.kitware.com/products/protraining.html
>
>     Please keep messages on-topic and check the ITK FAQ at:
>     http://www.itk.org/Wiki/ITK_FAQ
>
>     Follow this link to subscribe/unsubscribe:
>     http://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100904/3d1708f5/attachment.htm>


More information about the Insight-users mailing list