GithubHelp home page GithubHelp logo

Comments (4)

x86y avatar x86y commented on September 25, 2024

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.

dslgr avatar dslgr commented on September 25, 2024

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.

alexlucas309 avatar alexlucas309 commented on September 25, 2024

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.

x86y avatar x86y commented on September 25, 2024

@alexlucas309

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.

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.