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.3k Posts
  • 18 Votes
    1 Posts
    22k Views
    No one has replied
  • 0 Votes
    1 Posts
    18 Views
    No one has replied
  • Failing to macdeployqt

    Unsolved
    8
    0 Votes
    8 Posts
    201 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
    473 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
    763 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
    65 Views
    I

    This issue still bothered me so I looked into it further. I created a debug build for testing and got my hands on the pdb files, and upon further inspection it seems to get stuck at "Q_GLOBAL_STATIC(QLibrarySettings, qt_library_settings)" in the qlibraryinfo.cpp file.

    36f02a4d-c060-4120-8649-d37ac62943d3-image.png

  • Multiple SDKs conflict

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

    Unsolved
    1
    0 Votes
    1 Posts
    26 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.

  • Installer inline for Windows 10

    Moved Unsolved
    2
    0 Votes
    2 Posts
    38 Views
    G

    I dont connect to https://download.qt.io/.
    How to fix it?

  • How to deploy Android environment on Qt?

    Unsolved
    3
    0 Votes
    3 Posts
    67 Views
    X

    a14f42b6-4a58-47d5-b84b-b9fc8fe3efe6-image.png
    643f54c4-e238-4fcd-90aa-4e4b6716609a-image.png
    2b3967f7-51e4-47d9-b0cc-a277b60f50be-image.png
    e40e91ae-3ad1-48dd-a9c2-5754d4de1f84-image.png
    Would it be all right?I need your help.
    Thank you very much for your reply.

  • Qt online installer for arm64 gives me an error on my Pi5

    Unsolved
    16
    0 Votes
    16 Posts
    393 Views
    SGaistS

    And you open a new can of worm: what do you do when bugs (especially security issues) are found in glibc ?

  • Issue migrate Qt5.15.11 compiled in static to dynamic

    Unsolved
    3
    0 Votes
    3 Posts
    59 Views
    D

    Yes it return a valid pointer

    qDebug() << selectionModel(); output QItemSelectionModel(0x6e39580) qDebug() << selectionModel()->model(); output QSortFilterProxyModel(0x6e34008) Debug Assertion Failed!

    From the stack trace, I deduce that errors occur when the QModelIndex is removed

    Capture d’écran 2025-02-13 150154.png

    I'm not sure if this helps, but when I manually set the selectedIndex to (0, 0), the error doesn't occur.

  • QT Creator opensource Win64 installer crash

    Unsolved
    2
    0 Votes
    2 Posts
    75 Views
    hskoglundH

    Just guessing: try disabling your anti-virus.

  • Modern version of linux with Qtv3.3.8.

    Unsolved
    8
    0 Votes
    8 Posts
    245 Views
    J.HilkJ

    I have no idea, based on quick googling I would suggest CentOS 7 apparently the last one that shipped with qt3 bindings?

  • 0 Votes
    2 Posts
    83 Views
    SGaistS

    Hi,

    You should rather bring this question to the development mailing list. You'll find there Qt developers/maintainers. This forum is more user oriented.

  • 0 Votes
    3 Posts
    123 Views
    P

    Wel, the probleim is found... MinGW should literally POISON your PATH env variable otherwise it will fail to run GCC itself...

  • 0 Votes
    11 Posts
    4k Views
    jsulmJ

    @VamsiDev said in Online installer SSL handshake fail:

    in linux how we can fix mirrors in linux can give me a solution to fix this

    Like shown in the link posted in this thread: https://wiki.qt.io/Online_Installer_4.x#Selecting_a_mirror_for_opensource

  • install qt6.8.1 opensource in linuxmint 22.1

    Solved
    7
    0 Votes
    7 Posts
    254 Views
    H

    @jsulm i install all the dependencies and then excute configure again and solve my problem.
    thanks bro

  • problem deploying qt app with camera

    Solved
    10
    0 Votes
    10 Posts
    291 Views
    QtFriend2024Q

    @SGaist Hello, I switched to using OpenCV lib and a USB Camera instead of a CSI (Camera Serial Interface) Camera. I am able to build and run the application but it's a plain C++ application. I'll work on this more....