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
  • /lib64/libQt5Quick.so.5: version `Qt_5_PRIVATE_API' not found

    Solved
    5
    0 Votes
    5 Posts
    5k Views
    D
    @JonB your suggestion actually works well! All I needed to do was to create a new Qt Version under Tools->Options->Kits->Qt Versions and point it to the qmake executable under /lib64/qt5. I could than create a new kit using that Qt Version, compile and run the executable on my target machine. Thanks for the help!
  • Installing Qt / Creator on Windows 11

    Unsolved
    2
    0 Votes
    2 Posts
    664 Views
    D
    @AdamHaile Have u fixed this problem?
  • 0 Votes
    2 Posts
    443 Views
    Q
    @qqtang to correct my questions I put them in reply: For "build qt-base application for <target machine> on <build machine>", what should I do on both side machine? For “prepare qt development environment by building from source for <target machine> on <build machine>", what should I do on both side machine?
  • 0 Votes
    1 Posts
    892 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    17 Views
    No one has replied
  • Qt Window dynamic building ZSTD error

    Unsolved
    2
    0 Votes
    2 Posts
    399 Views
    cristian-adamC
    Try passing -no-zstd to the configure call.
  • qt 5.15.2 everywhere - Could not find Qt5ThemeSupport

    Unsolved
    20
    0 Votes
    20 Posts
    4k Views
    F
    I finally found how to do, just pass explicitely some libraries dir to cmake: -DCMAKE_INSTALL_PREFIX=/opt/kf5 -DQt5ThemeSupport_LIBRARY=/opt/qt5/lib/libQt5ThemeSupport.a -DQt5ThemeSupport_INCLUDE_DIR=/opt/qt5/include/QtThemeSupport/5.15.2 -DQt5DBus_DIR=/opt/qt5/lib/cmake/Qt5DBus -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -Wno-dev It was a bit tricky to be honest. Thanks for your help
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    13 Views
    No one has replied
  • Errors in build of Qt 5.15.9 on Ubuntu 22.04

    Unsolved
    3
    0 Votes
    3 Posts
    596 Views
    JoeCFDJ
    @JoeCFD the error 1 is caused by missing -lgstwayland-1.0 in qtmultimedia module build. I set flag to skip wayland, but GST_GL_HAVE_WINDOW_WAYLAND is still set to 1.
  • include QTcpSocket

    Solved
    2
    0 Votes
    2 Posts
    217 Views
    Christian EhrlicherC
    The documentation of QTcpSocket tells you exactly what you have to do when you want to use QTcpSocket with cmake.
  • Qt installer framework

    Unsolved
    1
    0 Votes
    1 Posts
    184 Views
    No one has replied
  • Copied a porject as a backedup, but could not find lib path

    Unsolved
    4
    0 Votes
    4 Posts
    337 Views
    JonBJ
    @ytung469 Well, it looks wrong. Maybe in the other one the boost includes directory is on the include path anyway, so it gets away with that being ignored. Do you have boost installed anyway? Did you try changing it to INCLUDEPATH += /libs/include/boost (or whatever the right directory is on your machine) to see if that resolves?
  • Building for ARM64

    Solved arm64 aarch64
    8
    0 Votes
    8 Posts
    16k Views
    D
    friend tell me what should I do, really apt get can put qt or you built from src, and direct me if I need this thing for developers, where to put the sources, I have arm64 linux @bruce_the_great
  • Wrong touch position with qt 6.4.2 and tslib

    Unsolved
    2
    0 Votes
    2 Posts
    300 Views
    SGaistS
    Hi and welcome to devnet, You have all related informations on this page.
  • Build for Arm64

    Solved
    2
    0 Votes
    2 Posts
    339 Views
    cristian-adamC
    You need to install the arm64 compiler in the Visual Studio Installer -> Individual components. See below: [image: visual-studio-2022-arm64.png]
  • Installer immediately crashes

    Unsolved
    2
    0 Votes
    2 Posts
    255 Views
    jsulmJ
    @newqtdev It looks like you have a commercial license? If that is the case you can also contact QtCompany directly and ask for support.
  • Gitlab pipeline on Windows with MSVC. Unable to compile Qt App

    Unsolved
    6
    0 Votes
    6 Posts
    2k Views
    cristian-adamC
    CMake will look into the PATH environment variable in order to search for C/C++ compilers. With the CXX and CC environment variables you can tell CMake which compiler names you are interested in. In the case that you have more compilers in PATH. The "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat" batch file will set some environment variables that are needed by the cl.exe compiler: PATH INCLUDE LIB In your setup the environment variables get cleared and CMake doesn't have access to them. In my case I have: PATH=Path=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\bin\HostX64\x64;%PATH% INCLUDE=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\include;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\ATLMFC\include;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include;C:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\um;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\shared;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\winrt;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\cppwinrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um LIB=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\ATLMFC\lib\x64;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\lib\x64;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.22000.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22000.0\\um\x64 If you want to make sure that these environment variables are available to CMake you can have a msvc-env.cmake file with: set(ENV{CXX} "cl.exe") set(ENV{CC} "cl.exe") set(ENV{PATH} "path values") set(ENV{LIB} "lib values") set(ENV{INCLUDE} "include values") Make sure you replace all backslashes \ with forwared slashes / . And give this to CMake when you configure your project as: cmake.exe -S . -B build -GNinja -DCMAKE_BUILD_TYPE:STRING=Release -C msvc-env.cmake This way you don't need to fiddle around with vcvarsall.bat or what not. But you have to make sure that all version numbers are valid. I have an example using CMake Presets at https://www.qt.io/blog/qt-creator-9-cmakepresets
  • Qt creator package not downloading and closed

    Solved qt creator c++ qt installer qtcreator qt6
    4
    0 Votes
    4 Posts
    882 Views
    jsulmJ
    @Suhel said in Qt creator package not downloading and closed: please help Qt Creator Company This is user forum. Offline installers are available here: https://www.qt.io/offline-installers
  • xcb

    Unsolved
    2
    0 Votes
    2 Posts
    370 Views
    jsulmJ
    @Quitaxd said in xcb: /usr/lib/libxcb-keysyms.so.1: file too short Reinstall libxcb-keysyms1 package (Debian/Ubuntu, you did not mention on what OS you are).
  • 0 Votes
    5 Posts
    581 Views
    P
    3Q all and the problem was found that qt5.15 was conflict with pingfang fonts installed on windows,after uninstall those fonts,the installation program works!