Compiling DCMTK on Mac OS X¶
Compiling using CMake ¶
- Download the source code package of DCMTK
- Unpack it somewhere on your hard disk
- Download, install and start CMake from Kitware
- Enter in the first line the DCMTK source code directory
- In the second, tell CMake where it should put the compiled files
- Hit the "configure" button
- If asked, select "Xcode Project File" and wait that it runs through
- Hit Configure again (if necessary) and then, as soon as available,
- Hit "Generate" button
- In the directory you told in the second line, you will now find something like DCMTK.xcode that you can open with Apple's XCode for compiling (hit "Build" or something like that)
- If you like to install DCMTK, select the INSTALL target in XCode and run it.
If you like to use CMake and GNU Make, this is also possible. Just select in step 5 "Unix Makefiles" and continue as described for GNU Make in the first section (i.e. go to the directory and call make/make install).
There is for also a document describing all the CMake options for DCMTK.