Open kschepps opened 1 month ago
I can confirm this, previous Ubuntu has no issues, also with Raspbian OS all compiles just fine - but Ubuntu 24 throws these errors.
A temporary solution to this problem for srsRAN is to force compilation with gcc-11 and g++-11:
sudo apt update
sudo apt upgrade
sudo apt install gcc-11 g++-11
export CC=$(which gcc-11)
export CXX=$(which g++-11)
cmake -B build
cmake --build build -j$(nproc)
Thank you, @Lorenzoval! That worked!!
Here's the full set of commands for anyone else trying to compile srsRAN on Ubuntu 24.04. @Lorenzoval's fix should be added before the original cmake command. I also had to add ../ to one of the new cmake commands, but not the other.
sudo apt install gcc-11 g++-11
...
cd srsRAN
mkdir build && cd build
export CC=$(which gcc-11)
export CXX=$(which g++-11)
cmake ../ -B build
cmake --build build -j$(nproc)
cmake ../
make
make test
sudo make install
sudo ldconfig
srsran_install_configs.sh user
I still couldn't get srsGUI to work, but I'm probably going to phase that out on my setup anyways. It's way to resource intensive for just a representation that things are working.
I'm going to use this instead:
echo 't' | sudo srsenb
Issue Description
I'm trying to install srsGUI and srsRAN_4G on Ubuntu 24.04. This is not a show-stopper as I can downgrade back to Ubuntu 22.04 which installs flawlessly every time on a fresh install, but I'm testing on newer PC hardware which does not seem to run very well on the older Linux firmware. I can't use srsRAN_Project as my setup uses the BladeRF which is not supported yet according to my research.
Does anyone have a fix to get srsRAN_4G to compile for Ubuntu 24.04?
Setup Details
I also install mongodb, open5gs, and nodejs, but that should not be relevant to this issue.
bladeRF source compiles with no issues.
srsGUI:
srsGUI error:
srsGUI is not required for srsRAN so I also attempted to compile srsRAN without srsGUI
srsRAN:
srsRAN error:
Expected Behavior
This process works flawlessly every time on Ubuntu 22.04.4 using a fresh install