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

Building on Mac M1 #63

Closed
Gasman2014 opened this issue Jun 24, 2022 · 4 comments
Closed

Building on Mac M1 #63

Gasman2014 opened this issue Jun 24, 2022 · 4 comments

Comments

@Gasman2014
Copy link

Not an issue but perhaps worth noting the following issues and adding to the documentation?

  1. Homebrew on macOS now installs into /opt/homebrew/ so you need to adjust paths inn the Makefile appropriately.
  2. If you have installed binutils with Homebrew, this will not build on M1 without deactivating them.

So need to (1) edit the Makefile:85 to

 ifdef OSX
    INCLUDE_PATHS += -I/opt/homebrew/include/libusb-1.0
    LDLIBS = -L. -L/opt/homebrew/lib -lusb-1.0 -ldl -lncurses -lpthread -lintl -L$(OLOC) -l$(ORBLIB)

and (2) need to (at least temporarily) move aside any binutils installed in /opt/homebrew/opt/binutils
mv /opt/homebrew/opt/binutils ~/binutils

@mubes
Copy link
Collaborator

mubes commented Jun 24, 2022 via email

@zyp
Copy link
Collaborator

zyp commented Jun 24, 2022

On x86 macOS with Homebrew, the libusb paths can be found through pkg-config, so I would assume the same is the case for ARM macOS, which would eliminate the need to hardcode paths.

Can you elaborate on the binutils issue?

@Gasman2014
Copy link
Author

Gasman2014 commented Jun 25, 2022 via email

@mubes
Copy link
Collaborator

mubes commented Jun 25, 2022

Hi John, I've included a note in the readme in commit 5da8258 which references this discussion for when someone else gets banged by it. Thanks for taking the time to report it!

DAVE

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

No branches or pull requests

3 participants