Apple Silicon Support?

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
MadDoc
Posts: 4
Joined: Mon, 2015-09-28, 09:18

Apple Silicon Support?

#1 Post by MadDoc »

Hello,

Having tried (and partly failed mostly because of JPEG decompression) to write my own DICOM parser in Xojo, I came across the dcmtk command line tools which are great.

I have installed the tools using Homebrew but they are Intel builds. Is it possible to add Apple Silicon (ARM) builds as well as I suspect they will be faster. I'm not a C++ programmer so I haven't been able to figure out how to build the binaries from source.

MadDoc
Posts: 4
Joined: Mon, 2015-09-28, 09:18

Re: Apple Silicon Support?

#2 Post by MadDoc »

Actually, I should say I tried to install dcmtk via Homebrew on my M1 Mac but got this error when trying to build it:

Code: Select all

==> Installing dcmtk
==> cmake -DBUILD_SHARED_LIBS=OFF ..
Last 15 lines from /Users/garry/Library/Logs/Homebrew/dcmtk/01.cmake:
  20 errors generated.

  make[1]: *** [CMakeFiles/cmTC_49da6.dir/arith.cc.o] Error 1

  make: *** [cmTC_49da6/fast] Error 2

  

Call Stack (most recent call first):
  CMakeLists.txt:58 (INSPECT_FUNDAMENTAL_ARITHMETIC_TYPES)

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1437
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

Re: Apple Silicon Support?

#3 Post by Marco Eichelberg »

Unfortunately the DCMTK team does not yet have access to an ARM based Mac (i.e. "Apple silicon"), so at this time there is not much we can do to help. Has any other user in this forum who reads this message already tried (and succeeded) in compiling DCMTK for MacOS on ARM?

bettarini
Posts: 2
Joined: Thu, 2023-06-08, 15:54

Re: Apple Silicon Support?

#4 Post by bettarini »

You don't necessarily need an ARM based Mac to compile for Apple Silicon, you can cross compile from an Intel machine, and even create universal binaries if you pass this to the cmake command

Code: Select all

-D CMAKE_OSX_ARCHITECTURES="x86_64;arm64"

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 1 guest