containrization for sdrplay

General discussions
Post Reply
Mitchell
Posts: 3
Joined: Thu Jan 11, 2018 1:05 pm

containrization for sdrplay

Post by Mitchell » Sat Dec 29, 2018 1:46 pm

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.
Last edited by Mitchell on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

nk2042
Posts: 12
Joined: Thu Dec 21, 2017 3:41 pm

Re: containrization for sdrplay

Post by nk2042 » Wed Jan 02, 2019 5:51 pm

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.
Last edited by nk2042 on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

Post Reply