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
  • qt6 in git repo

    Solved
    5
    0 Votes
    5 Posts
    466 Views
    J.HilkJ
    @Kent-Dorfman [image: sheer-fucking-hubris-star-trek.gif]
  • qt.qpa.xcb: could not connect to display :0

    Unsolved
    26
    0 Votes
    26 Posts
    59k Views
    M
    @BertChristiaens I created an account just to say that this is exactly what I was looking for! After hours of sifting through online forums trying to find a solution to this problem, this is the one that worked like a charm! Thank you good sir!
  • Qt failed to install properly on Win7 64bit

    Unsolved
    3
    0 Votes
    3 Posts
    297 Views
    JKSHJ
    Hi, and welcome! @pjones said in Qt failed to install properly on Win7 64bit: What's wrong with your apps? Nothing's wrong with them. The latest Qt Creator is built with Qt 6, which cannot run on Windows 7 as @Christian-Ehrlicher said: https://doc.qt.io/qt-6/supported-platforms.html If you really truly must keep using Windows 7, then you'll need to download an older version of Qt and its tools. Probably Qt Creator 5.0.3.
  • Running Console App On Server Without Sudo Rights

    Unsolved
    2
    0 Votes
    2 Posts
    256 Views
    N
    you can package your application with programs like linuxdeployqt, it bundles shared libraries into a single executable and it will be self contained, so you won't need to install Qt (and other app dependencies) on the server. ./test2: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./test2) It seems something is wrong with your glibc version. try: ldd --version on your machines. Here is what I guess: Your server's glibc is older than your dev machine and as far as I know you should downgrade your dev machine's glibc(probably by downgrading it's OS)
  • qprocess docker problem

    Unsolved
    17
    0 Votes
    17 Posts
    2k Views
    JonBJ
    @noahlopezdev said in qprocess docker problem: ls.start("/usr/bin/sh", QStringList() << "-c" << "/usr/bin/ls / > /tmp/output 2>&1"); This was a NICE idea, but sadly, output is not created :/ That tells us that it did not even start /usr/bin/sh. If it had it would have created the /tmp/output redirection file. Also you never found the sleep process running. The implication is that it cannot successfully spawn the/any child process. I do not know why.
  • 0 Votes
    3 Posts
    794 Views
    R
    Thank you @jsulm now it is worked , i was forgetted to install make tool
  • How to use find_package with Qt6 and modern CMake (Windows)

    Unsolved
    5
    1 Votes
    5 Posts
    22k Views
    kkoehneK
    @Elador said in How to use find_package with Qt6 and modern CMake (Windows): Why does it not work with setting Qt6_DIR? This is a very late reply. Anyhow, for others who run into this, this is a known issue with Qt 6: https://bugreports.qt.io/browse/QTBUG-97615 . The fix for now is to either CMAKE_PREFIX_PATH (either as environment variable, or as CMake cache variable). Or not only set Qt6_DIR, but also Qt6Core_DIR, Qt6Gui_DIR, Qt6Widgets_DIR ...
  • Enf of file QT

    Unsolved
    2
    0 Votes
    2 Posts
    323 Views
    jsulmJ
    @kapabahwuk What shortcut? Please explain better what you want... There is even code showing how to loop over file content until EOF is reached: https://doc.qt.io/qt-6/qfile.html https://doc.qt.io/qt-6/qfiledevice.html#atEnd
  • Installed Qt6 6.3.1 on linux x64 host machine and Qt::Core not found *not resolved*

    Solved
    8
    0 Votes
    8 Posts
    4k Views
    kkoehneK
    @Harlock21 said in Installed Qt6 6.3.1 on linux x64 host machine and Qt::Core not found *not resolved*: however am facing the same issue once again when I am trying to deploy my sample app with the cross compiled qt6 for the arm64 target. Is it really showing the exact same error, or is it that it misses the 'host Qt'? How did you configure the cross-compiled Qt?
  • Speed up QT execution

    Unsolved
    5
    0 Votes
    5 Posts
    429 Views
    J.HilkJ
    @kapabahwuk depending on your compiler, either pump up the spinbox for parallel jobs: [image: dca34f7c-4e74-4d49-aa19-c3c40b0a0f8e.png] or add the argument directly to the make call: [image: 62aa06a3-32fa-48f3-b047-dbfe36f350f5.png] make sure not to exceed the number of your actual CPU cores (virtual, not "real" cores)
  • cannot find -lqwt-qt5 error

    Unsolved
    9
    0 Votes
    9 Posts
    2k Views
    M
    @justdad said in cannot find -lqwt-qt5 error: TARGET = $$qwtLibraryTarget(qwt) The macro for qwtLibraryTarget(xxxxxx) looks quite involved. But your saying I should just change this to TARGET = qt$${QT_VERSION} To match what your project expects, you want a combination of both of those. TARGET = $$qwtLibraryTarget(qwt)-qt$${QT_VERSION) Edit: I think it should be: TARGET = $$qwtLibraryTarget(qwt-qt$${QT_VERSION}) Add a message line to the src.pro file so you can see what it gets set to when qmake is run rather than waiting until it is built: message("Qwt TARGET set to $${TARGET}")
  • Kubuntu 22.04 - Qt Creator 8.0.0-beta2

    Solved
    5
    0 Votes
    5 Posts
    414 Views
    S
    @DavidSchulz said in Kubuntu 22.04 - Qt Creator 8.0.0-beta2: Pre released Qt Creator versions are usually under <Qt install dir>/Tools/Preview/Qt Creator 8.0.0-beta2/bin/qtcreator Thanks!
  • How to build minimum size QtCore without gui?

    Unsolved
    3
    0 Votes
    3 Posts
    303 Views
    jsulmJ
    @Pavel-Romankov said in How to build minimum size QtCore without gui?: When i build QtCore on my host I have a lib with size about 150Mb Sounds like you built in debug mode. Build in release mode.
  • Link error with String::fromWCharArray (Unresolved symbol)

    10
    0 Votes
    10 Posts
    14k Views
    N
    @d_stranz Bro you saved me from hell
  • Qt IFW generate .exe installer on Linux

    Unsolved
    4
    0 Votes
    4 Posts
    460 Views
    SGaistS
    Hi, Just guessing but I would say no. Beside that, did you cross-compile your application for Windows as well ?
  • Qt5.15.5 on Lubuntu 18.04 32-bit

    Solved
    2
    1 Votes
    2 Posts
    427 Views
    JoeCFDJ
    Thank you for sharing. I will have a spin on it as well.
  • 0 Votes
    8 Posts
    808 Views
    jsulmJ
    @HamishSinc said in Error when building Static QT: Module 'qtmqtt' depends on 'qtdeclarative', but building 'qtdeclarative' was explicitly disabled.: What changes would I have to make to the script provided on the wiki in order to output into a separate directory? I don't know this script, so can't comment on that.
  • Build cross Qt library and use in different Desktop

    Unsolved
    3
    1 Votes
    3 Posts
    250 Views
    J
    Thank you for reply @SGaist , we are at a stage and can not change the qt revision. I got a solution for another way by copying and past the QT library and toolchain on the same path on all desktops. Best Regard, Jignesh Patel
  • Project ERROR: Library 'assimp' is not defined.

    Solved
    6
    0 Votes
    6 Posts
    1k Views
    SGaistS
    @jiapei100 said in Project ERROR: Library 'assimp' is not defined.: Problem solved by manually install the newest Assimp . I even found what is the incompatibility, but, it's pointless to point it out. We ONLY need to rebuild and install the newest Assimp. It has NOTHING to do with Qt 5.15.5 ... Well, it would be nice to know for other people that might hit the same issue as you.
  • Could NOT find Qt6WebSockets (missing: Qt6WebSockets_DIR)

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    kkoehneK
    @kkoehne said in Could NOT find Qt6WebSockets (missing: Qt6WebSockets_DIR): This was raised before: https://forum.qt.io/topic/136147/failed-to-build-qt-6-3-0-from-source-on-ubuntu-22-04/3 . https://bugs.launchpad.net/ubuntu/+source/draco/+bug/1958432 might be the upstream bug for this.