Build SlicerCAT on Ubuntu 22.04.3 LTS


I wanted to share I could successfully build the app with the following code:

cat /etc/os-release | grep PRETTY_NAME
# prints 'PRETTY_NAME="Ubuntu 22.04.3 LTS"'

sudo apt update && sudo apt install git subversion build-essential cmake cmake-curses-gui cmake-qt-gui libxt-dev libssl-dev

curl -LO
chmod +x

sudo su
export QT_ACCOUNT_LOGIN=<set your account email here> && \
export QT_ACCOUNT_PASSWORD=<set your password here> && \
sudo ./ \
  install \
    qt.qt5.5152.gcc_64 \
    qt.qt5.5152.qtwebengine \
    qt.qt5.5152.qtwebengine.gcc_64 \
  --root /opt/qt \
  --email $QT_ACCOUNT_LOGIN \
# the Qt install succeeded

sudo apt install mesa-common-dev libglu1-mesa-dev

cd /home/$USER/WholeApp/
mkdir SCATRelease
cd SCATRelease
cmake -DCMAKE_BUILD_TYPE:STRING=Release -DQt5_DIR=/opt/qt/5.15.2/gcc_64/lib/cmake/Qt5 -Dslicersources_SOURCE_DIR=/home/$USER/WholeApp/Slicer ../SCATCode
# make -j<N>
make -j32

Best wishes,

1 Like