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

undefined symbol: rtlsdr_set_bias_tee #2

Open
helioshk opened this issue Dec 20, 2017 · 4 comments
Open

undefined symbol: rtlsdr_set_bias_tee #2

helioshk opened this issue Dec 20, 2017 · 4 comments

Comments

@helioshk
Copy link

helioshk commented Dec 20, 2017

I've compiled rtl_biast under raspbian stable.

$ rtl_biast -d 0 -b 1
Found Rafael Micro R820T tuner
rtl_biast: symbol lookup error: rtl_biast: undefined symbol: rtlsdr_set_bias_tee

Apparently rtl_biast is installing its librtlsdr.so in /usr/local, where the system doesn't look by default. This could be in the readme.

@senglk
Copy link

senglk commented Mar 24, 2018

I am using Raspbian 9 Stretch and I am experiencing the same issue.

git clone https://github.com/rtlsdrblog/rtl_biast
cd rtl_biast
mkdir build
cd build
cmake ..
make
sudo make install

but the error in the code block of OP appears when I try to run rtl_biast. Though I can go to the rtl_biast/build/src directory to run it.

Any advice for me on how to fix this?

@kzyapkov
Copy link

I think this happens because the librtlsdr0 debian package provides

/usr/lib/arm-linux-gnueabihf/librtlsdr.so.0.5.3
/usr/lib/arm-linux-gnueabihf/librtlsdr.so.0

which overlaps the .so name this code tries to link with. Workaround with

LD_LIBRARY_PATH=/usr/local/lib rtl_biast -b 1

@LetsTryLibertyAgain
Copy link

LetsTryLibertyAgain commented Mar 16, 2019

I get the following error whenever I run rtl_biast, regardless of the parameters, or even with no parameters at all.

rtl_biast: symbol lookup error: rtl_biast: undefined symbol: rtlsdr_close_bt

My Ubuntu 18.04 computer has the following in /usr/local/lib

librtlsdr.a
librtlsdr.so
librtlsdr.so.0
librtlsdr.so.0.5git
librtlsdr.so.0.6git

That's the only place where any librtlsdr libraries are found.

The problem started as soon as I compiled and installed rtl_biast. The error occurs even when I run rtl_biast when I'm in /usr/local/lib.

I've tried:

LD_LIBRARY_PATH=/usr/local/lib
LD_LIBRARY_PATH=/usr/local/lib rtl_biast -b 1

I've also tried

sudo ldconfig

I tried

export PATH=$PATH:/usr/local/lib$

and verified that /usr/local/lib was in the path with

echo $PATH

I still get the same "undefined symbol: rtlsdr_close_bt" error message.

I tried

sudo apt-get autoremove gqrx-sdr

to remove gqrx and all libraries, then reinstalled them with

sudo apt-get install gqrx-sdr

Same error message. I'm beginning to think I may never get my bias T powered preamp to work.

@rtlsdrblog
Copy link
Owner

rtlsdrblog commented Mar 16, 2019

It's not a good idea to run sudo make install with the bias tee software. Run it within the compiled src directory only.

I think what has happened with yours is that you have multiple driver conflicts. I would suggest running apt-get remove rtl-sdr, deleting any librtlsdr remnants, then installing the RTL-SDR Osmocom drivers. Then compile the rtl_biast software, but do not make install it.

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

5 participants