Hi,
I got CubicSDR with SDRPlay working on Ubuntu Mate 16.04 using the following procedure. Thought i'd share my experience.
I'd rather have SDRPlay running with GnuRadio / GR-OSMOCON but somehow the API driver doesn't agree with these packages. It does work but the communication between SDRPlay and GnuRadio / GR-OSMOCON seems to be half crippled.
Forgive me if i'm not complete. Lot's of different things were done to get it running and i might have forgotten to write down some steps. (It was a rewarding but also frustrating journey).
Make sure the SDRPlay device (USB) is not "hijacked" by some other driver.
First you have to install the dependancies (most of these are described on the different git installation guides) I install them when needed. (mostly in case of an error)
I tried the PPA installation method for Soapy but that didn't work.
The order of installation is really important. After every update from GIT i have to rebuild SoapySDR / SoapySDRPlay / Soapy Remote and CubicSDR in this order.
Some of the installation descriptions are copied from the installation procedures written and contributed by the makers. All credit to them for making this possible. Please no difficult questions on the procedure, i just try a lot and most of what i did is internet knowledge, not mine.
I hope this helps. (and excuse my bad english)
The steps:
Code: Select all
Some Dependancies (these i installed down the road - probably some more are needed)
sudo apt-get install automake
sudo apt-get install libgtk2.0-dev
sudo apt-get install libpulse-dev
sudo apt-get install cmake g++ libpython-dev python-numpy swig
Build and install liquid-dsp
git clone https://github.com/jgaeddert/liquid-dsp
cd liquid-dsp
./bootstrap.sh
./configure --enable-fftoverride
make -j4
sudo make install
sudo ldconfig
Build static wxWidgets:
Note: replace '~/Develop/wxWidgets-staticlib' with your own path if you prefer, remember it to be used later when building CubicSDR.
wget https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.0/wxWidgets-3.1.0.tar.bz2
[ downloading.. ]
tar -xvjf wxWidgets-3.1.0.tar.bz2
[ unpacking.. ]
cd wxWidgets-3.1.0/
mkdir -p ~/Develop/wxWidgets-staticlib
./autogen.sh
./configure --with-opengl --disable-shared --enable-monolithic --with-libjpeg --with-libtiff --with-libpng --with-zlib --disable-sdltest --enable-unicode --enable-display --enable-propgrid --disable-webkit --disable-webview --disable-webviewwebkit --prefix=`echo ~/Develop/wxWidgets-staticlib` CXXFLAGS="-std=c++0x" --with-libiconv=/usr
[ configuring.. ]
make -j4 && make install
[ building and installed to ~/Develop/wxWidgets-staticlib in this example ]
Install SDRPlay API
Download and run:
./SDRplay_RSP_MiricsAPI-1.9.4.run
SoapySDR:
git clone https://github.com/pothosware/SoapySDR.git
git pull origin master # verversen
mkdir build
cd build
cmake ..
make -j4
sudo make install
sudo ldconfig #needed on debian systems
SoapySDRPlay:
git clone https://github.com/pothosware/SoapySDRPlay.git
verversen == git pull origin master
cd SoapySDRPlay
mkdir build
cd build
cmake ..
make
sudo make install
SoapyRemote:
git clone https://github.com/pothosware/SoapyRemote.git
verversen == git pull origin master
cd SoapyRemote
mkdir build
cd build
cmake ..
make
sudo make install
Test SoapySDR:
SoapySDRUtil --info
Build CubicSDR
Note: add -DUSE_HAMLIB=1 to cmake command line to include hamlib support.
git clone https://github.com/cjcliffe/CubicSDR.git
cd CubicSDR
mkdir build
cd build
cmake ../ -DCMAKE_BUILD_TYPE=Release -DwxWidgets_CONFIG_EXECUTABLE=~/Develop/wxWidgets-staticlib/bin/wx-config
make
# You can now run the build from the folder, note if you're on 32-bit linux it will be in x86/
cd x64/
./CubicSDR
Install CubicSDR (and launcher)
sudo make install
Un-install CubicSDR
sudo make uninstall