DCMTK MinGW without Msys: Works on 3.5.3, but not in 3.5.4 ?

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
Chafouin
Posts: 1
Joined: Fri, 2006-08-11, 22:20
Location: USA

DCMTK MinGW without Msys: Works on 3.5.3, but not in 3.5.4 ?

#1 Post by Chafouin »

Hi,

I try to use DCMTK with MinGW (i.e. GCC) and the regular windows XP command shell (i.e. cmd.exe, no MSYS ).

I don't know if it's a DCMTK or CMake issue, but compiling the library in these condition is lots of pain and is not automated in anyway (I had to change the file generated by CMake, etc...).

On the other hand, I easily compiled in the following cases: 1) with VC++ 2005 . 2) (MinGW+MSYS)
These processes were quite simple and fully automated...

So my question is simple: is Mingw supported when not used with MSYS in this 3.5.4 version?

I tried the 3.5.3 version provided in another thread (viewtopic.php?t=455): the compilation was working perfectly fine. So I would either think you have an issue with your CMake configuration or maybe a specific version of the 3.5.4 is required to compile with MinGW (without MSYS.)


Thanks,
- Chafouin -

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1444
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

#2 Post by Marco Eichelberg »

MinGW without Msys has never been supported. If this ever worked, then only by pure luck. We also do not support the CMake build process with MinGW. The toolkit expects the configure script to be run on MinGW, Cygwin and all other Posix-related platforms.

gpereira
Posts: 4
Joined: Fri, 2006-11-03, 08:49

dcmtk with mingw and dev-c++

#3 Post by gpereira »

Hi,

i'm trying to use the dcmtk pachage with mingw and dev-c++ (winxp). My first problem is when I use mingw32-make the libraries path wasn't found. In dev-c++ I makes -I'< INCLUDE>path and it all ok, but I'm having the following error:

102 C:\Dev-Cpp\include\dcmtk\ofstd\ofstream.h `strstream' does not name a type

103 C:\Dev-Cpp\include\dcmtk\ofstd\ofstream.h `ostrstream' does not name a type

104 C:\Dev-Cpp\include\dcmtk\ofstd\ofstream.h `istrstream' does not name a type

Could somebody help me, please?

Thaks in advance.

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1444
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

#4 Post by Marco Eichelberg »

Make sure that you compile with -DHAVE_CONFIG_H.

gpereira
Posts: 4
Joined: Fri, 2006-11-03, 08:49

mingw with msys

#5 Post by gpereira »

Hi Marco,

Thank you so much for your kindness and attention.

Sorry, but I haven't much experience programing so I don't know how to verify your advice.

Moreover, All libraries are already recognized, but the strstrea.h contain the mistakes below:

C:/MinGW/include/strstrea.h:67: `streamoff' was not declared in this scope
C:/MinGW/include/strstrea.h:67: parse error before `,' token
C:/MinGW/include/strstrea.h: In member function `int
strstreambuf::alloc_size_increment(int)':
C:/MinGW/include/strstrea.h:97: `__b_lock' undeclared (first use this function)
C:/MinGW/include/strstrea.h:97: (Each undeclared identifier is reported only
once for each function it appears in.)
C:/MinGW/include/strstrea.h:97: `__lock_it' undeclared (first use this
function)
C:/MinGW/include/strstrea.h: In member function `char* ostrstream::str()':
C:/MinGW/include/strstrea.h:175: `__i_lock' undeclared (first use this
function)
C:/MinGW/include/strstrea.h: In member function `int ostrstream::pcount()
const':
C:/MinGW/include/strstrea.h:181: no matching function for call to `strstreambuf
::out_waiting()'
C:\MinGW\bin\make.exe: *** [sample1] Error 1

some suggestion?

Thank you so much again.
Best regards,
Glaucia.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest