From e8a5c322193a8637bf5228efe0ccd79b4979bc65 Mon Sep 17 00:00:00 2001 From: "Charles J. Cliffe" Date: Mon, 30 Nov 2015 22:43:29 -0500 Subject: [PATCH] Updated Build Linux (markdown) --- Build-Linux.md | 122 +++++++++++++++++++++++++++---------------------- 1 file changed, 67 insertions(+), 55 deletions(-) diff --git a/Build-Linux.md b/Build-Linux.md index 21be76c..c388ac2 100644 --- a/Build-Linux.md +++ b/Build-Linux.md @@ -2,51 +2,61 @@ Building CubicSDR for Linux: --- Basic build support: -``` -sudo apt-get install git build-essential automake cmake +```bash +$ sudo apt-get install git build-essential automake cmake ``` Base Dependencies: (debian) -``` -sudo apt-get install libfftw3-dev libwxgtk3.0-dev libwxgtk3.0-dbg +```bash +$ sudo apt-get install libfftw3-dev libwxgtk3.0-dev ``` Build and install SoapySDR -``` -git clone https://github.com/pothosware/SoapySDR.git -cd SoapySDR -mkdir build -cd build -cmake .. -DCMAKE_BUILD_TYPE=Release -make -sudo make install -sudo ldconfig #only needed on linux systems -SoapySDRUtil --info +```bash +$ git clone https://github.com/pothosware/SoapySDR.git +$ cd SoapySDR +SoapySDR$ mkdir build +build$ cd build +build$ cmake .. -DCMAKE_BUILD_TYPE=Release +build$ make +build$ sudo make install +build$ sudo ldconfig +build$ SoapySDRUtil --info #test SoapySDR install ``` Build and install liquid-dsp -``` -git clone https://github.com/jgaeddert/liquid-dsp - -cd liquid-dsp -./bootstrap.sh -./configure -make -sudo make install -sudo ldconfig -cd .. +```bash +$ git clone https://github.com/jgaeddert/liquid-dsp +liquid-dsp$ cd liquid-dsp +liquid-dsp$ ./bootstrap.sh +liquid-dsp$ ./configure +liquid-dsp$ make +liquid-dsp$ sudo make install +liquid-dsp$ sudo ldconfig ``` Build CubicSDR +```bash +$ git clone https://github.com/cjcliffe/CubicSDR.git +CubicSDR$ cd CubicSDR +CubicSDR$ mkdir build +CubicSDR$ cd build +build$ cmake ../ +build$ make +# Note if you're on 32-bit linux it will be in x86/ +build$ cd x64/ +x64$ ./CubicSDR ``` -git clone https://github.com/cjcliffe/CubicSDR.git -cd CubicSDR -mkdir build -cd build -cmake ../ -make -cd x64 -./CubicSDR + +Install CubicSDR (and launcher) +```bash +build$ sudo make install +``` + + +Un-install CubicSDR +```bash +build$ sudo make uninstall ``` If you do not meet the requirements for libgl1-mesa-dev @@ -54,8 +64,8 @@ because of one of the following packages: libcheese7, libclutter. run the following command: -``` -sudo apt-get install libglew-dev libcheese7 libcheese-gtk23 libclutter-gst-2.0-0 libcogl15 libclutter-gtk-1.0-0 libclutter-1.0-0 xserver-xorg-input-all +```bash +$ sudo apt-get install libglew-dev libcheese7 libcheese-gtk23 libclutter-gst-2.0-0 libcogl15 libclutter-gtk-1.0-0 libclutter-1.0-0 xserver-xorg-input-all ``` @@ -64,30 +74,32 @@ Support Modules SoapyRTLSDR (similar to other Soapy modules): -``` -sudo apt-get install librtlsdr-dev -git clone https://github.com/pothosware/SoapyRTLSDR.git -cd SoapyRTLSDR -mkdir build -cd build -cmake .. -DCMAKE_BUILD_TYPE=Release -make -sudo make install -sudo ldconfig -SoapySDRUtil --probe +```bash +$ sudo apt-get install librtlsdr-dev +$ git clone https://github.com/pothosware/SoapyRTLSDR.git +$ cd SoapyRTLSDR +SoapyRTLSDR$ mkdir build +SoapyRTLSDR$ cd build +build$ cmake .. -DCMAKE_BUILD_TYPE=Release +build$ make +build$ sudo make install +build$ sudo ldconfig +# should now show RTL-SDR device if connected +build$ SoapySDRUtil --probe ``` SoapySDRPlay (similar to other Soapy modules): -``` -git clone https://github.com/pothosware/SoapySDRPlay.git -cd SoapySDRPlay -mkdir build -cd build -cmake .. -DCMAKE_BUILD_TYPE=Release -make -sudo make install -sudo ldconfig -SoapySDRUtil --probe +** Note: requires API from http://sdrplay.com/linux.html to be installed first. +```bash +$ git clone https://github.com/pothosware/SoapySDRPlay.git +$ cd SoapySDRPlay +SoapySDRPlay$ mkdir build +SoapySDRPlay$ cd build +build$ cmake .. -DCMAKE_BUILD_TYPE=Release +build$ make +build$ sudo make install +build$ sudo ldconfig +build$ SoapySDRUtil --probe ``` - Always ensure to update, build and install SoapySDR before building dependent projects.