Skip to content

Instantly share code, notes, and snippets.

@goodarzi
Created July 2, 2024 06:37
Show Gist options
  • Save goodarzi/b41cc3d9879429f731d7620b5f2fa8a2 to your computer and use it in GitHub Desktop.
Save goodarzi/b41cc3d9879429f731d7620b5f2fa8a2 to your computer and use it in GitHub Desktop.
manual installtion of qt 6.5.3 and qt creator 14 on debian bookworm
# install qt
# https://doc.qt.io/qt-6/linux.html
# https://doc.qt.io/qt-6/linux-requirements.html
# https://doc.qt.io/qt-6/configure-options.html
mkdir -p ~/code/qt
cd ~/code/qt
sudo apt-get install build-essential libgl1-mesa-dev
# qtbase
sudo apt install \
libinput-dev libts-dev \
libxcb-render-util0-dev \
libxcb-render0-dev \
libxcb-shape0-dev \
libxcb-randr0-dev \
libxcb-xfixes0-dev \
libxcb-xkb-dev \
libxcb-sync-dev \
libxcb-shm0-dev \
libxcb-icccm4-dev \
libxcb-keysyms1-dev \
libxcb-image0-dev \
libxcb-util-dev \
libxcb-cursor-dev \
libxkbcommon-dev \
libxkbcommon-x11-dev \
libfontconfig-dev \
libfreetype-dev \
libxext-dev \
libx11-dev \
libx11-xcb-dev \
libxcb1-dev \
libsm-dev \
libice-dev \
libglib2.0-dev
# optional
# sudo apt install \
# libatspi2.0-dev \
# libgl4es-dev \
# libglbinding-dev \
# libgl-image-display-dev
# sudo apt install gperf bison flex libcups2-dev
wget https://download.qt.io/official_releases/qt/6.5/6.5.3/submodules/qtbase-everywhere-src-6.5.3.tar.xz
tar -xvf qtbase-everywhere-src-6.5.3.tar.xz
mkdir qtbase-everywhere-src-6.5.3/build
cd qtbase-everywhere-src-6.5.3/build
../configure
cmake --build . --parallel
cmake --install .
echo "export PATH=/usr/local/Qt-6.7.2/bin:\$PATH" >> ~/.profile
source ~/.profile
cd ~/code/qt
wget https://download.qt.io/official_releases/qt/6.5/6.5.3/submodules/qt5compat-everywhere-src-6.5.3.tar.xz
tar -xvf qt5compat-everywhere-src-6.5.3.tar.xz
mkdir qt5compat-everywhere-src-6.5.3/build
cd qt5compat-everywhere-src-6.5.3/build
/usr/local/Qt-6.5.3/bin/qt-configure-module ..
cmake --build . --parallel
cmake --install .
cd ~/code/qt
wget https://download.qt.io/official_releases/qt/6.5/6.5.3/submodules/qtpositioning-everywhere-src-6.5.3.tar.xz
tar -xvf qtpositioning-everywhere-src-6.5.3.tar.xz
mkdir qtpositioning-everywhere-src-6.5.3/build
cd qtpositioning-everywhere-src-6.5.3/build
/usr/local/Qt-6.5.3/bin/qt-configure-module ..
cmake --build . --parallel
cmake --install .
cd ~/code/qt
wget https://download.qt.io/official_releases/qt/6.5/6.5.3/submodules/qtsvg-everywhere-src-6.5.3.tar.xz
tar -xvf qtsvg-everywhere-src-6.5.3.tar.xz
mkdir qtsvg-everywhere-src-6.5.3/build
cd qtsvg-everywhere-src-6.5.3/build
/usr/local/Qt-6.5.3/bin/qt-configure-module ..
cmake --build . --parallel
cmake --install .
cd ~/code/qt
wget https://download.qt.io/official_releases/qt/6.5/6.5.3/submodules/qtwayland-everywhere-src-6.5.3.tar.xz
tar -xvf qtwayland-everywhere-src-6.5.3.tar.xz
mkdir qtwayland-everywhere-src-6.5.3/build
cd qtwayland-everywhere-src-6.5.3/build
/usr/local/Qt-6.5.3/bin/qt-configure-module ..
cmake --build . --parallel
cmake --install .
# qt creator
cd ~/code/qt
wget https://download.qt.io/development_releases/qtcreator/14.0/14.0.0-beta2/qt-creator-opensource-linux-x86_64-14.0.0-beta2.run
chmod +x qt-creator-opensource-linux-x86_64-14.0.0-beta2.run
./qt-creator-opensource-linux-x86_64-14.0.0-beta2.run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment