Skip to content

Add support for Mac Silicon (M1) Chips #1240

Description

@shawndearmond

How did you install OpenDroneMap? (Docker, natively, ...)?

Docker Desktop preview 3.1.0

What's your browser and operating system? (Copy/paste the output of https://www.whatismybrowser.com/)

MacBook Pro M1 (Apple Silicon)
macOS 11.2.2 (Big Sur)

What is the problem?

Following the directions here: https://github.com/OpenDroneMap/ODM#quickstart

I run:
docker run -ti --rm -v /path/to/datasets:/datasets opendronemap/odm --project-path /datasets project
And I get:
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested qemu: uncaught target signal 4 (Illegal instruction) - core dumped
And it just sits there, never bringing me back to a cli prompt.

I also tried:
docker run --platform linux/amd64 -ti --rm -v /path/to/datasets:/datasets opendronemap/odm --project-path /datasets project (note: specify --platform linux/amd64)
And I get:
qemu: uncaught target signal 4 (Illegal instruction) - core dumped
It didn't complain about the image's platform this time, so that's better! Would be nice if I could use the arm64 image, though.
And still no prompt.

What should be the expected behavior? If this is a feature request, please describe in detail the changes you think should be made to the code, citing files and lines where changes should be made, if possible.

Well, this is the first time I've tried running ODM, so I'm not quite sure.

How can we reproduce this? (What steps did you do to trigger the problem? What parameters are you using for processing? If possible please include a copy of your dataset uploaded on Google Drive or Dropbox. Be detailed)

Use Docker Desktop preview 3.1.0 on an M1 Mac
git clone ODM from Github
cd ODM
Run the commands above.

Possible related issues:
docker/for-mac#5251
multiarch/qemu-user-static#99

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions