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
  • Building Qt 6.6.3 from source on WSL Ubuntu 22.04

    Unsolved
    2
    0 Votes
    2 Posts
    54 Views
    N

    Compiler: GCC 11.04

  • 0 Votes
    1 Posts
    62 Views
    No one has replied
  • Run the application with Debug error with static library

    Unsolved
    11
    0 Votes
    11 Posts
    212 Views
    jsulmJ

    @DQUY05 said in Run the application with Debug error with static library:

    Is there something wrong with the static library add operation

    You're not linking the library which contains tesseract::TessBaseAPI.
    Check the build log for warnings about incompatible library.

  • Linker error in build Qt 5.15 for Windows

    Unsolved
    9
    0 Votes
    9 Posts
    381 Views
    S

    If you still have the old folder where you compiled, it will be a lot faster because make will just skip the things that have already been built. On the other hand, ther might also be some defines which are added, so I'm not entirely sure if this triggers a full rebuild (or should retrigger, but doesn't). You'll only be on the safe side when you do a fresh compile.

  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    13 Views
  • Just installed Qt 6.8 and this happens...

    Unsolved
    3
    0 Votes
    3 Posts
    144 Views
    L

    I found the issue, my brand-new Fedora 41 install didn´t had Mesa and Vulkan developer libraries installed, and Qt generated that totally not-useful error message...

  • Visual Studio 2022 default qt projects refuse to work

    Unsolved
    1
    0 Votes
    1 Posts
    50 Views
    No one has replied
  • 0 Votes
    2 Posts
    81 Views
    hskoglundH

    Hi, using a Qt5 platform plugin for a Qt6 app does not work as you noticed.
    Also mixing Qt 6.8 and 6.4 is a bad idea. If you're out of disk space for installing Qt 6.8, using the default Qt 6.4.2 that comes with Debian 12 is probably your best bet.

  • Boot2qt for Raspberry pi 4

    Unsolved
    9
    0 Votes
    9 Posts
    172 Views
    S

    @jsulm Oke thanks for all the help

  • Commercial sources for 6.8

    Unsolved
    2
    0 Votes
    2 Posts
    91 Views
    Christian EhrlicherC

    You should ask the Qt Company - this is a user driven forum which has nothing to do with any commercial things.

  • Using static Qt for project with MinGW64

    Unsolved
    7
    0 Votes
    7 Posts
    173 Views
    Christian EhrlicherC

    @Umbrecht said in Using static Qt for project with MinGW64:

    C:\msys64

    Don't mix MinGW and MSys.

  • App crashes because of one translation

    Unsolved
    5
    0 Votes
    5 Posts
    133 Views
    S

    It looks a lot like you are on macOS. By default menu entries will be rearranged to their "proper" position on macOS if they match a specific string. "Einfügen" is certainly such a string. And it is a single menu action and not a submenu. I know there is a switch in Qt to turn it off, but I couldn't find it right away.

  • 0 Votes
    2 Posts
    265 Views
    S

    From what I have found out the fancy compositor can either be run

    with the eglfs backend not requiring another running wayland display server using another running wayland display server and attaching to it to run on top of it.

    Note: check what wayland servers are already running and then must create a new one when launching the custom Qt compositor. On the stm32mp1 for example a wayland server 'wayland-0' was started once but is now now working correctly anymore so do not attach to it. We also have a 'wayland-1' server running and a 'wayland-1.lock' in the /home/Weston folder. Therefore you should attach your custom compositor to wayland-1 but not name it wayland-1.

    Either pass it on the command line when starting

    ./fancy-compositor --wayland-socket-name 'nested-compositor'

    Or specify in the QML code

    WaylandCompositor { id: waylandCompositor socketName: "wayland-nested"

    And then for running it use the wayland-1 server

    WAYLAND_DISPLAY=wayland-1
  • Get error in qtdepoly.targets at version 6.6.2 and 6.7

    Unsolved
    4
    0 Votes
    4 Posts
    247 Views
    I

    Also happens in 6.6.3

    // Run windeployqt // --> <PropertyGroup> <Cmd><![CDATA["$(QtToolsPath)\windeployqt.exe"]]></Cmd> <Cmd>$(Cmd) --list target</Cmd> <Cmd>$(Cmd) @(Args->'%(Identity)',' ')</Cmd> <Cmd>$(Cmd) @(PosArgs->'%(Identity)',' ')</Cmd> </PropertyGroup> <Message Importance="high" Text="Qt Deploy: $(Cmd)" /> <Exec Command="$(Cmd) > &quot;$(QtDeployLog)&quot;" EnvironmentVariables="$(QtDeployEnv)" /> <!-- /////////////////////////////////////////////////////////////////////////////////////////////// // Read deploy log into QtDeployed list // --> <ReadLinesFromFile File="$(QtDeployLog)"> <Output TaskParameter="Lines" ItemName="QtDeployed" /> </ReadLinesFromFile> <ItemGroup> <QtDeployed Remove="@(QtDeployed)" Condition="!Exists('%(Fullpath)')"/> </ItemGroup>

    This part in the qtdeploy.targets is the cause.
    Apparently the first few outputs of windeployqt.exe are lines like this:

    Adding in plugin type generic for module: Qt6Gui Adding in plugin type iconengines for module: Qt6Gui ...

    before outputting one .dll/.qm file per line.

    <ItemGroup> <QtDeployed Remove="@(QtDeployed)" Condition="!Exists('%(Fullpath)')"/> </ItemGroup>

    Since this part cant resolve these lines to paths, it throws the error.
    That's the cause, but I'm also not good enough at Visual Studio/Qt magic to work around this.
    Is there a way to inject a step into this targets file to filter the first few lines? Or just skip that step?

    Edit: turns out the "--list target" parameter for windeployqt is specifically there to stop those
    Edit: https://bugreports.qt.io/browse/QTBUG-122257 has been reported and fixed as of 6.8 apparently, so I guess the only fix is going to a newer Qt Version.

  • Building Qt with eglfs and wayland

    Unsolved
    1
    0 Votes
    1 Posts
    70 Views
    No one has replied
  • How to download 5.15? (Open source)

    Unsolved
    22
    0 Votes
    22 Posts
    4k Views
    J

    There is also 5.15.0, 5.15.1 and 5.15.2 versions available from online installer for intel mac users, similarly like for windows and linux. Unfortunately there is no 5.15 binaries for arm macs

  • 0 Votes
    3 Posts
    97 Views
    M

    Okay, I have now built a minimal QtWebengineCore and QtCore app. This also does not run, and I receive no feedback when I call it from the console. However, the environment is suitable for a large QtGui app.

  • Unable to cross compile Qt5.15.13 for Armv7

    Unsolved
    7
    0 Votes
    7 Posts
    182 Views
    V

    I have copied the sysroots directory into my system where Qt compilation environment is set up. Below is the only file available in the sysroots directory.

    tisdk/build/arago-tmp-default-glibc/sysroots/am335x-evm/imgdata/tisdk-default-image.env

    Note: I am using a am335x-evm custom board.

    Please suggest how to include the sysroots directory into the compilation process through command line arguments. Also, let me know what the contents of the sysroots directory should look like.

  • 0 Votes
    6 Posts
    12k Views
    M

    This solves any display related issues from within docker containers
    docker run -it --name $CONTAINER_NAME --network host -e DISPLAY -e TERM -e QT_X11_NO_MITSHM=1 $IMAGE_NAME bash

  • 0 Votes
    4 Posts
    299 Views
    Y

    I am seeing similar if not the same issuing using Qt 6.7.3, the missing files are:

    libunwind.dll libc++.dll

    Copying those files from C:\Qt\6.7.3\llvm-mingw_64\bin fixes it.