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.6k Topics 50.4k Posts
  • 18 Votes
    1 Posts
    22k Views
    No one has replied
  • 0 Votes
    6 Posts
    114 Views
    GilboonetG

    Well, as I had the same result by using LinuxDeploy (qt.qpa.plugin : Could not find the Qt platform plugin ... ), especially that its Qt plugin didn't detect that my binary uses Qt modules (even if it added all libQt6 .so libraries to its AppDir), I suspect that there's something crucial that I didn't do. So I'm about to reinstall Qt. I uninstalled it, then reboot. Here's my dev machine specs :
    Screenshot_20250302_103324.png

    First think I want to do is upgrade Qt version to 6.8.2 that I'm need to develop my application.

  • Not able to install QT open source on Windows 11

    Unsolved
    7
    0 Votes
    7 Posts
    883 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
    7k 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
    483 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
    460 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
    70 Views
    Tom assoT

    I removed the CMake cache file, and now the project builds properly.

  • How to build and install .qch files? Aborts with errors!

    Unsolved
    3
    0 Votes
    3 Posts
    100 Views
    J

    I downloaded one pre-compiled version of gn, 0.4.1. But the output says: "...but required exact version '6.8.1'.

    The question is: Where can I find a version 6.8.1?
    The link above provides latest version 0.4.1.

  • 0 Votes
    2 Posts
    71 Views
    SGaistS

    Hi,

    Just don't play with LD_LIBRARY_PATH unless you have very good reasons (this one is not).

    Qt Creator is self contained and you are pointing it to a different version of Qt than the one it's bundled with.

    If you modified that variable in your bashrc (or equivalent) you are also forcing all your system's Qt 6 applications to use that version of Qt rather than the one provided by your distribution which is not at good idea either.

  • 0 Votes
    15 Posts
    795 Views
    Christian EhrlicherC

    @Yihua-Liu said in Can't load sql drivers when configuring and building Qt 6.8.1 from source on linux/Ubuntu 24.04.1:

    Then what is the case for oracle qoci? I run

    Why do you want to recompile the complete Qt? Please follow the documentation on how to build a single sql driver: https://doc.qt.io/qt-6/sql-driver.html

  • No longer able to use maintenance tool

    Moved Unsolved
    3
    0 Votes
    3 Posts
    119 Views
    D

    @SGaist - Doesn't sound silly to me at all. About a year ago I worked with Support to consolidate all of my Qt activities under my current email address. I thought that included my installation credentials and I'm pretty sure I have used the Tool several times since they helped me with the address. I have reached out again to see if I missed something then.

    Thanks for your input.

  • 0 Votes
    1 Posts
    58 Views
    No one has replied
  • Failing to macdeployqt

    Unsolved
    8
    0 Votes
    8 Posts
    293 Views
    S

    I am not using CMake myselft. Instead, our deploy step is just a simple script (this might help even if it is not the perfect solution):

    #!/bin/bash echo Delete old application folder. rm -rf MyApp.app echo Copy new application folder. cp -r ../release/MyApp.app ./ install_name_tool -change /usr/local/lib/libomp.dylib @rpath/libomp.dylib MyApp.app/Contents/MacOS/MyApp # our app needs to change the path to this lib mkdir -p MyApp.app/Contents/Frameworks cp libomp.dylib MyApp.app/Contents/Frameworks/ # this is the extra lib we need echo Bundle Qt libs. /Users/Shared/Qt/5.13.2/clang_64/bin/macdeployqt MyApp.app echo Package examples. cp -r examples MyApp.app/Contents/Resources/ echo Create dmg. rm MyApp.dmg bin/create-dmg --volname "MyApp Installer" --background ../src/rc/mac_dmg_background.png --window-pos 200 120 --window-size 598 465 --icon-size 80 --icon MyApp.app 150 330 --hide-extension "MyApp.app" --app-drop-link 450 330 MyApp.dmg MyApp.app echo Done.

    In this example we have to link with the OpenMP dynamic library. This is copied into the app folder. install_name_tool lets you change the path to dynamic libraries. You need to know the original path inside the executable in order to change it. You can look these up using otool on the executable (or was it the app?).

    In the end we are create a dmg image. This has a background image with an arrow pointing from the app icon to the applications folder (--app-drop-link) to suggest the user should just move the app over to the application folder for installation. The image looks something like this:
    2a6fca51-7336-414b-9584-9655b9ab4221-grafik.png
    (You also should have a file named mac_dmg_background@2x.png with double the resolution for Retina displays.)

  • 0 Votes
    12 Posts
    613 Views
    J

    @SGaist Thank you for your help! I found a way to make it work.
    Have a nice day

  • Missing QObject build dependency

    Unsolved
    9
    0 Votes
    9 Posts
    885 Views
    aha_1980A

    I hat such errors appearing suddenly also, and what helped was to put the build directory next to the source directory, not below the source dir as QtCreator does nowadays.

    For me, that was with make projects and Qt 5.15.

    Regards

  • 0 Votes
    4 Posts
    114 Views
    jsulmJ

    @ItsJohn Did you try to run it in debugger to see where it hangs?

  • Multiple SDKs conflict

    Unsolved
    1
    1 Votes
    1 Posts
    52 Views
    No one has replied
  • Building qtwebengine from source fails

    Unsolved
    1
    0 Votes
    1 Posts
    61 Views
    No one has replied
  • 0 Votes
    6 Posts
    2k Views
    S

    Has this problem been solved? I've had the same problem. Cmake Setting says cmake version is not parseable.