# Build SlicerCAT on Ubuntu 22.04.3 LTS

**URL:** <https://discourse.slicer.org/t/build-slicercat-on-ubuntu-22-04-3-lts/33019>\
**Category:** Development\
**Created:** [November 25, 2023, 12:25pm UTC](https://discourse.slicer.org/t/build-slicercat-on-ubuntu-22-04-3-lts/33019 "2023-11-25T12:25:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mau\_igna\_06](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mau_igna_06/32/9056_2.png) [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Post date:** [November 25, 2023, 12:25pm UTC](https://discourse.slicer.org/t/build-slicercat-on-ubuntu-22-04-3-lts/33019/1 "2023-11-25T12:25:34Z")

</div>

Hi,

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

```auto
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 http://download.qt.io/official_releases/online_installers/qt-unified-linux-x64-online.run
chmod +x qt-unified-linux-x64-online.run

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

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,  
Mauro
