Giter Site home page Giter Site logo

missing -lbradeRF?? about bladerf-adsb HOT 6 OPEN

nuand avatar nuand commented on September 27, 2024
missing -lbradeRF??

from bladerf-adsb.

Comments (6)

bpadalino avatar bpadalino commented on September 27, 2024

Have you been able to build anything against libbladeRF? Did you compile libbladeRF from source, or did you use MacPorts to get that as well?

The problem is that the location of the library is not in a default search path and the makefile isn't trying to find the library and assumes it's in the library search path.

from bladerf-adsb.

vjarao avatar vjarao commented on September 27, 2024

Thanks for your quick reply. All bladeRF software installation is via Macports. All interfaces with the board works well. CLI, Octave/Matlab and even GnuRadio. This is the first time I am having error messages.
I did manually copy the libbladeRF.h into the same directory but got the same error. I updated (double check) my PATH and all is correct. It does points to /opt/local/include/ where the libbladeRF.h is installed. Same error again. I rebooted the computer (not always necessary) and unfortunately the error continues. Now, bare in mind I am not a developer, but I noticed the "Makefile" calls for lbladrerf and not for libbladeRF. Not sure it that is related with my issue. Is there any file or configuration you need to see to diagnose my problem?

from bladerf-adsb.

bpadalino avatar bpadalino commented on September 27, 2024

If you edit the Makefile to have a line with '-L/opt/local/lib' in it, or I think if you set DYLD_LIBRARY_PATH to have /opt/local/lib in it, then the current Makefile will work.

Do those comments make sense?

from bladerf-adsb.

vjarao avatar vjarao commented on September 27, 2024

I am sorry for being so silly. I did what you recommend and still same error. Whether it make sense or not, I have no idea. I trust your help.

from bladerf-adsb.

vjarao avatar vjarao commented on September 27, 2024

New day, new clues, some extra help, made me realized I added the suggested line in the wrong place. This is how it should be:
gcc -o bladeRF_adsb bladeRF_adsb.c -lbladerf -L/opt/local/lib
Worked!!

from bladerf-adsb.

bpadalino avatar bpadalino commented on September 27, 2024

Glad it worked! Sorry for the trouble. We'll try to put a fix in place so this doesn't happen in the future. Keeping the issue open until the fix is committed.

from bladerf-adsb.

Related Issues (16)

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.