Page 1 of 1

containrization for sdrplay

Posted: Sat Dec 29, 2018 1:46 pm
by Mitchell
I want to dockerize shinysdr (https://github.com/kpreid/shinysdr) for sdrplay. So firstly I install api driver for sdrplay by exec "./SDRPlay_RSP_API-Linux-2.13.1.run" when docker build, but I failed. The reason is that I cannot accept license automatically. So can you give me some idea to install sdrplay api driver? Or how to accept license automatically. By the way, command "./SDRPlay_RSP_API-Linux-2.13.1.run --accept" can not work.

Re: containrization for sdrplay

Posted: Wed Jan 02, 2019 5:51 pm
by nk2042
Hi.

Try this, it should be ok to add sdrplay lib support in your containers:

Code: Select all

ENV MAJVERS 2.13
ENV MINVERS .1

$ wget https://www.sdrplay.com/software/SDRplay_RSP_API-Linux-${MAJVERS}${MINVERS}.run
$ export ARCH=`arch`
$ sh ./SDRplay_RSP_API-Linux-${MAJVERS}${MINVERS}.run --tar xvf
$ cp ${ARCH}/libmirsdrapi-rsp.so.${MAJVERS} /usr/local/lib/.
$ chmod 644 /usr/local/lib/libmirsdrapi-rsp.so.${MAJVERS}
$ ln -s /usr/local/lib/libmirsdrapi-rsp.so.${MAJVERS} /usr/local/lib/libmirsdrapi-rsp.so.2
$ ln -s /usr/local/lib/libmirsdrapi-rsp.so.2 /usr/local/lib/libmirsdrapi-rsp.so
$ cp mirsdrapi-rsp.h /usr/local/include/.
$ chmod 644 /usr/local/include/mirsdrapi-rsp.h
Hope this will help.