Project

General

Profile

Compiling DCMTK on Mac OS X

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.

Compiling using GNU Make

  1. get the source code package of DCMTK 3.6.0
  2. unpack it somewhere on your harddisk
  3. Open a terminal and go to the unpacked DCMTK directory
  4. enter ./configure, wait that it runs to the end, and then
  5. enter make and wait again
  6. call "sudo make install" if you want to install it to your computer

Compiling using CMake

Do 1) and 2) as above, then

  1. Download, install and start CMake from Kitware
  2. Enter in the first line the DCMTK source code directory
  3. In the second, tell CMake where it should put the compiled files
  4. Hit the "configure" button
  5. If asked, select "Xcode Project File" and wait that it runs through
  6. Hit Configure again (if necessary) and then, as soon as available,
  7. Hit "Generate" button
  8. 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)
  9. 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.