Updated Build Linux (markdown)

Charles J. Cliffe 2016-03-16 18:14:03 -04:00
parent 4b2fff90ff
commit 001a6385bd

@ -8,7 +8,7 @@ $ sudo apt-get install git build-essential automake cmake
###Base Dependencies: (debian)
```bash
$ sudo apt-get install libfftw3-dev libwxgtk3.0-dev libpulse-dev
$ sudo apt-get install libfftw3-dev libpulse-dev libgtk-3-dev
```
If you didn't install your own OpenGL driver/headers (via Nvidia, AMD binaries or other) this will bring in the appropriate libs and headers:
@ -22,7 +22,7 @@ $ git clone https://github.com/pothosware/SoapySDR.git
$ cd SoapySDR
SoapySDR$ mkdir build
build$ cd build
build$ cmake .. -DCMAKE_BUILD_TYPE=Release
build$ cmake ../ -DCMAKE_BUILD_TYPE=Release
build$ make
build$ sudo make install
build$ sudo ldconfig
@ -40,13 +40,9 @@ liquid-dsp$ sudo make install
liquid-dsp$ sudo ldconfig
```
###wxWidgets Alternate method:
###Build static wxWidgets:
First try building CubicSDR without this part; if you're lucky your distribution will have the right stuff and this time consuming step won't be necessary; but in the case where wxWidgets just won't play along this is an option.
To build a special static copy of wxWidgets just for CubicSDR (or whatever else you might need it for) do the following:
_Note that you can replace '~/Develop/wxWidgets-staticlib' with any user path you'd prefer; '~' is just a standard alias meaning "the current user home directory"._
_Note: replace '~/Develop/wxWidgets-staticlib' with your own path if you prefer, remember it to be used later when building CubicSDR._
```bash
$ wget https://github.com/wxWidgets/wxWidgets/releases/download/v3.0.2/wxWidgets-3.0.2.tar.bz2
@ -56,32 +52,25 @@ $ tar -xvjf wxWidgets-3.0.2.tar.bz2
$ cd wxWidgets-3.0.2/
wxWidgets-3.0.2$ mkdir -p ~/Develop/wxWidgets-staticlib
wxWidgets-3.0.2$ ./autogen.sh
wxWidgets-3.0.2$ ./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=/home/ccliffe/Develop/wxWidgets-staticlib CXXFLAGS="-std=c++0x" --with-libiconv=/usr
wxWidgets-3.0.2$ ./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.. ]
wxWidgets-3.0.2$ make && make install
[ building and installed to ~/Develop/wxWidgets-staticlib ]
```
With that built, you can alter the upcoming instructions for CubicSDR cmake setup to include the following parameters so that it finds the wx-config for your build of wxWidgets:
```
...
build$ cmake ../ -DCMAKE_BUILD_TYPE=Release -DwxWidgets_CONFIG_EXECUTABLE=~/Develop/wxWidgets-staticlib/bin/wx-config
...
[ building and installed to ~/Develop/wxWidgets-staticlib in this example ]
```
###Build CubicSDR
```bash
$ git clone https://github.com/cjcliffe/CubicSDR.git
CubicSDR$ cd CubicSDR
CubicSDR$ mkdir build
CubicSDR$ cd build
build$ cmake ../ -DCMAKE_BUILD_TYPE=Release
build$ cmake ../ -DCMAKE_BUILD_TYPE=Release -DwxWidgets_CONFIG_EXECUTABLE=~/Develop/wxWidgets-staticlib/bin/wx-config
build$ make
# Note if you're on 32-bit linux it will be in x86/
# You can now run the build from the folder, note if you're on 32-bit linux it will be in x86/
build$ cd x64/
x64$ ./CubicSDR
```