| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

How to : Create DCMTK OSX Universal Binary

Page history last edited by Phil Lavery 14 years, 11 months ago

 

Copied from DCMTK Forum :

 

http://forum.dcmtk.org/viewtopic.php?t=2032

 

Hi to everybody, 

I think I figured it out, looking at how the "configure" script compiles test config files and how compilation flags are read from environment variables. 

So, here is what I finally did, which seems to lead to a successful "Universal Binary" build of the DCMTK: 

1 - I left all files from the DMCTK 3.5.4 source distribution unchanged. 

2 - I created a "dicom" subfolder in my home directory (not sure if this step is mandatory) 

3 - I launched the following command: 

env ARCH='-arch ppc -arch i386 -arch ppc64 -arch x86_64' CFLAGS='-D_DARWIN_C_SOURCE -arch ppc -arch i386 -arch ppc64 -arch x86_64' CXXFLAGS='-D_DARWIN_C_SOURCE -arch ppc -arch i386 -arch ppc64 -arch x86_64' ./configure --prefix=$HOME/dicom 

4 - I launched the following command: 

make all 

5 - I launched the following command: 

make install 

That's it. Now in my ~/dicom folder I have a "Universal Binary" version of all DCMTK utilities. Also, all "*.a" static libraries compiled under the DCMTK source directory should be in "Universal Binary" format. 

I hope the above explanation may help other Mac DCMTK users. 

Best regards, 

Marco. 

Comments (0)

You don't have permission to comment on this page.