DicomToMesh icon indicating copy to clipboard operation
DicomToMesh copied to clipboard

Installation error via Docker on mac

Open TZsong opened this issue 1 year ago • 6 comments

Hello guys, I had a problem when installing DicomToMesh using docker: Unable to locate package dicom2mes

TZsong avatar May 14 '24 02:05 TZsong

I ran into the same problem by going directly to the ubuntu image and following the steps to compile manually.

TZsong avatar May 14 '24 02:05 TZsong

Does this software not support the latest version of macos? My computer version is mac sonoma based on arm64

TZsong avatar May 15 '24 09:05 TZsong

I fixed the problem after specifying the dockerfile introduced in Ubuntu as the amd64 platform, thanks

TZsong avatar May 16 '24 01:05 TZsong

Hi, I created the ppa package only for Ubunutu 18.04. I'm using the latest Sonoma version and the build process (cmake) works from scratch. You write "I fixed the problem after specifying the dockerfile introduced in Ubuntu as the amd64 platform, thanks": Is there anything we can enhance / fix in our docker file? If so, I would be very glad if you can create a pull request and I take it into the main branch. Thx, Adrian

eidelen avatar May 17 '24 14:05 eidelen

The Dockerfile is fine. However, your PPA only provides amd64 packages, so builds will fail for arm64. To ensure the build doesn’t default to arm64 on Apple silicon, the command should be:

docker build --platform linux/amd64 -t dicom2mesh docker

Edit: Tried spinning up a fork with a multi-arch image, but seems to need more work. Ubuntu 18.04 doesn't have an arm64 version of libvtk-7.

rtuszik avatar May 27 '24 12:05 rtuszik

Hi, I created the ppa package only for Ubunutu 18.04. I'm using the latest Sonoma version and the build process (cmake) works from scratch. You write "I fixed the problem after specifying the dockerfile introduced in Ubuntu as the amd64 platform, thanks": Is there anything we can enhance / fix in our docker file? If so, I would be very glad if you can create a pull request and I take it into the main branch. Thx, Adrian

Hi, I think the command to run on an arm64 machine should be docker build --platform linux/amd64 -t dicom2mesh docker Or you can adjust your dockerfile from --platform=linux/amd64 ubuntu:18.04

Then add the --platform amd64 argument to the docker run command as well, docker run --platform linux/amd64 -v /dicom/files/:/data dicom2mesh -i /data -o /data/example.stl

TZsong avatar May 29 '24 03:05 TZsong