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
  • Cannot compile any Qt project on Windows due to a missing stddef.h include

    Unsolved build msvc qtcreator
    12
    1 Votes
    12 Posts
    3k Views
    R
    Just comment the line, it worked for me (cstddef file).
  • QApplication: No such file or directory

    Solved
    6
    1 Votes
    6 Posts
    5k Views
    A
    I have the same issue but now with Qt6. OS: Ubuntu 24.0.1 Qt: Creator 6.7.3 Compiler: gcc/g++ 13.2 IDE: MS Visual Studio Code (from snap) Extensions installed in MVSC: ms-vscode.cpptools, twxs.cmake, ms-vscode.cmake-tools, theqtcompany.qt, theqtcompany.qt-cpp-pack and tonka3000.qtvsctools Qt's installation folder: home/Qt/ Qt example's folder: home/Qt/Examples/Qt-6.7.3/widgets/widgets/calculator/ I'm trying to run this example using CMakeLists.txt and c_cpp_properties.json. c_cpp_properties.json in .vscode: { "configurations": [ { "name": "Linux", "includePath": [ "${workspaceFolder}/**", "/home/arantxa/Qt/6.7.3/gcc_64/include/**", "/home/arantxa/Qt/6.7.3/gcc_64/include/QtWidgets/" ], "defines": [], "compilerPath": "/usr/bin/gcc", "cStandard": "c17", "cppStandard": "gnu++17", "intelliSenseMode": "linux-gcc-x64" } ], "version": 4 } The top-level CMakeLists.txt: # Copyright (C) 2022 The Qt Company Ltd. # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause cmake_minimum_required(VERSION 3.16) project(calculator LANGUAGES CXX) find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets) qt_standard_project_setup() qt_add_executable(calculator button.cpp button.h calculator.cpp calculator.h main.cpp ) set_target_properties(calculator PROPERTIES WIN32_EXECUTABLE TRUE MACOSX_BUNDLE TRUE ) target_link_libraries(calculator PRIVATE Qt6::Core Qt6::Gui Qt6::Widgets ) install(TARGETS calculator BUNDLE DESTINATION . RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ) qt_generate_deploy_app_script( TARGET calculator OUTPUT_SCRIPT deploy_script NO_UNSUPPORTED_PLATFORM_ERROR ) install(SCRIPT ${deploy_script}) Everything that is required, every include, is listed! I'm not sure what should I do.
  • Build configuration: cannot execute an Qt's example in MS Studio Code

    Solved
    4
    0 Votes
    4 Posts
    525 Views
    A
    I was able to resolve replacing "/snap/bin/cmake" for: cmake.cmakePath = /snap/cmake/current/bin/cmake
  • License acquisition delayed, all execution license in use

    Unsolved
    2
    0 Votes
    2 Posts
    208 Views
    Christian EhrlicherC
    This is a user-driven forum. For license problems you should contact TQtC directly through your support channel.
  • The required XCB cursor platform library was not found!

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    M
    Hmm I think the problem was that I didn't run the binary with sudo.
  • cross compiling Qt for a 32-bit architecture.

    Unsolved
    1
    0 Votes
    1 Posts
    234 Views
    No one has replied
  • QT Compilation

    Unsolved
    2
    0 Votes
    2 Posts
    210 Views
    Christian EhrlicherC
    @A-Akshatha said in QT Compilation: Can we make it compatible with 2017 If you mean 'we' with you - maybe. I doubt you will find other people using this old version with this old compiler.
  • Qt 5.15.5 static build with Openssl

    Unsolved
    3
    0 Votes
    3 Posts
    418 Views
    SGaistS
    Hi, If memory serves well, you need at least 5.15.13 for OpenSSL v3 support.
  • some metatypes.json files are missing in the installation.

    Unsolved
    2
    0 Votes
    2 Posts
    453 Views
    JoeCFDJ
    @JoeCFD said in some metatypes.json files are missing in the installation.: /usr/lib/x86_64-linux-gnu/metatypes Available json files in /usr/lib/x86_64-linux-gnu/metatypes qt5core_metatypes.json qt5qml_metatypes.json qt5qmlworkerscript_metatypes.json qt5quickparticles_metatypes.json qt5quicktest_metatypes.json qt5gui_metatypes.json qt5qmlmodels_metatypes.json qt5quick_metatypes.json qt5quickshapes_metatypes.json qt5widgets_metatypes.json
  • Problem while installing qt online installer

    Unsolved
    4
    0 Votes
    4 Posts
    315 Views
    jsulmJ
    @M123 Here is explained how to select a different mirror: https://wiki.qt.io/Online_Installer_4.x
  • Using generated QRC file with cmake

    Solved
    3
    0 Votes
    3 Posts
    973 Views
    A
    I was indeed using the wrong variant. I'm not sure if that variant works with a generated .qrc file either, but I ended up just globbing the actual files and adding them to the FILES option, since that's what I was basically doing in my python script (I was globbing the files and outputing them in .qrc format). Thanks anyway
  • How to install open source QT

    Unsolved
    4
    0 Votes
    4 Posts
    387 Views
    artwawA
    @ManiRon28 That's not terminal, that's powershell console.
  • 0 Votes
    18 Posts
    4k Views
    SGaistS
    Hi, If you are not returning anything from a function that has a return type then you enter undefined behaviour territory. You were just lucky it worked until now. This also means that you ignored your compiler warnings which is usually the best way to have strange things such as this crash happening.
  • Qt commercial to Qt community: cannot download anything from online installer

    Solved
    4
    0 Votes
    4 Posts
    353 Views
    I
    Hi @DJaq, technically you can not use the same Qt Account for both commercial and opensource installations. If the used Qt Account has any licenses (even eval ones) it will switch to commercial version. So it means that you need to have a second Qt Account in order to do opensource installations with the online installer
  • License check failed under Qt5 but not Qt6

    Moved Unsolved
    4
    0 Votes
    4 Posts
    351 Views
    I
    Hi @dknx-8888 , you should be able to create a ticket for Qt support in the customer portal (login to your Qt Account). -> Support Center
  • 0 Votes
    10 Posts
    847 Views
    artwawA
    Like @ankou29666 said. I have a separate question though: you really have a free floating mysql on the internet with root access enabled?
  • Qt-5.15.2 CROSS COMPILATION ERROR

    Unsolved
    4
    0 Votes
    4 Posts
    417 Views
    jsulmJ
    @Vijaykarthikeyan said in Qt-5.15.2 CROSS COMPILATION ERROR: This is the only error message that I have got I'm sure there is more. What you posted is what make prints at the end if there were any compiler/linker errors. So, please look above these lines or post whole build log here.
  • Qt6.2 for Jetson TX2NX - EGLFS configuration problems

    Unsolved qt6 eglfs
    3
    0 Votes
    3 Posts
    2k Views
    M
    Hello, I'm trying to compile Qt6 for cross compile for my jetson orin nano and i'm having some trouble doing it even if Qt5.15 worked perfectly fine. I xould like to know which toolchain did you used ? What have you put in your toolchain.cmake ? Atucally I follow the wiki qt for cross compiling for raspPI but my compilation was donc on a wrong architecture (x86). Thank you for your help
  • Failed to load include path to android.jar

    Unsolved
    2
    1 Votes
    2 Posts
    4k Views
    N
    Same. Looks like API 35 remains unready for our purposes. Try switching your project to API 34, which works for me.
  • Windows and mac development environment setup and sync?

    Unsolved
    7
    0 Votes
    7 Posts
    654 Views
    artwawA
    @Taytoo said in Windows and mac development environment setup and sync?: I didnt know that VS was using qmake. I don't know what VS is using - not my toolset. But you mentioned .pro files previously, those are for qmake and that's what I was referring to. https://cmake.org/cmake/help/book/mastering-cmake/chapter/Converting Existing Systems To CMake.html#converting-windows-based-workspaces