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
  • Unable to install any Qt 5.15.2 for Linux (Ubuntu 20.04.4 LTS)

    Solved
    8
    0 Votes
    8 Posts
    14k Views
    A
    @kkoehne Thank you so much. My virtual machine had only 1 CPU Increasing this amount to 2 allowed me install everything I need.
  • Qt not working on ubuntu 18.04

    Unsolved
    9
    0 Votes
    9 Posts
    5k Views
    P
    Hi, The problem is not in libc version! Don't try to update it, you will ruin your system. I was trying to install the oldest Qt distributive hoping to avoid /lib/Qt/lib/libQt6Core.so.6. No way. Something wrong with distributive on qt site. All you have to do is to get it from the scratch: sudo apt update; sudo apt install build-essential sudo apt install qtcreator sudo apt install qt5-default good luck
  • Failed to install Qt 6.2.4 online installer on Ubuntu 22 : process freeze

    Unsolved
    2
    0 Votes
    2 Posts
    364 Views
    kkoehneK
    See the discussion in https://forum.qt.io/topic/139349/installation-not-responding-at-98-in-virtualbox-ubuntu-qt6/4 . Make sure you have more than one CPU in your virtual machine.
  • sftp failed with exit code 255

    Solved
    5
    0 Votes
    5 Posts
    4k Views
    S
    Thanks a lot @JKSH for the quick responses. I will try one of these options.
  • How to download full development package for Qt 5.12.8

    Solved
    3
    0 Votes
    3 Posts
    344 Views
    M
    @rajel052 Direct download available here: https://download.qt.io/official_releases/qt/5.12/
  • How to creat Qt static build as a /MT runtime library

    Solved
    12
    0 Votes
    12 Posts
    3k Views
    JonBJ
    @Michael418 said in How to creat Qt static build as a /MT runtime library: Is there official information that Qt requires specific DLLs from Windows? No. And btw this is not a Qt-specific restriction, it's Windows.
  • Remote Generic Linux device

    Unsolved
    9
    0 Votes
    9 Posts
    1k Views
    A
    @jsulm Thankyou very much for said support. Everyone is learning and discussing over the world parallelely. Thanks a lot.
  • How to configure Qt on BBB with linux

    Unsolved
    20
    0 Votes
    20 Posts
    2k Views
    A
    Hi, Thanks for all support. Finally, cross-compilation of beaglebone with Qt done. But, still , next stone in the path is - https://forum.qt.io/topic/124754/remote-generic-linux-device Please guide, what statement to add install in Cmakelists.txt file
  • Qt 5.9.1 static configure/build with msvc 2017

    Solved
    2
    0 Votes
    2 Posts
    261 Views
    A
    tried with qt 5.9.1 static with msvc 2017 on window 10 failed. tried with qt 5.15.4 static with msvc 2017 on window 10 failed. tried with qt 5.14.2 static with msvc 2017 on window 10 is successful.
  • Qt 5.15.11 release date?

    Unsolved
    2
    0 Votes
    2 Posts
    259 Views
    SGaistS
    Hi, That's a question you should bring to the Qt Company since it's a commercial release.
  • Qt build failed without any error output, how to get verbose output?

    Unsolved
    2
    0 Votes
    2 Posts
    247 Views
    jsulmJ
    @yanni You can forward the stdout/stderr output into a file and search there for "error". You can also call make again - it will not rebuild what was already built, so it should be easier to spot the actual error.
  • Application cannot be autorun during startup on raspberry with systemd

    Unsolved
    2
    0 Votes
    2 Posts
    419 Views
    SGaistS
    Hi and welcome to devnet, This thread and some others on this forum are about the same subject. You may find there some information to get you going.
  • Failed to retrieve MSVC Environment

    Solved
    10
    1 Votes
    10 Posts
    12k Views
    A
    Hi, For me, executing C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build>vcvars32.bat x86 from cmd was giving the below output: The system cannot find the path specified. ** Visual Studio 2019 Developer Command Prompt v16.4.5 ** Copyright (c) 2019 Microsoft Corporation The system cannot find the path specified. The system cannot find the path specified. [vcvarsall.bat] Environment initialized for: 'x64' This solved it: https://stackoverflow.com/questions/64248886/visual-studio-c-build-tools-vsdevcmd-bat-vcvarsall-bat-fails-to-find-some Best, Alex
  • Accessing commercial releases (such as Qt 5.15.10) through Qt MaintenanceTool

    Solved
    4
    0 Votes
    4 Posts
    500 Views
    AndyBriceA
    So the advice I got from Qt support was: "Qt 5.15.10 should be available through the maintenance tool but it is required to remove the old open source installation completely and also remove the open source license files from your system. So, first step is to remove the old Qt installation completely. Then remove the old open source licenses which might exist." I am surprised they didn't make that clear when I upgraded or when I ran the MaintenanceTool (presumably it can detect the new license from my online account).
  • Qt Installation failed

    Solved
    3
    0 Votes
    3 Posts
    348 Views
    E
    @jsulm Oh, thank you for the reply. I ask for qt company about this question too. I think they can give me a solution. Thank you again! Best Regards, JESuh
  • How to download 5.15.1?

    Unsolved
    4
    0 Votes
    4 Posts
    504 Views
    JKSHJ
    @AddieRae said in How to download 5.15.1?: There is, but like I said, it only goes up to 4.14. It doesn't have 5.15 on there to download. Use the online installer: [image: y4mqhPzLmRPn4gLWwNONw-xByJ621GqCj3L2LfuDgB8KnRSgMyB12Li26bRdlG5XBJDUIFeDa67NOszfwkslMjzNynx6IRVGeVz1jP9RiIqKhImWk7NSWjNW2rRkVcYJ1Ev9hdcJtQ6dbxnUaFVDT7E0Yeh5nFVztoSnTGzz_x0QLvjKqVbXeAjvceOIqcRY1jG?width=952&height=638&cropmode=none] My college instructor wants us to use 5.15.1 That's a strange request. May I ask why? it doesn't behave the same and won't allow me to do the work I need to. What doesn't behave the same? Qt 5.15.2 is backward compatible with Qt 5.15.1.
  • build failure - '_uuidof' was not declared in this scope

    Unsolved
    7
    0 Votes
    7 Posts
    2k Views
    J
    @Christian-Ehrlicher Your link no longer works - but given as it has Mingw8 in the name, I'm assuming that you were referring to a Qt 5 build with MinGW 8. While officially Qt 5 is dead now and no longer actively supported for open-source, I also ran into the issue @gyorokpeter was having. Specifically, I am using MinGW 11.2 (the bundled MinGW compiler for Qt 6) to compile the latest Qt 5 LTS. So to conclude, yes, Qt compiles fine with MinGW, but Qt 5 breaks when using a newer MinGW compiler. It passes the d3d12 config.test in qt/qtdeclarative, but then fails to compile the rest of the d3d12 plugin. This is what I had to do to make Qt 5 compile again under MinGW 11.2: diff --git a/src/plugins/scenegraph/d3d12/qsgd3d12engine.cpp b/src/plugins/scenegraph/d3d12/qsgd3d12engine.cpp index 75bde2c66b..3594878eca 100644 --- a/src/plugins/scenegraph/d3d12/qsgd3d12engine.cpp +++ b/src/plugins/scenegraph/d3d12/qsgd3d12engine.cpp @@ -221,7 +221,7 @@ static void getHardwareAdapter(IDXGIFactory1 *factory, IDXGIAdapter1 **outAdapte if (SUCCEEDED(factory->EnumAdapters1(adapterIndex, &adapter))) { adapter->GetDesc1(&desc); const QString name = QString::fromUtf16((char16_t *) desc.Description); - HRESULT hr = D3D12CreateDevice(adapter.Get(), fl, _uuidof(ID3D12Device), nullptr); + HRESULT hr = D3D12CreateDevice(adapter.Get(), fl, __uuidof(ID3D12Device), nullptr); if (SUCCEEDED(hr)) { qCDebug(QSG_LOG_INFO_GENERAL, "Using requested adapter '%s'", qPrintable(name)); *outAdapter = adapter.Detach(); @@ -238,7 +238,7 @@ static void getHardwareAdapter(IDXGIFactory1 *factory, IDXGIAdapter1 **outAdapte if (desc.Flags & DXGI_ADAPTER_FLAG_SOFTWARE) continue; - if (SUCCEEDED(D3D12CreateDevice(adapter.Get(), fl, _uuidof(ID3D12Device), nullptr))) { + if (SUCCEEDED(D3D12CreateDevice(adapter.Get(), fl, __uuidof(ID3D12Device), nullptr))) { const QString name = QString::fromUtf16((char16_t *) desc.Description); qCDebug(QSG_LOG_INFO_GENERAL, "Using adapter '%s'", qPrintable(name)); break; diff --git a/src/plugins/scenegraph/d3d12/qsgd3d12engine_p_p.h b/src/plugins/scenegraph/d3d12/qsgd3d12engine_p_p.h index a95cbb1cbb..54a2c4dc8f 100644 --- a/src/plugins/scenegraph/d3d12/qsgd3d12engine_p_p.h +++ b/src/plugins/scenegraph/d3d12/qsgd3d12engine_p_p.h @@ -55,6 +55,7 @@ #include <QCache> #include <d3d12.h> +#include <d3d12sdklayers.h> #include <dxgi1_4.h> #include <dcomp.h> #include <wrl/client.h> @@ -263,8 +264,8 @@ private: void beginFrameDraw(); void endDrawCalls(bool lastInFrame = false); - static const int MAX_SWAP_CHAIN_BUFFER_COUNT = 4; - static const int MAX_FRAME_IN_FLIGHT_COUNT = 4; + static inline const int MAX_SWAP_CHAIN_BUFFER_COUNT = 4; + static inline const int MAX_FRAME_IN_FLIGHT_COUNT = 4; bool initialized = false; bool inFrame = false;
  • CMAKE_FORTRAN

    Unsolved
    2
    0 Votes
    2 Posts
    322 Views
    SGaistS
    Hi and welcome to devnet, Can you share your CMakeLists.txt file ?
  • Build qt5 on centos7, linker can not link libiconv even if it exists

    Unsolved
    4
    0 Votes
    4 Posts
    809 Views
    Y
    It seems to be a bug, see here and here To solve this, the configure comamnd should be adjusted: ./configure --iconv=posix The syntax is a little bit different from that in configure --help output, see here
  • Build qt 5.15

    Solved qtwebnegine
    4
    0 Votes
    4 Posts
    773 Views
    Christian EhrlicherC
    Then please mark this topic as solved, thx.