Search found 12 matches

by zzzhhh
Tue, 2018-07-10, 08:11
Forum: DCMTK - Installation
Topic: How did OFFIS build libxml2?
Replies: 11
Views: 1467

Re: How did OFFIS build libxml2?

I see, now that is crazy. It seems to be my fault . Not sure why this leads to a problem for you, but not for us, though. DCMTK defines LIBXML_STATIC somehow which forcibly requires linking to static library of xml2, so when linking to dll, there is an error. The pre-compiled binaries of xml2 in dc...
by zzzhhh
Sat, 2018-07-07, 12:07
Forum: DCMTK - Installation
Topic: How did OFFIS build libxml2?
Replies: 11
Views: 1467

Re: How did OFFIS build libxml2?

It turns out that the culprit is the preprocessor definition LIBXML_STATIC. http://i66.tinypic.com/2nkt3dh.png I am trying to link to libxml2_o.lib which is the import library of a DLL, but LIBXML_STATIC forces the linker to use this import library as a static library, thus causing the linking error...
by zzzhhh
Thu, 2018-07-05, 13:11
Forum: DCMTK - Installation
Topic: How did OFFIS build libxml2?
Replies: 11
Views: 1467

Re: How did OFFIS build libxml2?

1) I am building every night too. 2) I am using the same xml2 building script too. 3) I am using the same DCMTK building script too (except I am using Visual Studio IDE instead of nmake cli). 4) The only difference is that I have error while you don't have, magically. I know you are as busy as I am ...
by zzzhhh
Thu, 2018-07-05, 05:55
Forum: DCMTK - Installation
Topic: How did OFFIS build libxml2?
Replies: 11
Views: 1467

Re: How did OFFIS build libxml2?

Jan Schlamelcher wrote:No, we only include the iconv library in the libxml2.
I have removed zlib and lzma from building xml2 library, but still got the same linking error. Would you please help me troubleshoot the problem? You can contact me via email if you cannot reproduce the error on your side.
by zzzhhh
Wed, 2018-07-04, 11:35
Forum: DCMTK - Installation
Topic: How did OFFIS build libxml2?
Replies: 11
Views: 1467

Re: How did OFFIS build libxml2?

According to the help info of configure.js (cscript configure.js help), Win32 build options, default value given in parentheses: compiler: Compiler to be used [msvc|mingw|bcb] (msvc) cruntime: C-runtime compiler option (only msvc) (/MD) dynruntime: Use the dynamic RTL (only bcb) (true) cruntime is b...
by zzzhhh
Wed, 2018-07-04, 05:42
Forum: DCMTK - Installation
Topic: How did OFFIS build libxml2?
Replies: 11
Views: 1467

How did OFFIS build libxml2?

I am trying to build libxml2 myself and integrate it into building DCMTK, but encountered errors. Environment: - Windows 10 version 1803 - Visual Studio 2015 Update 3 - CMake 3.11.4 Building steps and configurations: - I downloaded the source of libxml2 "libxml2-2.9.8.tar.gz" from ftp://xmlsoft.org/...
by zzzhhh
Tue, 2018-07-03, 18:15
Forum: DCMTK - Installation
Topic: Where does dcmtkcrypto and dcmtkssl come from?
Replies: 4
Views: 659

Re: Where does dcmtkcrypto and dcmtkssl come from?

Yes, after renaming libcrypto.lib and libssl.lib to dcmtkcrypto_o.lib and dcmtkssl_o.lib respectively, OpenSSL works now for building DCMTK. Thank you very much!
by zzzhhh
Tue, 2018-07-03, 17:27
Forum: DCMTK - Installation
Topic: Link error when building on Windows 10 + Visual Studio 2015
Replies: 4
Views: 1076

Re: Link error when building on Windows 10 + Visual Studio 2

I think the default is MT and -DBUILD_SHARED_LIBS=ON should change it to MD, but I did not see -DBUILD_SHARED_LIBS=ON in your CMake command line and assumed the problem originated from MT/MD incompatibility. You are so cool! It works after I add -DBUILD_SHARED_LIBS=ON. I remember that once cmake sa...
by zzzhhh
Tue, 2018-07-03, 16:32
Forum: DCMTK - Installation
Topic: Link error when building on Windows 10 + Visual Studio 2015
Replies: 4
Views: 1076

Re: Link error when building on Windows 10 + Visual Studio 2

Jan Schlamelcher wrote:Is it this one: https://forum.dcmtk.org/viewtopic.php?f=4&t=35
No, they are not the same question. DCMTK by default use /MD to generate dll, right? I tried to set it using -DBUILD_SHARED_LIBS=ON but it's not used in cmake.
by zzzhhh
Tue, 2018-07-03, 16:23
Forum: DCMTK - Installation
Topic: Where does dcmtkcrypto and dcmtkssl come from?
Replies: 4
Views: 659

Re: Where does dcmtkcrypto and dcmtkssl come from?

Good to hear that. I downloaded a pre-compiled binary of OpenSSL from https://wiki.openssl.org/index.php/Binaries -> https://slproweb.com/products/Win32OpenSSL.html (the first link) -> Win64 OpenSSL v1.1.0h. After installing it under C:\OpenSSL-Win64, the files under lib sub-directory are: capi.lib ...
by zzzhhh
Tue, 2018-07-03, 14:39
Forum: DCMTK - Installation
Topic: Where does dcmtkcrypto and dcmtkssl come from?
Replies: 4
Views: 659

Where does dcmtkcrypto and dcmtkssl come from?

Linking OpenSSL is actually linking dcmtkcrypto and dcmtkssl libraries. But they are clearly not part of OpenSSL. I couldn't find the two names in the bundle of projects in the DCMTK solution (Visual Studio sorts all projects in the Solution Explorer so I would not miss them). I failed to find their...
by zzzhhh
Tue, 2018-07-03, 14:19
Forum: DCMTK - Installation
Topic: Link error when building on Windows 10 + Visual Studio 2015
Replies: 4
Views: 1076

Link error when building on Windows 10 + Visual Studio 2015

I am trying to build DCMTK using provided 3rd party pre-compiled binaries on Windows 10 + Visual Studio 2015, but there are always errors. Environment: - Windows 10 version 1803 - Visual Studio 2015 Update 3 - CMake 3.11.4 Building configurations: - The DCMTK source package is dcmtk-3.6.3.tar.gz dow...