For a class, we have to use a c library that was only ever compiled for amd64, and is now so old some of its dependencies don’t even exist anymore (aka impossible to recompile)

Is there a way to build and run a project using this library through an emulator, without having to emulate the entire OS along with it ? The only computer I have is an M1 MacBook Air, which has an arm64 processor.

The library in question is MLV

  • M1 Macs have Rosetta for running amd64 binaries. Are you running an Ubuntu VM?
    – muru
    Nov 17, 2022 at 1:32
  • You may be able to do this via Docker, as that layer will work with Rosetta to a point. Be sure to have all of the Xcode tools installed beforehand, though.
    – matigo
    Nov 17, 2022 at 1:43
  • QEMU works on many ARM hosts, and can create amd64 VM guests.
    – user535733
    Nov 17, 2022 at 2:18
  • Multipass runs on M1. multipass.run/docs/installing-on-macos
    – user535733
    Nov 17, 2022 at 2:20


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.