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.7k Topics 51.1k Posts
  • Which version of Qt am I using? How do I find out?

    Pinned
    1
    18 Votes
    1 Posts
    24k Views
    No one has replied
  • ./configure troubles in mac

    Unsolved
    5
    0 Votes
    5 Posts
    104 Views
    S
    There was a huge break from Qt 3 to Qt 4. From then on it is more of an evolution from Qt 4 to QT 5 and then Qt 6. It is not worth it to learn Qt 3 first as this is all really outdated.
  • Qt Installer Framework - update remote repo for existing installation

    Unsolved
    4
    0 Votes
    4 Posts
    77 Views
    L
    I seems that updating the conf via rcc update maintenancetool.dat but keep the old maintenancetool.ini and the ini file still contains the old repo.
  • building 6.9.2 and 6.9.1 fails to find file for installation

    Unsolved
    2
    0 Votes
    2 Posts
    182 Views
    kkoehneK
    Shot in the dark, but you might try a slightly older CMake version. Just suggesting this as CMake 4.1.1 is fairly new, and the error message looks ... dubious.
  • Qt 6.8 compillation error: No such file or directory #include <gst/gst.h>

    Unsolved
    2
    0 Votes
    2 Posts
    136 Views
    SGaistS
    Hi and welcome to devnet, If memory serves well you can use -I /path/to/include.
  • building Qt src code and import to vs2019

    Unsolved
    2
    0 Votes
    2 Posts
    115 Views
    jsulmJ
    @TThityou You will need tp provide more information: Do you follow the Qt build instructions? What commands exactly did you execute?
  • EGL Error : Could not create the egl surface: error = 0x321c

    Unsolved
    3
    0 Votes
    3 Posts
    581 Views
    3
    I have the same issue on Orin with Qt5 (Yocto Build). Did you find a solution?
  • Need to build QtCorePrivate for 6.8.,1

    Unsolved
    2
    0 Votes
    2 Posts
    147 Views
    Axel SpoerlA
    In your CMakeLists.txt, just find the package and link to it>: find_package(Qt6 REQUIRED COMPONENTS Core CorePrivate) ... target_link_libraries(target_name PRIVATE Qt6::Core Qt6::CorePrivate )
  • 0 Votes
    2 Posts
    148 Views
    Christian EhrlicherC
    Looks like the feature STATX_MNT_ID was detected even your system does not support it. I would simply ifdef it out so the function returns 0
  • I can't choose anything where I install it.

    Unsolved
    1
    0 Votes
    1 Posts
    101 Views
    No one has replied
  • QT Creator Failed To add files to a project with Error.

    14
    0 Votes
    14 Posts
    5k Views
    cristian-adamC
    @aha_1980 said in QT Creator Failed To add files to a project with Error.: @cristian-adam is that something for you? Well yes. I just tested it, and I could reproduce the issue. I've created https://bugreports.qt.io/browse/QTCREATORBUG-33363 Thank you for mentioning it.
  • Kickstart for paid Plan

    Solved
    3
    0 Votes
    3 Posts
    1k Views
    Axel SpoerlA
    Hello, this might be interesting for you! Feel free to ping me directly, I can get you in touch with our sales.
  • ‘mimetype_database’ was not declared in this scope while cross compiling qt5.15.17

    Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    Axel SpoerlA
    Qt 5.15 isn't supported anymore, just to begin with ;-) MimeTypeDatabaseOriginalSize is a static constexpr, the absence of which suggests that somehow configure has flipped FEATURE_mimetype to OFF. Probably a dependency has been added after 5.14. Please check the configure output for more information. Please also try Qt 6 (at least 6.5, better 6.9) and see if it still happens.
  • Packaging a Qt application to deploy to the windows store

    Solved uwp windows release
    13
    1 Votes
    13 Posts
    6k Views
    J
    Anyone reading this should check these instructions instead: https://forum.qt.io/topic/147272/preparing-app-for-microsoft-store-qt-6-cmake
  • Qt 6.8.3 build fails on windows

    Unsolved
    2
    0 Votes
    2 Posts
    510 Views
    Christian EhrlicherC
    @gvanvoor said in Qt 6.8.3 build fails on windows: Does someone have an idea why it's looking for clang-cl ? Because you set it in the CXX environment variable as cmake tells you some lines above.
  • Can not create a desktop shortcut

    Unsolved
    1
    0 Votes
    1 Posts
    277 Views
    No one has replied
  • Issues running an app using a custom library with Qt 6.9.1

    Unsolved windows 11 windeployqt cmake webengine
    3
    0 Votes
    3 Posts
    621 Views
    Christian EhrlicherC
    This is not a Qt problem but a general one with the msvc runtime - you must not mix different msvc runtimes (static, shared, debug, release)
  • Latest Qt VS tools not finding Qt libs in static build?

    Unsolved
    5
    0 Votes
    5 Posts
    308 Views
    hskoglundH
    Maybe you can see them if you change the prefix $(QT in the top right corner
  • Issue while compiling QT 6.9.1 on Rocky 8.10 at x86_64 platoform

    Unsolved
    5
    0 Votes
    5 Posts
    696 Views
    N
    The above has been fixed, but now getting different error: /usr/include/nspr4 -isystem/usr/include/libxml2 -isystem/usr/include/libxml2 -Wno-narrowing -Wno-class-memaccess -Wno-attributes -Wno-class-memaccess -Wno-subobject-linkage -Wno-invalid-offsetof -Wno-return-type -Wno-deprecated-copy -Wno-invalid-offsetof -Wno-deprecated-copy -Wno-expansion-to-defined -std=gnu++20 -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -c gen/third_party/blink/renderer/core/core_jumbo_291.cc -o obj/third_party/blink/renderer/core/core/core_jumbo_291.o In file included from ./../../../../../../qtwebengine/src/3rdparty/chromium/third_party/blink/renderer/core/xml/xslt_extensions.cc:32, from gen/third_party/blink/renderer/core/core_jumbo_291.cc:11: /usr/include/libxslt/xsltutils.h:292:23: error: ‘XSLT_DEBUG_NONE’ conflicts with a previous declaration 292 | XSLT_DEBUG_NONE = 0, /* no debugging allowed / | ^ In file included from ./../../../../../../qtwebengine/src/3rdparty/chromium/third_party/blink/renderer/core/xml/xsl_style_sheet_libxslt.cc:26, from gen/third_party/blink/renderer/core/core_jumbo_291.cc:10: /usr/include/libxslt/xsltutils.h:292:5: note: previous declaration ‘xsltDebugStatusCodes XSLT_DEBUG_NONE’ 292 | XSLT_DEBUG_NONE = 0, / no debugging allowed */ | ^~~~~~~~~~~~~~~ In file included from ./../../../../../../qtwebengine/src/3rdparty/chromium/third_party/blink/renderer/core/xml/xslt_extensions.cc:32, from gen/third_party/blink/renderer/core/core_jumbo_291.cc:11: /usr/include/libxslt/xsltutils.h:293:5: error: ‘XSLT_DEBUG_INIT’ conflicts with a previous declaration 293 | XSLT_DEBUG_INIT, My configuration options: /usr/bin/cmake ../ -G Ninja -DCMAKE_INSTALL_PREFIX=/dt/temp_nipandey/qt6.9.1 -DCMAKE_C_COMPILER=/tools/install/gcc-10.3.0-rocky8/bin/gcc -DCMAKE_CXX_COMPILER=/tools/install/gcc-10.3.0-rocky8/bin/g++ -DCMAKE_BUILD_TYPE=Release -DQT_FEATURE_opengles2=ON -DQT_FEATURE_x11_xss=OFF -DQT_BUILD_EXAMPLES=OFF -DQT_BUILD_TESTS=OFF -DQT_FEATURE_webengine=ON -DQT_FEATURE_webengine_core=ON -DQT_FEATURE_webengine_widgets=ON -DQT_FEATURE_webgl=ON -DQT_FEATURE_webchannel=ON -DQT_FEATURE_network=ON -DFEATURE_system_xcb_xinput=OFF -DBUILD_SHARED_LIBS=ON -DFEATURE_opengl=ON -DFEATURE_opengl_desktop=ON -DPython3_EXECUTABLE=/tools/install/python-3.8.1-rh7/bin/python3.8 -DCMAKE_PREFIX_PATH=/nipandey/qt/harfbuzz/ -DFEATURE_webengine_system_libxslt=OFF -DFEATURE_webengine_system_libxml2=OFF -DFEATURE_webengine_system_libpng=OFF -DFEATURE_webengine_proprietary_codecs=ON
  • Static versions of libs

    Solved
    9
    0 Votes
    9 Posts
    758 Views
    A
    I built everything that was downloaded in the source folder. Build went fine third time round and once I found "ninja install:Debug" I was able to create and build a new app, and run it in the debugger under Visual Studio. All good. I have raised a bug on the docs and I expect at some point, they will get updated. Edit: Might as well mark this as solved. I have static versions of the libs both debug and release.