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

Update the doc about building and running on macOS #5

Open
lkuty opened this issue Feb 26, 2024 · 1 comment
Open

Update the doc about building and running on macOS #5

lkuty opened this issue Feb 26, 2024 · 1 comment

Comments

@lkuty
Copy link

lkuty commented Feb 26, 2024

On macOS M2, I had to point to the directory containing the CBQN library to build and run beacon. The directory where CBQN was installed on my system is /Users/ludo/Downloads/github/CBQN. Could you update the README ?

Building and running:

export DYLD_FALLBACK_LIBRARY_PATH=/Users/ludo/Downloads/github/CBQN
RUSTFLAGS='-L /Users/ludo/Downloads/github/CBQN' cargo run --release
@vmchale
Copy link

vmchale commented Jul 6, 2024

I think the way cargo handles linker flags on OSX is hinky. I use the following:

install_name_tool -add_rpath /usr/local/lib target/release/beacon

(/usr/local/lib is where my BQN shared library is)

This creates an executable that I can use.

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

2 participants