Comments (4)
I'm trying to run
cargo run --release
but encountering the below error. I have bqn installed using nix home manager with the cbqn-replxx package. I'm using pop!_os 22.04. Does building beacon require also building cbqn instead of using the nix package?= note: /usr/bin/ld: cannot find -lcbqn: No such file or directory collect2: error: ld returned 1 exit status warning: `beacon` (bin "beacon") generated 1 warning error: could not compile `beacon` (bin "beacon") due to previous error; 1 warning emitted
Getting bqn version in zsh:
bqn --version CBQN 0.3.0 built with FFI, singeli x86-64, replxx
cargo version 1.72.0 (103a7ff2e 2023-08-15)
Here's how I build the app on a generic linux distro (code from the GitHub workflow file):
LD_LIBRARY_PATH="${{ github.workspace }}/libcbqn.so -C strip=symbols" cargo build --release
Populate the LD-LIBRARY_PATH
with a built or downloaded libcbqn.so
library, and it should build.
from beacon.
That sent me on the right path! I still had trouble when using the nix store libcbqn.so, but I was ultimately successful when I followed these earlier steps from the github action: https://github.com/x86y/beacon/blob/main/.github/workflows/compile.yml#L31-L37
Then I ran RUSTFLAGS="-L {path to repo}" LD_LIBRARY_PATH="{path to repo}" cargo build --release
It only seemed to work without libcbqn.so in LD_LIBRARY_PATH. I additionally had to set the environment variable LD_LIBRARY_PATH to the same path.
from beacon.
I'm having a very similar problem (among several others) on Fedora 40. The project will only run if I explicitly provide the RUSTFLAGS="-L {path to repo}" LD_LIBRARY_PATH="{path to repo}"
variables, as mentioned above. This is on a fresh installation of Fedora 40, having installed CBQN from git with make shared-o3 && sudo make install
.
from beacon.
I'm having a very similar problem (among several others) on Fedora 40. The project will only run if I explicitly provide the
RUSTFLAGS="-L {path to repo}" LD_LIBRARY_PATH="{path to repo}"
variables, as mentioned above. This is on a fresh installation of Fedora 40, having installed CBQN from git withmake shared-o3 && sudo make install
.
Did you try after or before the following commit? 61ad52e
I believe this commit should've fixed the library linking problems..
from beacon.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from beacon.