Skip to content

Commit

Permalink
Use g++ 11 on 20.04
Browse files Browse the repository at this point in the history
  • Loading branch information
anarkiwi committed Oct 8, 2023
1 parent 93ad458 commit 2840cdb
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions bin/apt_get_39.sh
Original file line number Diff line number Diff line change
@@ -1,12 +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 && \
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test && \
sudo apt-get -y update && \
sudo 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 \
g++ \
gir1.2-gtk-3.0 \
git \
libboost-all-dev \
Expand Down Expand Up @@ -51,5 +58,5 @@ sudo apt-get -y update && \
swig \
&& \
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 ../.. &&
git clone https://github.com/gnuradio/gnuradio -b maint-3.9 && cd gnuradio && mkdir build && cd build && CXXFLAGS=-fext-numeric-literals 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 2840cdb

Please sign in to comment.