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

sdrangel server on raspberry pi: can't see sdrplay rspdx #48

Open
marrem opened this issue Sep 6, 2023 · 1 comment
Open

sdrangel server on raspberry pi: can't see sdrplay rspdx #48

marrem opened this issue Sep 6, 2023 · 1 comment

Comments

@marrem
Copy link

marrem commented Sep 6, 2023

I am running:

CONTAINER ID   IMAGE                      COMMAND                  CREATED          STATUS         PORTS                                                                                                                             NAMES
659c8e9a5c06   sdrangel/server16:latest   "/start.sh"              12 minutes ago   Up 7 minutes   0.0.0.0:8091->8091/tcp, :::8091->8091/tcp, 0.0.0.0:8887->8887/tcp, :::8887->8887/tcp, 0.0.0.0:9090->9090/udp, :::9090->9090/udp   sdrangel_1
355d2ba70592   sdrangelcli:latest         "http-server"            12 minutes ago   Up 7 minutes   0.0.0.0:8080->8080/tcp, :::8080->8080/tcp                                                                                         sdrangelcli_1
b01ed651e090   sdrangelspectrum:latest    "http-server '-p 808…"   12 minutes ago   Up 6 minutes   0.0.0.0:8081->8081/tcp, :::8081->8081/tcp                                                                                         sdrangelspectrum_1

On a raspberry pi 4
Ubuntu 22.04.3 LTS
Linux sdrserver 5.15.0-1036-raspi #39-Ubuntu SMP PREEMPT Mon Aug 21 11:46:10 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
Docker installed via snap

I have a SDRplay RSPdx attached. I have installed the sdrapi service. When I start the SoapyRemote server, I can connect to it via remote programs like CubicSDR.

But when I connect from SDRangel on my Mac to the server via the 'remote' plugin, it reports some information:

image

... but there is no way to see / choose / control the device.

@rudis
Copy link

rudis commented Apr 10, 2024

The problem seems to be that libinputsdrplayv3.so is not build because the necessary header/libraries are not found:

-- SDRPLAY LIBRARIES SDRPLAY_LIBRARIES-NOTFOUND
-- SDRPLAY INCLUDE DIRS SDRPLAY_INCLUDE_DIR-NOTFOUND
-- Could NOT find SDRPLAY (missing: SDRPLAY_LIBRARIES SDRPLAY_INCLUDE_DIR)

The following hacky patch fixes the issue (at least for a local sdrangel installation), but I don't know how to best integrate this into the docker build:

diff --git i/cmake/Modules/FindSDRplay.cmake w/cmake/Modules/FindSDRplay.cmake
index 226d8977a..962422642 100644
--- i/cmake/Modules/FindSDRplay.cmake
+++ w/cmake/Modules/FindSDRplay.cmake
@@ -6,6 +6,7 @@ IF(NOT SDRPLAY_FOUND)
         HINTS ${SDRPLAY_DIR}/inc
         PATHS /usr/local/include
               /usr/include
+              /opt/install/libsdrplay/include
     )
 
     FIND_LIBRARY(
@@ -15,6 +16,7 @@ IF(NOT SDRPLAY_FOUND)
         PATHS /usr/local/lib
               /usr/lib
               /usr/lib64
+              /opt/install/libsdrplay/lib
     )
 
     message(STATUS "SDRPLAY LIBRARIES " ${SDRPLAY_LIBRARIES})

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

2 participants