From c56ed7ccc202a6b21da722fe41d674792e141870 Mon Sep 17 00:00:00 2001 From: "Charles J. Cliffe" Date: Wed, 23 Dec 2015 00:38:55 -0500 Subject: [PATCH] Updated Build Linux (markdown) --- Build-Linux.md | 54 ++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 44 insertions(+), 10 deletions(-) diff --git a/Build-Linux.md b/Build-Linux.md index 61d294f..72dbc5e 100644 --- a/Build-Linux.md +++ b/Build-Linux.md @@ -1,17 +1,17 @@ -Building CubicSDR for Linux: +##Building CubicSDR for Linux: --- -Basic build support: +###Basic build support: ```bash $ 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 libpulse-dev ``` -Build and install SoapySDR +###Build and install SoapySDR ```bash $ git clone https://github.com/pothosware/SoapySDR.git $ cd SoapySDR @@ -24,7 +24,7 @@ build$ sudo ldconfig 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 liquid-dsp$ cd liquid-dsp @@ -35,7 +35,7 @@ liquid-dsp$ sudo make install liquid-dsp$ sudo ldconfig ``` -Build CubicSDR +###Build CubicSDR ```bash $ git clone https://github.com/cjcliffe/CubicSDR.git CubicSDR$ cd CubicSDR @@ -59,11 +59,12 @@ Un-install CubicSDR build$ sudo make uninstall ``` -Support Modules + + +## Support Modules --- - -SoapyRTLSDR (similar to other Soapy modules): +### SoapyRTLSDR (similar to other Soapy modules): ```bash $ sudo apt-get install librtlsdr-dev $ git clone https://github.com/pothosware/SoapyRTLSDR.git @@ -78,9 +79,10 @@ build$ sudo ldconfig 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. +** Also note that the SoapySDRPlay installer will at present time install an earlier SoapySDR binary -- please re-run 'sudo make install' for your SoapySDR build folder to update to the build version after installing. ```bash $ git clone https://github.com/pothosware/SoapySDRPlay.git $ cd SoapySDRPlay @@ -94,3 +96,35 @@ build$ SoapySDRUtil --probe ``` - Always ensure to update, build and install SoapySDR before building dependent projects. + + + + +## Ubuntu 15.10 Note: + +If you've installed a graphics driver that includes OpenGL and your libGL.so currently points to an invalid mesa/libGL.so you may get a compiler error: +```bash +make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libGL.so', needed by 'x64/CubicSDR'. Stop. +``` + +Checking the link should reveal that it's pointing at a deleted file: +``` +$ ls -lah /usr/lib/x86_64-linux-gnu/libGL.so +lrwxrwxrwx 1 root root 13 Oct 9 01:16 /usr/lib/x86_64-linux-gnu/libGL.so -> mesa/libGL.so +``` + +To fix the link first remove the old one: +``` +$ sudo rm /usr/lib/x86_64-linux-gnu/libGL.so +``` + +Then check where libGL.so.1 is pointing: +``` +$ ls -lah /usr/lib/x86_64-linux-gnu/libGL.so.1 +lrwxrwxrwx 1 root root 15 Dec 20 19:03 /usr/lib/x86_64-linux-gnu/libGL.so.1 -> libGL.so.358.16 +``` + +And create a new link to the same location: +``` +$ sudo ln -s /usr/lib/x86_64-linux-gnu/libGL.so.358.16 /usr/lib/x86_64-linux-gnu/libGL.so +``` \ No newline at end of file