Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905293 - net-wireless/sdrpp-1.0.4 [pentoo]: Module directory /usr/lib/sdrpp/plugins does not exist, not loading modules from directory
Summary: net-wireless/sdrpp-1.0.4 [pentoo]: Module directory /usr/lib/sdrpp/plugins do...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Rick Farina (Zero_Chaos)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-29 16:14 UTC by mphi
Modified: 2023-10-02 20:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mphi 2023-04-29 16:14:41 UTC
After install on a Gentoo Linux with systemd I get following error when starting sdrpp:

```
[2023-04-29 17:31:41.513] [info] SDR++ v1.0.4
[2023-04-29 17:31:41.513] [info] Loading config
[2023-04-29 17:31:41.664] [info] Using OpenGL 3.0
[2023-04-29 17:31:41.719] [info] Loading icons
[2023-04-29 17:31:41.724] [info] Loading band plans
[2023-04-29 17:31:41.724] [info] Loading band plans color table
[2023-04-29 17:31:41.727] [info] Loading modules
[2023-04-29 17:31:41.727] [warning] Module directory /usr/lib/sdrpp/plugins does not exist, not loading modules from directory
[2023-04-29 17:31:41.727] [info] Initializing Airspy Source (airspy_source)
[2023-04-29 17:31:41.737] [error] Module 'airspy_source' doesn't exist
[2023-04-29 17:31:41.737] [info] Initializing AirspyHF+ Source (airspyhf_source)
[2023-04-29 17:31:41.753] [error] Module 'airspyhf_source' doesn't exist
[2023-04-29 17:31:41.753] [info] Initializing Audio Sink (audio_sink)
[2023-04-29 17:31:41.770] [error] Module 'audio_sink' doesn't exist
[2023-04-29 17:31:41.770] [info] Initializing BladeRF Source (bladerf_source)
[2023-04-29 17:31:41.787] [error] Module 'bladerf_source' doesn't exist
[2023-04-29 17:31:41.787] [info] Initializing File Source (file_source)
[2023-04-29 17:31:41.803] [error] Module 'file_source' doesn't exist
[2023-04-29 17:31:41.803] [info] Initializing Frequency Manager (frequency_manager)
[2023-04-29 17:31:41.820] [error] Module 'frequency_manager' doesn't exist
[2023-04-29 17:31:41.820] [info] Initializing HackRF Source (hackrf_source)
[2023-04-29 17:31:41.837] [error] Module 'hackrf_source' doesn't exist
[2023-04-29 17:31:41.837] [info] Initializing LimeSDR Source (limesdr_source)
[2023-04-29 17:31:41.853] [error] Module 'limesdr_source' doesn't exist
[2023-04-29 17:31:41.853] [info] Initializing Network Sink (network_sink)
[2023-04-29 17:31:41.870] [error] Module 'network_sink' doesn't exist
[2023-04-29 17:31:41.870] [info] Initializing PlutoSDR Source (plutosdr_source)
[2023-04-29 17:31:41.887] [error] Module 'plutosdr_source' doesn't exist
[2023-04-29 17:31:41.887] [info] Initializing RTL-SDR Source (rtl_sdr_source)
[2023-04-29 17:31:41.903] [error] Module 'rtl_sdr_source' doesn't exist
[2023-04-29 17:31:41.903] [info] Initializing RTL-TCP Source (rtl_tcp_source)
[2023-04-29 17:31:41.920] [error] Module 'rtl_tcp_source' doesn't exist
[2023-04-29 17:31:41.920] [info] Initializing Radio (radio)
[2023-04-29 17:31:41.937] [error] Module 'radio' doesn't exist
[2023-04-29 17:31:41.937] [info] Initializing Recorder (recorder)
[2023-04-29 17:31:41.954] [error] Module 'recorder' doesn't exist
[2023-04-29 17:31:41.954] [info] Initializing Rigctl Server (rigctl_server)
[2023-04-29 17:31:41.970] [error] Module 'rigctl_server' doesn't exist
[2023-04-29 17:31:41.970] [info] Initializing SDRplay Source (sdrplay_source)
[2023-04-29 17:31:41.987] [error] Module 'sdrplay_source' doesn't exist
[2023-04-29 17:31:41.987] [info] Initializing SoapySDR Source (soapy_source)
[2023-04-29 17:31:42.004] [error] Module 'soapy_source' doesn't exist
[2023-04-29 17:31:42.004] [info] Initializing SpyServer Source (spyserver_source)
[2023-04-29 17:31:42.020] [error] Module 'spyserver_source' doesn't exist
[2023-04-29 17:31:42.037] [info] Loading color maps
[2023-04-29 17:31:42.054] [info] Loading /usr/share/sdrpp/colormaps/websdr.json
[2023-04-29 17:31:42.070] [info] Loading /usr/share/sdrpp/colormaps/viridis.json
[2023-04-29 17:31:42.087] [info] Loading /usr/share/sdrpp/colormaps/turbo.json
[2023-04-29 17:31:42.103] [info] Loading /usr/share/sdrpp/colormaps/plasma.json
[2023-04-29 17:31:42.120] [info] Loading /usr/share/sdrpp/colormaps/magma.json
[2023-04-29 17:31:42.137] [info] Loading /usr/share/sdrpp/colormaps/inferno.json
[2023-04-29 17:31:42.153] [info] Loading /usr/share/sdrpp/colormaps/greyscale.json
[2023-04-29 17:31:42.170] [info] Loading /usr/share/sdrpp/colormaps/gqrx.json
[2023-04-29 17:31:42.187] [info] Loading /usr/share/sdrpp/colormaps/electric.json
[2023-04-29 17:31:42.203] [info] Loading /usr/share/sdrpp/colormaps/classic_green.json
[2023-04-29 17:31:42.220] [info] Loading /usr/share/sdrpp/colormaps/classic.json
[2023-04-29 17:31:42.226] [info] New DSP samplerate: 8000000.0 (source samplerate is 8000000.0)
[2023-04-29 17:31:42.226] [info] Updating FFT DSP settings: Keep: 65536, Skip: 334464
[2023-04-29 17:31:42.232] [info] Updating FFT DSP settings: Keep: 65536, Skip: 334464
[2023-04-29 17:31:42.232] [info] Updating FFT DSP settings: Keep: 65536, Skip: 334464
[2023-04-29 17:31:42.233] [info] Updating FFT DSP settings: Keep: 65536, Skip: 334464
[2023-04-29 17:31:42.237] [info] Ready.
```

The "plugins" directory can be found under the path `/usr/lib64/sdrpp/plugins` though.

There are multiple bug reports and pull requests on upstream which are basically closed as WONTFIX:
https://github.com/AlexandreRouma/SDRPlusPlus/pull/1027
https://github.com/AlexandreRouma/SDRPlusPlus/pull/501

There also seems to be a patch to address this already: `fix-cmake-libdir-location-1.0.4.patch`.

Looks like the plugins are installed in the right libs directory because of the patch, but the program searches hard-coded in the wrong path. I guess that that path should be patched too:

https://github.com/AlexandreRouma/SDRPlusPlus/blob/master/core/src/core.cpp:

```cpp
#else
    defConfig["modulesDirectory"] = INSTALL_PREFIX "/lib/sdrpp/plugins";
    defConfig["resourcesDirectory"] = INSTALL_PREFIX "/share/sdrpp";
#endif
```


Reproducible: Always

Steps to Reproduce:
1. Install sdrpp (use flags audiosink hackrf rtlsdr)
2. Start sdrpp

Actual Results:  
- Plugins are not found
- No sources are available
- Output in description is shown

Expected Results:  
Plugins are found, sources are available
Comment 1 Rick Farina (Zero_Chaos) gentoo-dev 2023-10-02 20:26:12 UTC
I have removed this package from Pentoo.  I don't use sdrpp and upstream isn't friendly.