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

SDR++ doesn't run as is on Fedora because of non-standard directories #1566

Open
telecter opened this issue Jan 7, 2025 · 3 comments
Open
Labels
bug Something isn't working

Comments

@telecter
Copy link

telecter commented Jan 7, 2025

Hardware
I'm using Asahi Linux (arm64) on an M1 Mac.

  • CPU: Apple M1
  • RAM: 8gb
  • GPU: Internal
  • SDR: Local RTL-SDR Blog v4

Software

  • Operating System: Fedora 41
  • SDR++: 1.2.1 built at 10:49:25 on Jan 7 2025

Bug Description
When just running SDR++ using the command line, it fails because it is missing libsdrpp.
sdrpp: error while loading shared libraries: libsdrpp_core.so: cannot open shared object file: No such file or directory

Then, adding the plugins directory and /usr/lib to LD_LIBRARY_PATH allows SDR++ to start, but it still fails to find its modules.
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib:/usr/lib/sdrpp/plugins sdrpp
In the logs:

[07/01/2025 10:52:26.000] [ERROR] Module 'airspy_source' doesn't exist
[07/01/2025 10:52:26.000] [INFO] Initializing AirspyHF+ Source (airspyhf_source)
[07/01/2025 10:52:26.000] [ERROR] Module 'airspyhf_source' doesn't exist
[... for every module]

Steps To Reproduce
I realise this may be specific to my M1 linux platform, and so may be difficult to reproduce.

  1. Download source and build SDR++
  2. Install SDR++ using sudo make install
  3. Run sdrpp with and without adding /usr/lib and the plugins dir to LD_LIBRARY_PATH and observe logs
@telecter telecter added the bug Something isn't working label Jan 7, 2025
@AlexandreRouma
Copy link
Owner

you didn't at all follow the MacOS instructions... You're not supposed to make install, you're supposed to create a bundle.
https://github.com/AlexandreRouma/SDRPlusPlus?tab=readme-ov-file#building-on-macos

@telecter
Copy link
Author

telecter commented Jan 7, 2025

No, I am running Fedora Linux on an aarch64 platform. The hardware I am on is a MacBook.

@AlexandreRouma AlexandreRouma reopened this Jan 7, 2025
@AlexandreRouma
Copy link
Owner

It's an issue with builds on fedora then. They use nonsensical directories for everything while SDR++ was hardcoded for normal POSIX install paths (ie. no lib64 bullshit). It may get fixed later when I get around to finish the better_install branch but no ETA.

@AlexandreRouma AlexandreRouma changed the title No sdrpp modules found when running linux arm64 build from source SDR++ doesn't run as is on Fedora because of non-standard directories Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants