In general, there are two possibilities as for each Unix-based system DCMTK compiles on. One is the traditional method using GNU make and the other is based on Kitware's CMake tool.
get the source code package of DCMTK 3.6.0
unpack it somewhere on your harddisk
Open a terminal and go to the unpacked DCMTK directory
enter ./configure, wait that it runs to the end, and then
enter make and wait again
call “sudo make install” if you want to install it to your computer
Do 1) and 2) as above, then
-
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 also a document describing all the CMake options for DCMTK.
Discussion