Thomas Wilkens wrote:Your suggestion is almost right. The following should work:
Code: Select all
ADD_DEFINITIONS(-DSITE_UID_ROOT=\\"1.2.3.4.5\\")
Insert this code in file dcmtk-3.5.3\CMakeLists.txt at the line you indicated.
I added the above line to my cmakelist.txt with my Site UID and like to build some tools with our own site uid.
Environment:
- Windows XP SP2
- DCMTK 3.5.3
- MS VC++ 6 SP 6
- CMAKE 2.0 patch 6
I ran CMAKE and now I try to compile the toolkit in MS VC++, especially dump2dcm. However when I set this project as my active project and try to execute the 'Rebuild all' option the compiler says the following:
Code: Select all
Deleting intermediate files and output files for project 'ofstd - Win32 Debug'.
Deleting intermediate files and output files for project 'dcmdata - Win32 Debug'.
Deleting intermediate files and output files for project 'dump2dcm - Win32 Debug'.
--------------------Configuration: ofstd - Win32 Debug--------------------
Building Custom Rule "D:\My Projects\dcmtk\ofstd\libsrc\CMakeLists.txt"
-- Check for working C compiler: cl -- works
-- Check for working CXX compiler: cl -- works
-- Configuring done
-- Generating done
-- Build files have been written to: D:/My Projects/dcmtk
--------------------Configuration: dcmdata - Win32 Debug--------------------
Building Custom Rule "D:\My Projects\dcmtk\dcmdata\libsrc\CMakeLists.txt"
-- Check for working C compiler: cl -- works
-- Check for working CXX compiler: cl -- works
-- Configuring done
-- Generating done
-- Build files have been written to: D:/My Projects/dcmtk
--------------------Configuration: dump2dcm - Win32 Debug--------------------
Building Custom Rule "D:\My Projects\dcmtk\dcmdata\apps\CMakeLists.txt"
-- Check for working C compiler: cl -- works
-- Check for working CXX compiler: cl -- works
-- Configuring done
-- Generating done
-- Build files have been written to: D:/My Projects/dcmtk
dump2dcm.exe - 0 error(s), 0 warning(s)
So I think erveything should be OK, however no executable is created no where in the directory tree, does anyone know what could be the problem?
I also tried to build the whole project but then the process breaks and I get the following error while the compiler is building the dcmjpeg library:
Code: Select all
--------------------Configuration: dcmcjpeg - Win32 Debug--------------------
Building Custom Rule "D:\My Projects\dcmtk\dcmjpeg\apps\CMakeLists.txt"
-- Check for working C compiler: cl -- works
-- Check for working CXX compiler: cl -- works
-- Configuring done
-- Generating done
-- Build files have been written to: D:/My Projects/dcmtk
Linking...
LINK : fatal error LNK1181: cannot open input file "dcmimgle.lib"
Error executing link.exe.
ALL_BUILD - 1 error(s), 0 warning(s)
This dcmimgle.lib file is also not created anywhere on my system.
It seems to be that only the following three lib files are generated as I can find them with the modified timestamp at the time I started compiling on my system:
- ij8.lib
- ijg12.lib
- ijg16.lib
Hopefully someone can help me out or give me a hint where to look at/start looking.