Compiling 64-bit dcmtk3.6.2 in vs2010

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
liuxinming
Posts: 83
Joined: Thu, 2009-03-19, 04:19

Compiling 64-bit dcmtk3.6.2 in vs2010

#1 Post by liuxinming »

In Cmake, I set the generator to "visual studio 2010 Win64", then generated the project step by step. At last the compilation was failed.

Before the generation, I downloaded the "dcmtk-3.6.2-win64-support_MD-msvc-11.0" support libraries. I only have vs2010. Shall I download vs2012 and compile again?

During the compiliation, the error showed was: zlib_d.lib(inftrees.obj) : error LNK2019, unresolved external symbol: __report_rangecheckfailure,etc.

Jan Schlamelcher
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 318
Joined: Mon, 2014-03-03, 09:51
Location: Oldenburg, Germany

Re: Compiling 64-bit dcmtk3.6.2 in vs2010

#2 Post by Jan Schlamelcher »

I fear one needs the fitting support libraries for the compiler, which we did not provide since we don't have the 64 bit version of Visual Studio 2010. Using a newer version of Visual Studio is probably the easiest solution.

liuxinming
Posts: 83
Joined: Thu, 2009-03-19, 04:19

Re: Compiling 64-bit dcmtk3.6.2 in vs2010

#3 Post by liuxinming »

Now I am compiling v3.6.2 in vs2012. But after the compilation, the output contains something like "warning LNK4099: PDB 'vc110.pdb' was not found with 'zlib_d.lib(adler32.obj)'...".

When I compile the application linking with dcmtk, the warning is also shown in the output window.

I find that it does not impact the execution of the application. Shall I eliminate the warning, or just ignore it? If to eliminate it, what shall I do? (I think maybe it has nothing to do with the dcmtk itself.)

Jan Schlamelcher
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 318
Joined: Mon, 2014-03-03, 09:51
Location: Oldenburg, Germany

Re: Compiling 64-bit dcmtk3.6.2 in vs2010

#4 Post by Jan Schlamelcher »

I'm really not an expert when it comes to Visual Studio, but, as far as I know the .pdb files contain debugging information, so, the warning most likely means you would have a hard time debugging an error inside the zlib. As I don't expect you would ever need to do that, you can safely ignore the warning from my point of view. I have no idea how to suppress it other than providing that .pdb file. We should probably provide it in the future as well.

liuxinming
Posts: 83
Joined: Thu, 2009-03-19, 04:19

Re: Compiling 64-bit dcmtk3.6.2 in vs2010

#5 Post by liuxinming »

Thank you for your advice. I' ve ignored the warning in my application.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest