Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Installing Qt 5 on Debian



  • Hello

    I want to install Qt 5 on my brand new Debian 10 but I'm a bit confused. There is an online linux installer on this site and there are many qt5* packages available on the Debian repository and they are a lot. What is the best way to install Qt 5 on Debian? I guess that the best one is to use the online installer but am afraid that it could affect my current installation (KDE).

    These are the available packages for installation:
    (note that already most libqt5* packages are already installed by default required by KDE)

    qt5-assistant
    qt5-default
    qt5-doc
    qt5-doc-html
    qt5-flatpak-platformtheme
    qt5-gtk-platformtheme
    qt5-gtk2-platformtheme
    qt5-image-formats-plugins
    qt5-qmake
    qt5-qmake-bin
    qt5-qmltooling-plugins
    qt5-quick-demos
    qt5-style-kvantum
    qt5-style-kvantum-l10n
    qt5-style-kvantum-themes
    qt5-style-plugin-cleanlooks
    qt5-style-plugin-motif
    qt5-style-plugin-plastique
    qt5-style-plugins
    qt5-xdgdesktopportal-platformtheme
    qt5ct
    qt5dxcb-plugin
    qt5keychain-dev
    qt5qevercloud-dev
    qt5serialport-examples
    
    libqt53danimation5
    libqt53dcore5
    libqt53dextras5
    libqt53dinput5
    libqt53dlogic5
    libqt53dquick5
    libqt53dquickanimation5
    libqt53dquickextras5
    libqt53dquickinput5
    libqt53dquickrender5
    libqt53dquickscene2d5
    libqt53drender5
    libqt5bluetooth5
    libqt5bluetooth5-bin
    libqt5charts5
    libqt5charts5-dev
    libqt5concurrent5
    libqt5core5a
    libqt5datavisualization5
    libqt5datavisualization5-dev
    libqt5dbus5
    libqt5designer5
    libqt5designercomponents5
    libqt5gamepad5
    libqt5gamepad5-dev
    libqt5glib-2.0-0
    libqt5gstreamer-1.0-0
    libqt5gstreamer-dev
    libqt5gstreamerquick-1.0-0
    libqt5gstreamerui-1.0-0
    libqt5gstreamerutils-1.0-0
    libqt5gui5
    libqt5gui5-gles
    libqt5help5
    libqt5hunspellinputmethod5
    libqt5keychain1
    libqt5location5
    libqt5location5-plugins
    libqt5multimedia5
    libqt5multimedia5-plugins
    libqt5multimediagsttools5
    libqt5multimediaquick5
    libqt5multimediawidgets5
    libqt5network5
    libqt5networkauth5
    libqt5networkauth5-dev
    libqt5nfc5
    libqt5opengl5
    libqt5opengl5-dev
    libqt5pas-dev
    libqt5pas1
    libqt5positioning5
    libqt5positioning5-plugins
    libqt5positioningquick5
    libqt5printsupport5
    libqt5qevercloud3
    libqt5qml5
    libqt5quick5
    libqt5quickcontrols2-5
    libqt5quickparticles5
    libqt5quickshapes5
    libqt5quicktemplates2-5
    libqt5quicktest5
    libqt5quickwidgets5
    libqt5scintilla2-designer
    libqt5script5
    libqt5scripttools5
    libqt5scxml5
    libqt5scxml5-bin
    libqt5scxml5-dev
    libqt5sensors5
    libqt5sensors5-dev
    libqt5serialbus5
    libqt5serialbus5-bin
    libqt5serialbus5-dev
    libqt5serialbus5-plugins
    libqt5serialport5
    libqt5serialport5-dev
    libqt5sql5
    libqt5sql5-ibase
    libqt5sql5-mysql
    libqt5sql5-odbc
    libqt5sql5-psql
    libqt5sql5-sqlite
    libqt5sql5-tds
    libqt5svg5
    libqt5svg5-dev
    libqt5test5
    libqt5texttospeech5
    libqt5texttospeech5-dev
    libqt5virtualkeyboard5
    libqt5virtualkeyboard5-dev
    libqt5waylandclient5
    libqt5waylandclient5-dev
    libqt5waylandcompositor5
    libqt5waylandcompositor5-dev
    libqt5webchannel5
    libqt5webchannel5-dev
    libqt5webengine-data
    libqt5webengine5
    libqt5webenginecore5
    libqt5webenginewidgets5
    libqt5webkit5
    libqt5webkit5-dev
    libqt5websockets5
    libqt5websockets5-dev
    libqt5webview5
    libqt5webview5-dev
    libqt5widgets5
    libqt5x11extras5
    libqt5x11extras5-dev
    libqt5xdg-dev
    libqt5xdg3
    libqt5xdgiconloader-dev
    libqt5xdgiconloader3
    libqt5xml5
    libqt5xmlpatterns5
    libqt5xmlpatterns5-dev
    

    [Edit: Put the long list in code tags ~kshegunov]


  • Moderators

    I want to install Qt 5 on my brand new Debian 10

    That's debian stable? Do you intend to develop with Qt?

    If you only want the client binaries, then stick to what the repo gives you. If you want to develop with Qt, then you'd probably want the online installer from the QtC website. The stable flavor debian comes with somewhat outdated versions of Qt. If you decide to stick to what the repo has, then you need the libqt5*-dev packages to pull the headers for development.


  • Lifetime Qt Champion

    Hi,

    To add to @kshegunov, unless you try to mess with your system installed libraries, you will not have troubles. The online installer proposes by default either your home folder or /opt which is outside what your system uses by default for loading system libraries.



  • @kshegunov I am planning to develop... Then it will be better to use the online installer... Does it setup the system to the new (online) Qt paths to binaries and libraries or I must do it manually? Thanks!


  • Lifetime Qt Champion

    No, your system is left untouched. If you use Qt Creator, that handling will be done for you.

    If you want to develop in a terminal, use the full path to the tools.



  • @SGaist I will try the online installer then... Does it fix the system paths to the new Qt binaries and libraries or just downloads the files and I must set them manually? Thanks!


  • Moderators

    @kanito73 said in Installing Qt 5 on Debian:

    @kshegunov I am planning to develop... Then it will be better to use the online installer...

    I guess.

    Does it setup the system to the new (online) Qt paths to binaries and libraries or I must do it manually? Thanks!

    None of the above. The installer doesn't touch system paths, and it really shouldn't. As @SGaist said it's up to qmake to set it up for you, so using the correct qmake binary, assumedly configured in QtCreator' kits is enough to get you started.


Log in to reply