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
  • 0 Votes
    5 Posts
    5k Views
    oblivioncthO
    Sorry, I hadn't come back to trying this for a while. I was able to get past this by dropping -optimize-size, but ran into other strange issues, primarily where a purely debug build had a bunch of errors and a mixed config build would not create the debug lib files (likely due to the same cause, just the errors didn't show or halt the build for some reason) even though the process appeared to complete successfully. Not having much luck with Qt6 it seems, which is a shame since I'd really like to make use of the upstream changes I submitted for it. Luckily at this point MSVCs internal CMake version has been updated to one that is compatible with Qt6, so the manual replacement is no longer needed. I'm currently trying to build 6.1 and was able to get past the configure step, though I had to disable tests (which this time I wanted to confirm it built correctly) due to QTBUG-88829, so I'll see if I have better luck this time. If the mixed build doesn't work I'll try just a debug one again to see if there are the errors I had before, or if not so that I can compile tests and see what might be failing.
  • Qt 6.1.0 incomplete installation of mqtt library

    Solved
    2
    0 Votes
    2 Posts
    294 Views
    R
    I solved it by compiling the source module code with qt creator and trying to build the library from there. Then I manually copied it into QT_INSTALL_LIBS.
  • 0 Votes
    3 Posts
    3k Views
    A
    Hi author here, Now there's a dedicated guide available to follow for cross-compiling latest QT for any Raspberry Pi Model or Version with mentioned GCC toolchains: https://github.com/abhiTronix/raspberry-pi-cross-compilers/blob/master/QT_build_instructions.md
  • Version control of Qt compiled files

    Unsolved
    4
    0 Votes
    4 Posts
    374 Views
    jsulmJ
    @Nan-Feng said in Version control of Qt compiled files: So is there any way to modify him? Yes, checkout the branch you want to build (git checkout BRANCH_NAME). "When I skip some modules in 5.15.2, will the size of the .exe be reduced a lot?" - no, because with static compilation only libs (in fact only used parts of the libs) which are used by your app are linked into your executable. Don't expect small exe files if you use static libs.
  • Configure command ends with 'ERROR: Unknown command line option ...'

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    SGaistS
    Hi and welcome to devnet, Might be a silly question but did you download the zip or tar.xz archive ?
  • Build Qt6 without X11 dependencies?

    Unsolved qt6 wayland
    2
    0 Votes
    2 Posts
    643 Views
    Christian EhrlicherC
    Just build Qt and don't deploy the xcb plugin (if it is really build).
  • Qt Plugins Error

    Unsolved
    8
    0 Votes
    8 Posts
    2k Views
    SGaistS
    If you do not have an X11 session running, you won't be able to use the xcb plugin. What are you using to show your graphical application ?
  • Installation of Qt4.7 on Debian Buster distribution

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    SGaistS
    Hi, Why not use the Qt 4 version provided by your distribution ?
  • Need help moving from Ubuntu 18.04 LTS to Ubuntu 20.04.2 LTSs

    Solved
    14
    1 Votes
    14 Posts
    1k Views
    JonBJ
    @C-Cubed As suggested before, your issue sound like they come from moving major release Qt4 to Qt5, not poor Ubuntu 18.04 to 20.04, which you keep shouting at! ;-)
  • Qt3D spherical mesh for Earth

    Unsolved
    1
    0 Votes
    1 Posts
    114 Views
    No one has replied
  • Empty unused build folders ...

    Unsolved
    8
    0 Votes
    8 Posts
    1k Views
    ademmlerA
    @SGaist He does Qt since many years ... but he is in many aspects not up to date ;-)
  • iconv.dll missing ...

    Unsolved
    1
    0 Votes
    1 Posts
    225 Views
    No one has replied
  • Building project with 6.0.1 static build error

    Solved
    3
    0 Votes
    3 Posts
    592 Views
    T
    I'm facing the same problem with v6.1.0-beta3. Unfortunately, example project cannot be compiled. I tried to add libQt6PacketProtocol.a but the issue still remains
  • make install error 1ignored

    Unsolved
    4
    0 Votes
    4 Posts
    427 Views
    SGaistS
    You can use sed to modify the relevant lines.
  • Qt5 xcb plugin compilation

    Moved Unsolved
    5
    0 Votes
    5 Posts
    484 Views
    jsulmJ
    @Alex_Kr said in Qt5 xcb plugin compilation: Kubuntu 14 This is a 7 years old distribution without any support (not even security patches)! I would say it's time to upgrade :-)
  • Failed building QT Creator from source

    Unsolved
    1
    0 Votes
    1 Posts
    295 Views
    No one has replied
  • build option disabled and greyed out

    Solved
    3
    0 Votes
    3 Posts
    1k Views
    J
    @SGaist Thank you for your reply. I just checked kits and add cmake path in it. Now it can work. Thank you very much.
  • line: 1: qt quick emulation layer crashed

    Unsolved
    5
    0 Votes
    5 Posts
    692 Views
    B
    The error was due my navigation plugin, so I recommend to check your plugins in case of this error.
  • How to set QT directory as default?

    Solved
    3
    0 Votes
    3 Posts
    446 Views
    J
    @jsulm Thank you a lot. Solved it.
  • Maintenance Tool update fails due to sdktool.exe call

    Solved
    3
    0 Votes
    3 Posts
    863 Views
    SeDiS
    Unfortunately there was no answer. I've then reinstalled from scratch. Anyway, I am marking this as "solved", as it seems works (for) now.