Skip to content

Commit

Permalink
g/++ 11.
Browse files Browse the repository at this point in the history
  • Loading branch information
anarkiwi committed Oct 7, 2023
1 parent b342a57 commit 263b061
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions bin/apt_get_39.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
#!/bin/bash
# https://wiki.gnuradio.org/index.php?title=UbuntuInstall#Install_Dependencies
set -e
sudo apt-get -y update && \
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install \
software-properties-common && \
add-apt-repository -y ppa:ubuntu-toolchain-r/test && \
apt-get -y update && \
apt-get install g++-11 gcc-11 && \
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 10 && \
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 10 && \
sudo apt-get -y update && \
sudo apt-get -y install \
cmake \
cppcheck \
doxygen \
gcc-10 \
g++-10 \
gir1.2-gtk-3.0 \
git \
libboost-all-dev \
Expand Down Expand Up @@ -49,11 +55,8 @@ sudo apt-get -y update && \
python3-yaml \
python3-zmq \
soapysdr-tools \
software-properties-common \
swig \
&& \
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10 && \
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10 && \
git clone --recursive https://github.com/gnuradio/volk && cd volk && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/bin/python3 .. && make -j "$(nproc)" && sudo make install && sudo ldconfig && cd ../.. && \
git clone https://github.com/gnuradio/gnuradio -b maint-3.9 && cd gnuradio && mkdir build && cd build && CMAKE_CXX_STANDARD=17 cmake -DENABLE_DEFAULT=OFF -DENABLE_GRC=ON -DENABLE_PYTHON=ON -DENABLE_GNURADIO_RUNTIME=ON -DENABLE_GR_BLOCKS=ON -DENABLE_GR_FFT=ON -DENABLE_GR_FILTER=ON -DENABLE_GR_ANALOG=ON -DENABLE_GR_NETWORK=ON .. && make -j "$(nproc)" && sudo make install && sudo ln -s /usr/local/lib/python3/dist-packages/* /usr/local/lib/python3.*/dist-packages && sudo ldconfig && cd ../.. &&
python3 -c "import gnuradio"

0 comments on commit 263b061

Please sign in to comment.