Updated Build Linux (markdown)

Charles J. Cliffe 2016-01-04 19:49:47 -05:00
parent 19f5ba022e
commit 782770056b
1 changed files with 33 additions and 0 deletions

@ -16,6 +16,39 @@ If you didn't install your own OpenGL driver/headers (via Nvidia, AMD binaries o
$ sudo apt-get install freeglut3 freeglut3-dev
```
###wxWidgets Alternate method:
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"._
```bash
$ wget https://github.com/wxWidgets/wxWidgets/releases/download/v3.0.2/wxWidgets-3.0.2.tar.bz2
[ downloading.. ]
$ tar -xvjf wxWidgets-3.0.2.tar.bz2
[ unpacking.. ]
$ cd wxWidgets-3.0.2/
wxWidgets-3.0.2$ mkdir ~/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=~/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
...
```
###Build and install SoapySDR
```bash
$ git clone https://github.com/pothosware/SoapySDR.git