Installation error via Docker on mac
Hello guys, I had a problem when installing DicomToMesh using docker: Unable to locate package dicom2mes
I ran into the same problem by going directly to the ubuntu image and following the steps to compile manually.
Does this software not support the latest version of macos? My computer version is mac sonoma based on arm64
I fixed the problem after specifying the dockerfile introduced in Ubuntu as the amd64 platform, thanks
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
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.
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