I get errors when compiling dcmtk with gcc / msys under Windows and minGw
In msys, in the root folder of dcmtk :
configure ok
make all fails in compilation of module oflog :
Code: Select all
../include/dcmtk/oflog/config/windowsh.h:155:20: fatal error: intrin.h: No such file or directory
But I found this in CHANGES 361 :
And I read somewhere that some intrinsecs (proprietary) methods can be used with MSC, but they might not exist, or maybe with another name in gcc, and therefore could eventually the include be forgotten.- Don't include intrin.h on Visual Studio 2005 because of build errors.
Affects: oflog/include/dcmtk/oflog/config/win32.h
Thus I modified for a try win32.h by commenting the define out :
Code: Select all
/* This used to be _MSC_VER >= 1400, but MSVC 2005 is broken */
#if (defined (_MSC_VER) && _MSC_VER > 1400) || defined (__MINGW32__)
//# define DCMTK_LOG4CPLUS_HAVE_INTRIN_H
#endif
Code: Select all
make clean ; configure ; make all
Code: Select all
[...]
(cd oflog && make ARCH="" DESTDIR="" all)
make[1]: Entering directory `/h/dev/dcmtk-3.6.1_20140725/oflog'
(cd include && make ARCH="" all)
make[2]: Entering directory `/h/dev/dcmtk-3.6.1_20140725/oflog/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/h/dev/dcmtk-3.6.1_20140725/oflog/include'
(cd libsrc && make ARCH="" all)
make[2]: Entering directory `/h/dev/dcmtk-3.6.1_20140725/oflog/libsrc'
c++ -DHAVE_CONFIG_H -DUSE_NULL_SAFE_OFSTRING -DDCMTK_BUILD_IN_PROGRESS -Doflog_EXPORTS -DNDEBUG -c -I. -I. -I../include -I../../config/
include -I../../ofstd/include \
-O -Wall oflog.cc
In file included from oflog.cc:22:0:
../../config/include/dcmtk/config/osconfig.h:1040:19: error: multiple types in one declaration
#define socklen_t int
^
../../config/include/dcmtk/config/osconfig.h:1040:19: error: declaration does not declare anything [-fpermissive]
make[2]: *** [oflog.o] Error 1
make[2]: Leaving directory `/h/dev/dcmtk-3.6.1_20140725/oflog/libsrc'
make[1]: *** [libsrc-all] Error 2
make[1]: Leaving directory `/h/dev/dcmtk-3.6.1_20140725/oflog'
make: *** [oflog-all] Error 2
Code: Select all
configure
make
Well, now that's too much complicated for me.
Did someone already do that kind of compilation with the same chaintool ?
Can someone drive me to achieve the compilation ?
Operating system is Win 7 Pro SP1 EN. gcc 4.8.1 but same issue with a 4.7.x
Thanx for any clue
Edit: updated text and errors gotten with snapshot 20140725