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.0k Posts
  • Deploying or installing Qt Assistant

    Unsolved
    5
    0 Votes
    5 Posts
    416 Views
    PerdrixP
    You mean manually copy assistant .exe from the Qt install dir to the application build directory and then qt deploy - surely there must be a more formal method than that D.
  • qtcreator won't run after update to 6.8.2: xcb error

    Solved
    9
    0 Votes
    9 Posts
    793 Views
    JonBJ
    @Tom-asso As @jsulm says. Do you want to examine why you need to set LD_LIBRARY_PATH, you ought not need to?
  • Not able to install Qt open source mac and Windows

    Unsolved
    2
    0 Votes
    2 Posts
    223 Views
    SGaistS
    Hi and welcome to devnet, Did you already try with a different mirror ?
  • Qt free space requirements

    Unsolved
    2
    0 Votes
    2 Posts
    268 Views
    SGaistS
    Hi and welcome to devnet, Did check for error messages in the kit settings ? As for the size, it depends a lot on what you selected. What do you have currently ? Beside multiple versions of Qt, are you installing multiple architectures ?
  • Failing to macdeployqt

    Unsolved
    13
    0 Votes
    13 Posts
    953 Views
    PerdrixP
    Found the file after quite a bit of digging. include(/Users/amonra/.vs/DSS/out/build/.qt/QtDeploySupport.cmake) include("${CMAKE_CURRENT_LIST_DIR}/DeepSkyStacker-plugins.cmake" OPTIONAL) set(__QT_DEPLOY_I18N_CATALOGS "qtbase") qt_deploy_runtime_dependencies( EXECUTABLE "/Users/amonra/.vs/DSS/out/build/DeepSkyStacker/DeepSkyStacker.app" DEPLOY_TOOL_OPTIONS -hardened-runtime )
  • Using cross-compilation for ARM64 in the Ubuntu 24.04 x86 environment

    Solved
    4
    0 Votes
    4 Posts
    1k Views
    S
    I have already resolved the issue and successfully cross-compiled for arm64 on Ubuntu 24.04 x86 using Qt6.8.2. I will provide my method. The configure command is as follows: ../Src/configure \ -prefix /home/ptc/Qt/6.8.2/arm64 \ -qt-host-path /home/ptc/Qt/6.8.2/gcc_64 \ -platform linux-g++ \ -device linux-aarch64-gnu-g++ \ -device-option CROSS_COMPILE=aarch64-linux-gnu- \ -no-opengl \ -skip qtopcua -skip qtwebengine -skip qtwebview -skip qtserialport -skip qtlocation \ -no-feature-brotli -no-feature-hunspell \ -- -DCMAKE_TOOLCHAIN_FILE=$HOME/Qt/6.8.2/toolchain/arm64-toolchain.cmake Before this, create a new toolchain.cmake file yourself. set(CMAKE_SYSTEM_NAME Linux) set(CMAKE_SYSTEM_PROCESSOR aarch64) set(CMAKE_C_COMPILER "/usr/bin/aarch64-linux-gnu-gcc") set(CMAKE_CXX_COMPILER "/usr/bin/aarch64-linux-gnu-g++") set(CMAKE_LINKER "/usr/bin/aarch64-linux-gnu-ld") set(CMAKE_AR "/usr/bin/aarch64-linux-gnu-ar") set(CMAKE_FIND_ROOT_PATH /usr/aarch64-linux-gnu) set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) Next, you can follow my method to add the arm64-related dependencies on x86. $ sudo dpkg --add-architecture arm64 $ sudo vim /etc/apt/sources.list.d/ubuntu-arm64.sources Types: deb URIs: http://ports.ubuntu.com/ubuntu-ports/ Suites: noble noble-updates noble-security Components: main restricted universe multiverse Architectures: arm64 Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg $ sudo apt update $ sudo apt install -y libudev-dev:arm64 libmtdev-dev:arm64 Finally, execute the configure command.
  • Cannot write to file: Unknown error after clean install of Qt

    Unsolved
    18
    0 Votes
    18 Posts
    3k Views
    B
    Same problem here, running Qt Creator 15.0.1 on windows 11
  • Trying to create Linux installer for my Qt C++ Widget application

    Unsolved
    11
    0 Votes
    11 Posts
    795 Views
    GilboonetG
    I'm now trying to follow the Deployment | Build with CMake 6.8.2 doc (see here). It took me a long time to understand that it is not done with Qt Creator interactively but on a terminal command line. I changed my CMakeLists.txt to add the needed lines provided by the doc : cmake_minimum_required(VERSION 3.22) project(Deplieur VERSION 0.1 LANGUAGES CXX) set(CMAKE_AUTOUIC ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) find_package(QT NAMES Qt6 REQUIRED COMPONENTS Widgets LinguistTools) find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets LinguistTools) find_package(Qt6 REQUIRED COMPONENTS Network) find_package(Qt6 REQUIRED COMPONENTS Core) qt_standard_project_setup() set(TS_FILES Deplieur_fr_FR.ts) set(PROJECT_SOURCES main.cpp mainwindow.cpp ${TS_FILES} ) qt_add_executable(Deplieur MANUAL_FINALIZATION ${PROJECT_SOURCES} mainwindow.h resources.qrc depliage.h depliage.cpp mat4x4.h mat4x4.cpp vec3d.h vec3d.cpp triangle2d.h triangle2d.cpp depliagescene.h depliagescene.cpp depliagevue3d.h depliagevue3d.cpp triangleitem2d.h triangleitem2d.cpp triangleitem3d.h triangleitem3d.cpp facette.h facette.cpp depliagevue2d.h depliagevue2d.cpp piecepolygonitem.h piecepolygonitem.cpp pieceligneitem.h pieceligneitem.cpp piecelangitem.h piecelangitem.cpp piecenumitem.h piecenumitem.cpp filedownloader.h filedownloader.cpp ) qt_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${TS_FILES}) target_link_libraries(Deplieur PRIVATE Qt${QT_VERSION_MAJOR}::Widgets) target_link_libraries(Deplieur PRIVATE Qt6::Network) target_link_libraries(Deplieur PRIVATE Qt6::Core) #target_link_options(Deplieur PUBLIC -sASYNCIFY -Os) set_target_properties(Deplieur PROPERTIES ${BUNDLE_ID_OPTION} MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION} MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} MACOSX_BUNDLE TRUE WIN32_EXECUTABLE TRUE ) include(GNUInstallDirs) install(TARGETS Deplieur BUNDLE DESTINATION . LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} ) qt_finalize_executable(Deplieur) qt_generate_deploy_app_script( TARGET Deplieur OUTPUT_SCRIPT deploy_script NO_UNSUPPORTED_PLATFORM_ERROR ) install(SCRIPT ${deploy_script}) But when I run (from my release directory) ninja install or cmake --install . there's an error, apparently a path to qt.conf is malformed, so I certainly did something wrong or didn't do something needed, but I don't see what. I must say that it is a process that I never used before, and if I was able to learn C++ for that project, I'm not sure that I can also teach myself all those system tools. first time I ran ninja install gilboonet@GigiMacBookPro:~/Documents/dev/C++/Deplieur/build/Desktop_Qt_6_8_2-Release$ ninja install [0/2] Re-checking globbed directories... -- GLOB mismatch! -- GLOB mismatch! [1/2] Re-running CMake... -- Configuring done (0.4s) -- Generating done (0.0s) -- Build files have been written to: /home/gilboonet/Documents/dev/C++/Deplieur/build/Desktop_Qt_6_8_2-Release [0/2] Re-checking globbed directories... [0/1] Install the project... -- Install configuration: "Release" -- Up-to-date: /home/gilboonet/Documents/dev/C++/Deplieur/build/Desktop_Qt_6_8_2-Release/bin/Deplieur -- Writing /usr/local//home/gilboonet/Documents/dev/C++/Deplieur/build/Desktop_Qt_6_8_2-Release/bin/qt.conf CMake Error at /home/gilboonet/Qt/6.8.2/gcc_64/lib/cmake/Qt6Core/Qt6CoreDeploySupport.cmake:93 (file): file failed to open for writing (No such file or directory): /usr/local//home/gilboonet/Documents/dev/C++/Deplieur/build/Desktop_Qt_6_8_2-Release/bin/qt.conf Call Stack (most recent call first): /home/gilboonet/Qt/6.8.2/gcc_64/lib/cmake/Qt6Core/Qt6CoreDeploySupport.cmake:405 (qt6_deploy_qt_conf) .qt/deploy_Deplieur_8df5c22dfa.cmake:5 (qt6_deploy_runtime_dependencies) cmake_install.cmake:74 (include) FAILED: CMakeFiles/install.util second time I ran it gilboonet@GigiMacBookPro:~/Documents/dev/C++/Deplieur/build/Desktop_Qt_6_8_2-Release$ ninja install [0/2] Re-checking globbed directories... -- GLOB mismatch! -- GLOB mismatch! [1/2] Re-running CMake... -- Configuring done (0.4s) -- Generating done (0.0s) -- Build files have been written to: /home/gilboonet/Documents/dev/C++/Deplieur/build/Desktop_Qt_6_8_2-Release [0/2] Re-checking globbed directories... [0/1] Install the project... -- Install configuration: "Release" -- Up-to-date: /home/gilboonet/Documents/dev/C++/Deplieur/build/Desktop_Qt_6_8_2-Release/bin/Deplieur -- Writing /usr/local//home/gilboonet/Documents/dev/C++/Deplieur/build/Desktop_Qt_6_8_2-Release/bin/qt.conf CMake Error at /home/gilboonet/Qt/6.8.2/gcc_64/lib/cmake/Qt6Core/Qt6CoreDeploySupport.cmake:93 (file): file failed to open for writing (No such file or directory): /usr/local//home/gilboonet/Documents/dev/C++/Deplieur/build/Desktop_Qt_6_8_2-Release/bin/qt.conf Call Stack (most recent call first): /home/gilboonet/Qt/6.8.2/gcc_64/lib/cmake/Qt6Core/Qt6CoreDeploySupport.cmake:405 (qt6_deploy_qt_conf) .qt/deploy_Deplieur_8df5c22dfa.cmake:5 (qt6_deploy_runtime_dependencies) cmake_install.cmake:74 (include) FAILED: CMakeFiles/install.util
  • 2 Votes
    4 Posts
    551 Views
    QtFriend2024Q
    See solution here https://forum.qt.io/post/821552
  • problem deploying qt app with camera

    Solved
    11
    0 Votes
    11 Posts
    735 Views
    QtFriend2024Q
    I switched to a USB Camera and am able to get my QT application to use the camera, now.
  • Pyside6-deploy triggers Windows deffender: Wacatac.B!ml

    Unsolved
    2
    0 Votes
    2 Posts
    167 Views
    Christian EhrlicherC
    @fullQi said in Pyside6-deploy triggers Windows deffender: Wacatac.B!ml: Would love some insight to what I can do to resolve this. Report it to the Windows Defender support.
  • Deployment on Linux

    Solved
    5
    0 Votes
    5 Posts
    458 Views
    GilboonetG
    @Perdrix Thank you, the new link is the good one
  • Windows 11 Insider build - Suddenly cannot start QtCreator

    Unsolved
    14
    0 Votes
    14 Posts
    824 Views
    ldraconusL
    @JonB Yup, that's the issue. By re-installing an manually telling it which driver to user, it works ... for every application that fails to run.
  • Qt Bluetooth library - 32bit in Qt 6.8.x version

    Unsolved
    4
    0 Votes
    4 Posts
    262 Views
    P
    @jsulm Ok, thanks, it was very noobish from me. QtBluetooth isn't in separate library, but in QtConnectivity.
  • Not able to install QT open source on Windows 11

    Unsolved
    7
    0 Votes
    7 Posts
    1k Views
    K
    For me issue is resolve by using below command on Windows 11: qt-online-installer-windows-x64-4.8.1.exe --mirror http://qt.mirror.constant.com
  • Qt crash at installation

    Solved
    31
    1 Votes
    31 Posts
    9k Views
    W
    @DylanT123 Thank you so much for this solution, it helped a lot <3
  • Installed Qt6.8.2 - now cmake cannot find Qt6 components

    Solved
    17
    0 Votes
    17 Posts
    2k Views
    Tom assoT
    OK I was using online-installer and MaintenanceTool incorrectly. For my own edification/notes, the "correct" way for Qt desktop seems to be: Run installer, specify "Qt" as Qt destination directory, then specify "Qt 6.8 for desktop development" Run downloaded Qt/MaintenanceTool , select Add or remove components Qt->Qt6.8.2->Additional libraries->Qt Graphs (plus preselected libraries) Thanks for your help everyone.
  • 0 Votes
    11 Posts
    1k Views
    QtFriend2024Q
    @michael-Xu I just posted the solution here!
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Installed Qt6.8.2 - now cmake fails

    Solved
    2
    0 Votes
    2 Posts
    195 Views
    Tom assoT
    I removed the CMake cache file, and now the project builds properly.