From 782770056b96075b890745e6bbe31e6a28ae9f1c Mon Sep 17 00:00:00 2001 From: "Charles J. Cliffe" Date: Mon, 4 Jan 2016 19:49:47 -0500 Subject: [PATCH] Updated Build Linux (markdown) --- Build-Linux.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/Build-Linux.md b/Build-Linux.md index d319206..841b34b 100644 --- a/Build-Linux.md +++ b/Build-Linux.md @@ -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