Background:
Recently, due to project requirements, the original development IDE environment was upgraded from vs2008 to vs2012. I thought that the DCMTK open source library after compilation can be directly transplanted from vs2008 to vs2012. However, after adding the inclusion directory and dependent libraries through the project properties, a large number of Link errors will occur during compilation (mostly related to dcmdata. lib and oflog. Lib ).
Solution:
Re-follow the original blog predecessors Liu beifeng Er (Great God has been transferred to Netease blog: http://blog.163.com/[Email protected]/), Use the cmake tool and select the local vs2012 compiler to recompile the source code of dcmtk3.6.0.
However, a large number of Link errors still exist after performing the preceding steps:
It can be inferred from the error that some of the project dependent libraries in the above blog are still incorrect. After searching for the blog post on DCMTK installation, the dependency between the various library files of DCMTK was found (see http://blog.csdn.net/jackmacro/article/details/5332654 ).
Supplement the dependency library in Liu beifeng's blog. The original dependency library is as follows:
Add dcmimgle as described in http://blog.csdn.net/jackmacro/article/details/5332654.
. Lib, dcmjpeg. Lib, and their dependent libraries ijg8, ijg12, ijg16, and dcmimage. After completing the supplement, the project dependency library is as follows:
Re-compile the project and compile it smoothly. Here, we use the JPEG lossless compression of the DCM image given in the DCMTK forum to compress the DCM image smoothly.
Detailed vs2012 project code: http://download.csdn.net/detail/zssureqh/7734777
The vs2012 version is cn_visual_studio_ultimate_2012_x86_dvd_920954.
The DCMTK version is 3.6.0.
[Email protected]
Time: 2014-08-09