Compiling issue with MS Visual Studio 2005 (vc++)

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
wollet88
Posts: 38
Joined: Fri, 2008-03-28, 11:07

Compiling issue with MS Visual Studio 2005 (vc++)

#1 Post by wollet88 »

Hi,

I have some problems compiling dcmtk_v3.5.4 for Windows 64 bit platform.
I created new "x64" target platform on Visual Studio 2005. Then I compiled the toolkit obtaining the following errors:

Error 1 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmsign\apps\x64\release\dcmsign.obj 1
Error 9 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmsr\apps\x64\release\xml2dsr.obj 1
Error 10 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmsr\apps\x64\release\dsrdump.obj 1
Error 12 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmsr\apps\x64\release\dsr2html.obj 1
Error 16 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmsr\tests\x64\release\mkreport.obj 1
Error 17 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmsr\apps\x64\release\dsr2xml.obj 1
Error 34 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmjpeg\apps\x64\release\dcmmkdir.obj 1
Error 35 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmpstat\apps\x64\release\dcmmkcrv.obj 1
Error 43 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmjpeg\apps\x64\release\dcmdjpeg.obj 1
Error 45 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmjpeg\apps\x64\release\dcmcjpeg.obj 1
Error 48 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmjpeg\apps\x64\release\dcmj2pnm.obj 1
Error 52 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmpstat\apps\x64\release\dcmmklut.obj 1
Error 60 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmpstat\apps\x64\release\dcmp2pgm.obj 1
Error 66 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmpstat\apps\x64\release\dcmprscp.obj 1
Error 81 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmpstat\apps\x64\release\dcmprscu.obj 1
Error 86 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmpstat\apps\x64\release\dcmpschk.obj 1
Error 91 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmimage\apps\x64\release\dcm2pnm.obj 1
Error 92 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmimage\apps\x64\release\dcmquant.obj 1
Error 96 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmimgle\apps\x64\release\dconvlum.obj 1
Error 97 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmimgle\apps\x64\release\dcod2lum.obj 1
Error 98 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmpstat\apps\x64\release\dcmpsmk.obj 1
Error 99 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmimgle\apps\x64\release\dcmdspfn.obj 1
Error 109 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmqrdb\apps\x64\release\dcmqrti.obj 1
Error 110 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmqrdb\apps\x64\release\dcmqrscp.obj 1
Error 111 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmqrdb\apps\x64\release\dcmqridx.obj 1
Error 113 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmpstat\apps\x64\release\dcmpsprt.obj 1
Error 114 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmpstat\apps\x64\release\dcmpsrcv.obj 1
Error 119 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmnet\apps\x64\release\termscu.obj 1
Error 124 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmnet\apps\x64\release\storescu.obj 1
Error 129 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmnet\apps\x64\release\storescp.obj 1
Error 134 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmnet\apps\x64\release\movescu.obj 1
Error 139 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmnet\apps\x64\release\findscu.obj 1
Error 143 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmnet\apps\x64\release\echoscu.obj 1
Error 149 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmpstat\apps\x64\release\dcmpssnd.obj 1
Error 152 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmwlm\apps\x64\release\wlmscpfs.obj 1
Error 157 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmdata\apps\x64\release\xml2dcm.obj 1
Error 163 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmdata\apps\x64\release\pdf2dcm.obj 1
Error 175 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmdata\apps\x64\release\dump2dcm.obj 1
Error 183 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmdata\apps\x64\release\dcmgpdir.obj 1
Error 192 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmdata\apps\x64\release\dcmftest.obj 1
Error 193 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmdata\apps\x64\release\dcmodify.obj 1
Error 201 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmdata\apps\x64\release\dcmdump.obj 1
Error 202 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmdata\apps\x64\release\dcmdrle.obj 1
Error 210 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmdata\apps\x64\release\dcmconv.obj 1
Error 211 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmdata\apps\x64\release\dcmcrle.obj 1
Error 216 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmdata\apps\x64\release\dcm2xml.obj 1
Error 219 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmjp2k\apps\x64\release\dcmcjp2k.obj 1
Error 227 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmjp2k\apps\x64\release\dcmdjp2k.obj 1
Error 228 fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' dcmtkOUT\dcmimage\apps\x64\release\dcmscale.obj 1

Could someone tell me if a made some mistakes?
What's the correct procedure to compile the DCMTK for 64bit Windows platforms?

Thank you and best regards

simeon
Posts: 35
Joined: Fri, 2006-09-15, 09:25
Location: Bulgaria
Contact:

#2 Post by simeon »

You must generate projects of DCMTK with CMake for x64 compiler.
Simeon Antonov

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests