Skip to content

Installation and Deployment

Your Qt just doesn't want to build? Your compiler can't find the libs? Here's where you find comfort and understanding. And help.
9.8k Topics 51.2k Posts
  • Cannot compile Qt 5.15 on windows 10

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    W
    @dr3mro I have the same issue here with Qt 5.15.3 and msvc2019. can you share your method final?
  • CMake adds unwanted files while installing

    Unsolved
    9
    0 Votes
    9 Posts
    931 Views
    M
    I would split up your project into two sub-projects; your main library and your gtest-based tests. Then you can conditionally build/run your tests when you want based on a boolean variable in your top-level CMakeLists.txt file.
  • Cannot re-install QT

    Unsolved
    2
    0 Votes
    2 Posts
    198 Views
    SGaistS
    Hi and welcome to devnet, Which version are you after ? At least 6.3 seems to be missing. Did you get the latest version of the online installer ?
  • cannot compile and install SerialPort library at Linux Mint 19.3

    Unsolved
    3
    0 Votes
    3 Posts
    363 Views
    SGaistS
    Hi, By default when you clone the Qt repositories, they will be on the dev branch which is the current development branch and is targeting Qt 6. As @Christian-Ehrlicher wrote, the correct course of action is to checkout the branch that matches the version of Qt you want to build the module for.
  • 0 Votes
    4 Posts
    371 Views
    G
    @JKSH thanks yes that is the bug and a work arround
  • Qt Quick Form Editor don't show components

    Unsolved
    2
    0 Votes
    2 Posts
    364 Views
    B
    Same issue, does anyone have a fix?
  • Why can only Qt-Creator7.0 be chosen in an online installation

    Unsolved
    6
    0 Votes
    6 Posts
    489 Views
    S
    Usually, there is no reason to use an older version of QtCreator. The version number of QtCreator is not the version number of Qt. You can use any version of Qt with the newest version of QtCreator.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • Failed to build Qt 6.3.0 from source on Ubuntu 22.04.

    Unsolved
    3
    0 Votes
    3 Posts
    3k Views
    jiapei100J
    @kkoehne Thank you so much for your prompt reply... This ERROR is now solved by manually build and install draco and assimp. However, I still got the following issue: Call Stack (most recent call first): qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:224 (qt_internal_add_plugin) qtwayland/src/imports/compositor-extensions/qtshell/CMakeLists.txt:5 (qt_internal_add_qml_module) This warning is for project developers. Use -Wno-dev to suppress it. Configuring 'qtwebsockets' Configuring 'qtwebchannel' Configuring 'qtwebengine' -- Checking 'ulimit -n' -- Open files limit 1024 -- Creating linker launcher -- Support check for QtWebEngine failed: Could not find all necessary libraries for qpa-xcb support. X11:YES LIBDRM:YES XCOMPOSITE:YES XCURSOR:YES XRANDR:YES XI:YES XPROTO:YES XSHMFENCE:YES XTST:YES Configuring 'qtwebview' Could NOT find Qt6WebEngineCore (missing: Qt6WebEngineCore_DIR) CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:263 (message): Failed to find Qt component "WebEngineCore". Expected Config file at "/home/longervision/Downloads/Programming/GUI/qt-everywhere-src-6.3.0/qtbase/lib/cmake/Qt6WebEngineCore/Qt6WebEngineCoreConfig.cmake" does NOT exist Call Stack (most recent call first): qtwebview/CMakeLists.txt:12 (find_package) Could NOT find Qt6WebEngineQuick (missing: Qt6WebEngineQuick_DIR) CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:263 (message): Failed to find Qt component "WebEngineQuick". Expected Config file at "/home/longervision/Downloads/Programming/GUI/qt-everywhere-src-6.3.0/qtbase/lib/cmake/Qt6WebEngineQuick/Qt6WebEngineQuickConfig.cmake" does NOT exist Call Stack (most recent call first): qtwebview/CMakeLists.txt:12 (find_package) -- The following OPTIONAL packages have not been found: * zstd * PCRE2 (required version >= 10.20) * unofficial-brotli * harfbuzz (required version >= 2.6.0) * Slog2 * DirectFB * DB2, IBM DB2 client library, <https://www.ibm.com> * Oracle, Oracle client library, <https://www.oracle.com> * ODBC * Interbase, Interbase client library, <https://www.embarcadero.com/products/interbase> * Jasper * WrapJasper * Qt6LanguageServer (required version >= 6.3.0) * LTTngUST * AVFoundation * WMF * Qt6Gamepad (required version >= 6.3.0) * litehtml * Uacpp, The Unified Automation C++ OPC UA SDK, <https://www.unified-automation.com/products/server-sdk/c-ua-server-sdk.html> * Gypsy * Sensorfw * CerenceHwrAlphabetic * CerenceHwrCjk * CerenceXt9 * MyScript * Waylandkms * Qt6JpegPrivate (required version >= 6.3.0) * Qt6PngPrivate (required version >= 6.3.0) * Qt6HarfbuzzPrivate (required version >= 6.3.0) * Qt6FreetypePrivate (required version >= 6.3.0) * Qt6ZlibPrivate (required version >= 6.3.0) * Gn (required version == 6.3.0), Meta-build system, <https://gn.googlesource.com/gn/> * Qt6QmlCompilerPlusPrivate * Qt6WebEngineCore (required version >= 6.3.0) * Qt6WebEngineQuick (required version >= 6.3.0) Some of the so-called not-found packages, I've already installed from repository. Others seem to be NOT available on Ubuntu 22.04. Any further suggestions? From https://www.tal.org/tutorials/building-qtwebengine, do I have to install everything else before trying to install QtWebEngine? Thank you
  • Building qt from source on Nvidia Jetson Tx2

    Unsolved
    2
    0 Votes
    2 Posts
    596 Views
    kkoehneK
    Please double check that your make -j4 call actually succeeds (that is , returns 0). You most likely have a compile error hidden in the log ...
  • 0 Votes
    6 Posts
    20k Views
    Stefan ScherfkeS
    Wow! That did it! The WSL post was a very interesting and 🤯-inducing read. Thank you very much! Summary: The .so contains an ABI tag that denotes the minimum kernel version required. You can see this via objdump -s -j .note.ABI-tag libQt6Core.so.6.2.4. The result is in the last three blocks (0x03 0x11 0x00 -> 3.17.0 in my case). This information is placed there on purpose since QT uses a few system calls that are only available with newer kernels. Glibc reads this information when it loads a shared object and compares it to the current kernel's version. If it doesn't match, the file is not loaded. Since Docker has no own kernel, the Docker host’s kernel version is used for that comparison. So even if the Docker image is Alma8, the kernel is still the old v3.10.0 from the Centos7 host in my case. You can use strip --remove-section=.note.ABI-tag libQt6Core.so.6.2.4. Qt seems to have fallback code, so nothing breaks. Source: https://github.com/Microsoft/WSL/issues/3023
  • cross compilation error

    Unsolved
    1
    0 Votes
    1 Posts
    298 Views
    No one has replied
  • When to start a new .cpp .h .ui

    Solved newbie file structure
    6
    0 Votes
    6 Posts
    735 Views
    artwawA
    @JonB Of course. Hence the "functional" (from "functionality") part. In my workflow it helps, yours (and others) mileage might vary.
  • 5.12.11 binaries ignore RPATH and LD_LIBRARY_PATH settings

    Unsolved
    7
    0 Votes
    7 Posts
    2k Views
    hskoglundH
    Thanks for posting about your research! It makes sense that it was the "ELF stripping" command that was the magic recipe (you did everything else correct). Now I remember another forum post discussing problems when starting Qt Creator on WSL where I found the same solution via the same link you posted :-)
  • Build Qt 5.15.2 from sources with Visual Studio 2022

    Unsolved
    2
    0 Votes
    2 Posts
    3k Views
    Christian EhrlicherC
    Try it out, if something doesn't work I would guess it's only a minimal change to fix it. You should use 5.15.3 btw. - it was released as oensource version some time ago. Or even better use Qt5.15-3 + patches from the KDE Qt patch collection where upstreamed patches from 5.15.x were already incorporated.
  • Qmake cannot find libraries

    Unsolved linux pkg-config qt creator libraries
    4
    0 Votes
    4 Posts
    5k Views
    S
    The PKG_CONFIG_PATH is an environment variable so you need to add it before running qmake. So set it through Projects > Build Settings > Build Environment in QtCreator or set it through terminal before running qmake manually in terminal. [image: a92d221b-d953-41a0-9ee6-e18fed694832.png] Then add following lines in your .pro file: mac { #if you need to specify PKG_CONFIG = /usr/local/bin/pkg-config } #someone says this need in some Qt versions but not need in my Qt 5.12.12 QT_CONFIG -= no-pkg-config CONFIG += link_pkgconfig PKGCONFIG += protobuf \ grpc \ grpc++ I can't find a way to set environment variable in .pro file. Can you do it?
  • Debug folder

    Unsolved
    3
    0 Votes
    3 Posts
    269 Views
    J.HilkJ
    @mike74 It always builds the same debug file in the other project do you have both projects open at the same time?
  • 0 Votes
    4 Posts
    278 Views
    SGaistS
    Do you have any environment variable like DYLD_LIBRARY_PATH set ?
  • Qt Creator not find the sysroot library

    Unsolved qt 6 rpath sysroot cross compile windows
    2
    0 Votes
    2 Posts
    734 Views
    G
    I find one solution, I add in .pro: QMAKE_LFLAGS += -Wl,-rpath-link=path/to/sysroot/lib Is this the only way? Thanks.
  • 0 Votes
    3 Posts
    5k Views
    xenovasX
    @sergitab94 Sorry for this reply I know this is an old post, but I followed your steps one by one but still my build fails. Anyway opennssl static build with Qt really frustrated me... C:\Qt\Static5113OpenSSL\src\qt-everywhere-src-5.11.3\qtbase\bin\qmake.exe -install qinstall C:\Qt\Static5113OpenSSL\src\qt-everywhere-src-5.11.3\qtbase\mkspecs\winrt-x86-msvc2015 C:\Qt\Static5113OpenSSL\StaticOpenSSL64\mkspecs\winrt-x86-msvc2015 C:\Qt\Static5113OpenSSL\src\qt-everywhere-src-5.11.3\qtbase\bin\qmake.exe -install qinstall C:\Qt\Static5113OpenSSL\src\qt-everywhere-src-5.11.3\qtbase\mkspecs\winrt-x86-msvc2017 C:\Qt\Static5113OpenSSL\StaticOpenSSL64\mkspecs\winrt-x86-msvc2017 mingw32-make[1]: Target 'install' not remade because of errors. mingw32-make[1]: Leaving directory 'C:/Qt/Static5113OpenSSL/src/qt-everywhere-src-5.11.3/qtbase' mingw32-make: *** [Makefile:92: module-qtbase-install_subtargets] Error 2 mingw32-make: Target 'install' not remade because of errors.