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.5k Topics 50.0k Posts
  • CMake does not work with Qt 6.7.0

    Solved
    14
    0 Votes
    14 Posts
    1k Views
    O

    Someone has the same problem as me here. So there is indeed an issue with Qt 6.7.x. It will be fixed in the 6.7.3 release.

    Meanwhile, I fixed the problem moving

    find_package(Qt6 COMPONENTS LinguistTools Widgets REQUIRED)

    to the root directory's CMakeLists.txt.

  • error after ./configure

    Unsolved
    7
    0 Votes
    7 Posts
    221 Views
    SGaistS

    Hi,

    If you really need that obsolete version of Qt, check whether your Linux distribution provides it and use that one. It will be way simpler.
    If your distribution does not have it, you'll have to install an older variant that does. I think Debian 11 was still shipping it.

  • There was an error loading the selected component.

    Unsolved
    7
    0 Votes
    7 Posts
    994 Views
    F

    @MarcoDC Thanks,.This way is very helpful for me.

  • 0 Votes
    5 Posts
    189 Views
    SGaistS

    You should check the bug report system to see if there's something related and if not, open a feature suggestion.

  • 0 Votes
    8 Posts
    2k Views
    J

    Qt6 is a whole new library. There's no way I'm going to try to build a Qt5 app with it. There's a 0% chance it would build. So I went through the trouble of figuring out how to apply those patches.

    The link above is to a confusing web tool, but I eventually figured out that you can download the patches. Both of them are identical, so only one is needed. But the patch can't be applied to Qt5 automatically, so you'll have to manually edit the file.

    If you downloaded the "qt-everywhere-src-5.15.2" archive, the file to patch is:

    qtbase/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.h

    Somewhere before the line that says QT_BEGIN_NAMESPACE, insert this line:

    #include <CoreGraphics/CGColorSpace.h>

    Then configure without qtwebengine:

    ./configure -opensource -confirm-license -skip qtwebengine && make -j 8

  • QT-Creator does not start on Fedora 40 (KDE desktop spin)

    Solved
    2
    0 Votes
    2 Posts
    272 Views
    T

    Never mind.

    Via web-search I found people with similar problems and there already seems to be a fix that hasn't made it into public repositories yet. It is expected that qt-creator-13.0.1-2.fc40 will fix this. See discussion at https://discussion.fedoraproject.org/t/qtcreator-internal-error/118325

  • 0 Votes
    2 Posts
    92 Views
    jsulmJ

    @nitingera According to https://doc.qt.io/archives/qt-6.4/supported-platforms.html Qt 6.4 does not support Cenos7 (Red Hat 7).

  • Qt 6.2.6 build on CentOS 7?

    Unsolved
    2
    0 Votes
    2 Posts
    328 Views
    N

    @Jason did you manage to get past this error?
    I am trying to build with devtoolset-10 and have the same issue

  • trying to include RtMidi

    Solved
    9
    0 Votes
    9 Posts
    308 Views
    H

    @SGaist ahja... thanks, done!

  • 0 Votes
    2 Posts
    306 Views
    N

    Solved: I had to add Qt6::DBus like this:

    target_link_libraries(untitledApp PRIVATE Qt6::Core .. .. .. Qt6::DBus )

    in the Projects CMakeLists.txt

  • Qt installation problem

    Moved Unsolved
    2
    0 Votes
    2 Posts
    95 Views
    Pl45m4P

    @Kaluss said in Qt installation problem:

    Any hints with that?

    You will find couple topics on that using the Forum search.

    Try what solved the issue there
    (update/install the xcb lib stuff for your system via package manager)

    https://forum.qt.io/topic/129410/ubuntu-20-04-02-lts-qtcreator-won-t-run-load-xcb-plugin-error
  • 0 Votes
    4 Posts
    184 Views
    B

    Thanks.
    Mirror works.

  • 0 Votes
    2 Posts
    69 Views
    jsulmJ

    @jiny Use another mirror. See "Selecting a mirror for opensource" in https://wiki.qt.io/Online_Installer_4.x

  • How can i upgrade my project from 6.7.0 to 6.7.1

    Unsolved
    2
    0 Votes
    2 Posts
    125 Views
    sierdzioS

    @Sadok_J said in How can i upgrade my project from 6.7.0 to 6.7.1:

    i read online that there's a risk of losing your files so how can i avoid that.

    There is no risk.

    so how can i upgrade it,

    If you are using Qt Creator to compile your project, simply go to Project then select your newly installed kit for Qt 6.7.1. Compile and run - should work.

    If you are compiling from command line, make sure you prepend Qt 6.7.1 to PATH or set up you cmake prefix properly.

  • Dynamic link libraries for linux install

    Unsolved
    2
    0 Votes
    2 Posts
    85 Views
    SGaistS

    Hi,

    When using the online installer, you get Qt development libraries as shared libraries.
    What exactly are you after ?

  • Trouble configuring qt - can't find function _popen

    Unsolved
    11
    0 Votes
    11 Posts
    1k Views
    Y

    It is necessary to change the mingw version according to the table https://wiki.qt.io/MinGW.

  • 0 Votes
    7 Posts
    557 Views
    V

    I found better solution. If you have mingw32, create userenv.lib yourself

    mkdir c:\temp\lib cd c:\temp\lib c:\mingw32\bin\gendef.exe c:\Windows\SysWOW64\userenv.dll c:\mingw32\bin\dlltool.exe -d userenv.def -l userenv.lib
  • Install Qt on Fedora Linux

    Unsolved
    2
    0 Votes
    2 Posts
    5k Views
    jsulmJ

    @JosephH said in Install Qt on Fedora Linux:

    It seems like Fedora is forcing me to install qt with their repository, not doing it properly, and not giving me the chance to use the qt install from qt.io.

    This is of course wrong.
    If you want to use the official Qt Online Installer then download it and install Qt/QtCreator.
    Fedora installed some Qt packages because some software needs Qt to work. It did not install everything because you did not ask it to do so.
    Fedora also provides QtCreator, so install qt-creator.x86_64 if you don't want to use Online Installer.

  • Help for Install

    Unsolved
    2
    0 Votes
    2 Posts
    92 Views
    jsulmJ

    @Niels-Blobel said in Help for Install:

    i need qt 4 crator and not the newest version

    Please explain better what exact version of what you need.
    What Qt version and what QtCreator version do you need?

  • 0 Votes
    7 Posts
    1k Views
    jsulmJ

    @nprobst said in Qt 6.2.4 Cross-Compile Windows Raspberry ARMV8:

    on the host machine

    On the host machine? How would that fix the issue in case of cross compiling? Are you sure you're really cross compiling?