Updated Build Linux (markdown)

Charles J. Cliffe 2015-11-30 22:43:29 -05:00
parent bf28a152c0
commit e8a5c32219
1 changed files with 67 additions and 55 deletions

@ -2,51 +2,61 @@ Building CubicSDR for Linux:
--- ---
Basic build support: Basic build support:
``` ```bash
sudo apt-get install git build-essential automake cmake $ sudo apt-get install git build-essential automake cmake
``` ```
Base Dependencies: (debian) Base Dependencies: (debian)
``` ```bash
sudo apt-get install libfftw3-dev libwxgtk3.0-dev libwxgtk3.0-dbg $ sudo apt-get install libfftw3-dev libwxgtk3.0-dev
``` ```
Build and install SoapySDR Build and install SoapySDR
``` ```bash
git clone https://github.com/pothosware/SoapySDR.git $ git clone https://github.com/pothosware/SoapySDR.git
cd SoapySDR $ cd SoapySDR
mkdir build SoapySDR$ mkdir build
cd build build$ cd build
cmake .. -DCMAKE_BUILD_TYPE=Release build$ cmake .. -DCMAKE_BUILD_TYPE=Release
make build$ make
sudo make install build$ sudo make install
sudo ldconfig #only needed on linux systems build$ sudo ldconfig
SoapySDRUtil --info build$ SoapySDRUtil --info #test SoapySDR install
``` ```
Build and install liquid-dsp Build and install liquid-dsp
``` ```bash
git clone https://github.com/jgaeddert/liquid-dsp $ git clone https://github.com/jgaeddert/liquid-dsp
liquid-dsp$ cd liquid-dsp
cd liquid-dsp liquid-dsp$ ./bootstrap.sh
./bootstrap.sh liquid-dsp$ ./configure
./configure liquid-dsp$ make
make liquid-dsp$ sudo make install
sudo make install liquid-dsp$ sudo ldconfig
sudo ldconfig
cd ..
``` ```
Build CubicSDR 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 Install CubicSDR (and launcher)
mkdir build ```bash
cd build build$ sudo make install
cmake ../ ```
make
cd x64
./CubicSDR Un-install CubicSDR
```bash
build$ sudo make uninstall
``` ```
If you do not meet the requirements for libgl1-mesa-dev If you do not meet the requirements for libgl1-mesa-dev
@ -54,8 +64,8 @@ because of one of the following packages:
libcheese7, libclutter. libcheese7, libclutter.
run the following command: run the following command:
``` ```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 $ 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): SoapyRTLSDR (similar to other Soapy modules):
``` ```bash
sudo apt-get install librtlsdr-dev $ sudo apt-get install librtlsdr-dev
git clone https://github.com/pothosware/SoapyRTLSDR.git $ git clone https://github.com/pothosware/SoapyRTLSDR.git
cd SoapyRTLSDR $ cd SoapyRTLSDR
mkdir build SoapyRTLSDR$ mkdir build
cd build SoapyRTLSDR$ cd build
cmake .. -DCMAKE_BUILD_TYPE=Release build$ cmake .. -DCMAKE_BUILD_TYPE=Release
make build$ make
sudo make install build$ sudo make install
sudo ldconfig build$ sudo ldconfig
SoapySDRUtil --probe # should now show RTL-SDR device if connected
build$ SoapySDRUtil --probe
``` ```
SoapySDRPlay (similar to other Soapy modules): SoapySDRPlay (similar to other Soapy modules):
``` ** Note: requires API from http://sdrplay.com/linux.html to be installed first.
git clone https://github.com/pothosware/SoapySDRPlay.git ```bash
cd SoapySDRPlay $ git clone https://github.com/pothosware/SoapySDRPlay.git
mkdir build $ cd SoapySDRPlay
cd build SoapySDRPlay$ mkdir build
cmake .. -DCMAKE_BUILD_TYPE=Release SoapySDRPlay$ cd build
make build$ cmake .. -DCMAKE_BUILD_TYPE=Release
sudo make install build$ make
sudo ldconfig build$ sudo make install
SoapySDRUtil --probe build$ sudo ldconfig
build$ SoapySDRUtil --probe
``` ```
- Always ensure to update, build and install SoapySDR before building dependent projects. - Always ensure to update, build and install SoapySDR before building dependent projects.