-
-
Save songritk/b0ac5cde818d42d61a9848f3f2a5a797 to your computer and use it in GitHub Desktop.
# Building CubicSDR for Linux | |
# This script will successfully build CubicSDR under Debian Jessie on the Raspberry Pi3. | |
# Adapted from https://github.com/cjcliffe/CubicSDR/wiki/Build-Linux | |
# Larry Dighera June 7, 2016 | |
# [email protected] | |
# songritk Mar 24,2018 | |
sudo apt-get install -y git build-essential automake cmake | |
sudo apt-get install -y libpulse-dev libgtk-3-dev | |
sudo apt-get install -y freeglut3 freeglut3-dev | |
sudo apt-get install -y libjpeg-dev libtiff-dev \ | |
libsdl1.2-dev libgstreamer-plugins-base0.10-dev \ | |
libgstreamer-plugins-base1.0-dev \ | |
libnotify-dev freeglut3 freeglut3-dev libsm-dev \ | |
libwebkitgtk-dev libwebkitgtk-3.0-dev libwebkit2gtk-4.0-dev \ | |
libxtst-dev | |
sudo apt-get install -y git-core | |
sudo apt-get install -y libusb-1.0-0-dev | |
sudo echo "deb http://archive.raspbian.org/raspbian jessie main" > /etc/apt/sources.list.d/gnuradio.list | |
sudo apt update -y | |
sudo apt upgrade -y | |
cat <<EOF >no-rtl.conf | |
blacklist dvb_usb_rtl28xxu | |
blacklist rtl2832 | |
blacklist rtl2830 | |
EOF | |
sudo mv no-rtl.conf /etc/modprobe.d/ | |
cd | |
git clone git://git.osmocom.org/rtl-sdr.git | |
cd rtl-sdr | |
mkdir build | |
cd build | |
cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON | |
make | |
sudo make install | |
sudo ldconfig | |
cd ~ | |
sudo cp ./rtl-sdr/rtl-sdr.rules /etc/udev/rules.d/ | |
sudo apt-get install -y libasound-dev | |
sudo apt-get install -y libpulse-dev | |
sudo apt-get install -y gnuradio gnuradio-dev | |
mkdir cubicsdr && cd cubicsdr | |
git clone https://github.com/pothosware/SoapySDR.git | |
cd SoapySDR | |
mkdir build && cd build | |
cmake ../ -DCMAKE_BUILD_TYPE=Release | |
make -j4 | |
sudo make install | |
ldconfig | |
SoapySDRUtil --info #test SoapySDR install | |
cd .. | |
git clone https://github.com/jgaeddert/liquid-dsp | |
cd liquid-dsp | |
./bootstrap.sh | |
./configure --enable-fftoverride | |
make -j4 | |
sudo make install | |
ldconfig | |
cd .. | |
wget https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.0/wxWidgets-3.1.0.tar.bz2 | |
tar -xvjf wxWidgets-3.1.0.tar.bz2 | |
cd wxWidgets-3.1.0/ | |
sudo mkdir -p /opt/wxWidgets-staticlib | |
./autogen.sh | |
./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 /opt/wxWidgets-staticlib` CXXFLAGS="-std=c++0x" --with-libiconv=/usr | |
make -j4 && sudo make install | |
cd .. | |
apt-get install -y libhamlib2 libhamlib-utils libhamlib++-dev libhamlib-dev libhamlib-doc python-libhamlib2 | |
git clone https://github.com/cjcliffe/CubicSDR.git | |
cd CubicSDR | |
mkdir build && cd build | |
cmake ../ -DUSE_HAMLIB=1 -DCMAKE_BUILD_TYPE=Release -DwxWidgets_CONFIG_EXECUTABLE=/opt/wxWidgets-staticlib/bin/wx-config | |
make | |
cd x86/ | |
./CubicSDR | |
sudo make install | |
cd .. | |
git clone https://github.com/pothosware/SoapyRTLSDR.git | |
cd SoapyRTLSDR | |
cd build | |
cmake .. -DCMAKE_BUILD_TYPE=Release | |
make | |
sudo make install | |
ldconfig | |
SoapySDRUtil --probe |
Hi,
after entering line 70 I get the following error:
configure: error: expected an absolute directory name for --prefix: echo ~/Develop/wxWidgets-staticlib
any ideas on how to solve this?
thanks.
in line 78 the cmake command is missing.
Thanks for making this script, it saves a lot of time.
lol ... 2 times I ran it unattended... 2 times I got an error ... then I examined the script and wondered about line 78 .. ouch.. thx, you poined it out!
also this script tries to build for x86 somewhere... obvisiously won't work for a rasperry pi ... (also there are multipl missing "sudo make install" (Ln 53, 62 & 71))
none the less, great script.to get started! thx @songritk
main point for this script: it installs all dependencies which are needed for other great HAM-projects, like linhpsdr, etc ... mainly the gtk-part ...
note: this is for rasbian jessie , update 4 buster / ... plz.. example below:
@21 change jessie to buster (or even bullseye)
@53 sudo make install (for Raspberr Pi / RPi)
@55 maybe move to end of file or make it interactive with user promt to show info yes/no
@62 sudo make install
@65-67 by now its version 3.1.4 (just replace the numbers)
@70 check the configuring options ...
@71 sudo make install
@73 sudo apt ...
@80 check architecture, make sure you are on x86, armhf, etc..
@81 maybe move to end for testing .. or make promt to user
happy greetz from germany,
3NK1/34 -- Marcus -- fallenangel3k (Anno Covid 2020)
BUMP
INFO: See the following pages...
https://github.com/cjcliffe/CubicSDR/wiki/Build-Linux
INFO #2: Updated this script for building on Raspberry Pi Zero..
https://gist.github.com/fallenangel3k/ca8ee7dc8cee84c3ee03a4eb6142d13c
in line 78 the cmake command is missing.
Thanks for making this script, it saves a lot of time.