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 · 2 comments
Open

Update the doc about building and running on macOS #5

lkuty opened this issue Feb 26, 2024 · 2 comments

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
@ghost ghost mentioned this issue May 21, 2024
@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.

@x86y
Copy link
Owner

x86y commented Jul 20, 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

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.

61ad52e

I added some build.rs code to take care of this during the build stage. Just cloning and running cargo run --release should work now.

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