Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation error via Docker on mac #51

Open
TZsong opened this issue May 14, 2024 · 6 comments
Open

Installation error via Docker on mac #51

TZsong opened this issue May 14, 2024 · 6 comments

Comments

@TZsong
Copy link

TZsong commented May 14, 2024

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

@TZsong
Copy link
Author

TZsong commented May 14, 2024

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

@TZsong TZsong changed the title Installation error via Docker on OSX Installation error via Docker on mac May 15, 2024
@TZsong
Copy link
Author

TZsong commented May 15, 2024

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

@TZsong
Copy link
Author

TZsong commented May 16, 2024

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

@TZsong TZsong closed this as completed May 16, 2024
@eidelen
Copy link
Owner

eidelen commented May 17, 2024

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 eidelen reopened this May 17, 2024
@rtuszik
Copy link

rtuszik commented May 27, 2024

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.

@TZsong
Copy link
Author

TZsong commented May 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants