[Dcmlib] Mingw + dcgm ver0.6: Solution

Mathieu Malaterre mathieu.malaterre at kitware.com
Tue Feb 1 00:22:29 CET 2005


Michal,

	Ok I found the culprit in CMake. Go to gdcm/src/gdcmjpeg/CMakeList.txt 
and modify the Win32 part by removing it:

# It become tricky when you do cross compile...
#IF (WIN32)
   IF (BUILD_SHARED_LIBS)
     ADD_DEFINITIONS(-DJPEGDLL)
   ELSE (BUILD_SHARED_LIBS)
     ADD_DEFINITIONS(-DJPEGSTATIC)
   ENDIF (BUILD_SHARED_LIBS)
#ENDIF (WIN32)

Mathieu

Mathieu Malaterre wrote:
> Michal Kurgan wrote:
> 
>> On Monday 31 of January 2005 23:34, you wrote:
>>
>>> That's weird because it is already there. Are you sure you are using the
>>> latest gdcm 0.6 (the branch).
>>
>>
>>
>> I just download it from cvs, it was my first use so maybe its the 
>> problem, commands :
>> export 
>> CVSROOT=":pserver:anonymous at cvs.creatis.insa-lyon.fr:2402/cvs/public"
>> cvs login
>> cvs checkout -r Version0_6 gdcm
> 
> 
> Oooops my mistake I was looking at the wrong version. This is corrected 
> rigth now:
> 
> $ cvs ci -m "BUG: Thanks to Michal Kurgan for report. A better fix 
> should be backported from the main CVS anyway" src/gdcmDocument.cxx 
>                    Checking in src/gdcmDocument.cxx;
> /cvs/public/gdcm/src/gdcmDocument.cxx,v  <--  gdcmDocument.cxx
> new revision: 1.118.2.12; previous revision: 1.118.2.11
> done
> 
>>>> next like in instruction run ccmake, and change in suitable positions
>>>> cross tools ( gcc,g++,ar,ranlib )
>>>> save makefiles and next run make
>>>
>>>
>>> Ok I can reproduce the problem. But it make perfect sense, I guess this
>>> is a stupid problem of dllimport vs dllexport. And maybe jpeg lib is not
>>> nicely done.
>>
>>
>>
>> eee... what problem ...
>> i'am not programming expert :)
> 
> 
> Yeah I thought the problem could be fix by changing:
> 
> #if defined(_WIN32) && !defined(JPEGSTATIC)
> (in gdcm/src/gdcmjpeg/jmorecfg.h.in)
> 
> into:
> 
> #if defined(__MINGW32__) && !defined(JPEGSTATIC)
> 
> But that doesn't seems to be working for me
> 
> Mathieu
> Ps: I also went to my cmake/share/CMake/Modules/Plateform
> 
> and did:
> 
> cp CYGWIN.cmake Linux.cmake
> 
> since wrong default were picked
> 
> Thanks for bug report anyway,
> Mathieu
> _______________________________________________
> Dcmlib mailing list
> Dcmlib at creatis.insa-lyon.fr
> http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
> 




More information about the Dcmlib mailing list