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.8k Topics 51.2k Posts
  • Different versions of Qt with different versions of MySQL

    Solved
    8
    0 Votes
    8 Posts
    2k Views
    V
    Ok. So I have found the solution. MySQL 8 replaces my_bool with bool. So if using a previous Qt version (before Qt 12 mostly), simply edit the qsql_mysql.cpp file in the src/plugins/sqldrivers/mysql directory and the following line after the #include statements. typedef bool my_bool Hopefully this helps someone out. Please note this is only required if using MySQL 8 on versions of QT before QT 12. QT 12+ supports native building of plugins for MySQL 8.
  • 0 Votes
    6 Posts
    2k Views
    J
    I found that I can do some configuration in my.cnf file (location: /Users/jarek/.bitnami/stackman/machines/xampp/volumes/root/etc/my.cnf). I have read somewhere that I need to copy it to /etc/my.cnf to have a possibility to change it. So I copied it there. Afterwards I changed the following: socket =/opt/lampp/var/mysql/mysql.sock -->> changed to -->> socket =/Users/jarek/.bitnami/stackman/machines/xampp/volumes/root/var/mysql/mysql.sock and plugin_dir=/opt/lampp/lib/mysql/plugin/ -->> changed to -->> plugin_dir=/Users/jarek/.bitnami/stackman/machines/xampp/volumes/root/lib/mysql/plugin/ Now when I do sudo mysql I have: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/Users/jarek/.bitnami/stackman/machines/xampp/volumes/root/var/mysql/mysql.sock' (61) so it didn't help...
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Enable geoservices_mapboxgl for Windows

    Unsolved mapboxgl
    1
    0 Votes
    1 Posts
    318 Views
    No one has replied
  • opencv2/core.hpp - No such file or directory

    Solved
    5
    0 Votes
    5 Posts
    6k Views
    A
    @SGaist Thank you that was it, thanks a lot
  • Mysql not defined when compiling mysql driver

    Solved
    39
    0 Votes
    39 Posts
    10k Views
    M
    @Thombou very helpful information indeed! :) What if you download those dlls to your exe lib and (there you did it already in the edit I see :p) hehe.. Very good, then you have complied the library successfully! Congratz :)
  • 0 Votes
    2 Posts
    1k Views
    S
    @Sheetal-Deshpande said in Linux application failed to run with error: qt.qpa.plugin: Could not find the Qt platform plugin "windows" in "plugins/platforms/": Hi all, I have built QT 5.14.1 on linux with -qt-xcb flag in configure and when I try to run my application with these QT libs and plugins, I get following error: *****qt.qpa.plugin: Could not find the Qt platform plugin "windows" in "plugins/platforms/" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: eglfs (from plugins/platforms/), linuxfb (from plugins/platforms/), minimal (from plugins/platforms/), minimalegl (from plugins/platforms/), offscreen (from plugins/platforms/), vnc (from plugins/platforms/), webgl (from plugins/platforms/), xcb (from plugins/platforms/), eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, webgl, xcb.** I have set QT_QPA_PLATFORM_PLUGIN_PATH=plugins/platforms/ and placed this folder where my program is. Also I tried setting QT_DEBUG_PLUGINS=1 and ran, but could not find any error, except at the end which gives error as mentioned above. Also I ran ldd for exe, qxcb plugin so, and related so and all dependent libs were present in output. Strange thing is earlier I had built QT 5.13.2 with exact same configuration and same procedure to run the application and I did not get any error. Please suggest if you have any other thing that can be tried out here. Or is there any issue with my build that you suspect? Thanks in advance. Sheetal Update: Issue is resolved. I was adding one windows specific flag in main.cpp for creating qapplication, which was triggering windows plugin look up. So I removed it for linux code and its not giving that error.
  • Installing AVDs

    Unsolved
    16
    0 Votes
    16 Posts
    4k Views
    D
    I know this question is really old, but I like to left this for someone that might face the same problem. The most likely cause of this error is that the "java.exe" in the PATH it's from a JDK or JRE more recent than 1.8. A JDK or JRE 1.8 is required, the solution is to uninstall the JDK or JRE present and install the version1.8 of the JDK, or if like me, you can't do that, install the version1.8 of the JDK in another location and modify the PATH previous to launch QtCreator, something like: SET "PATH=path\to\jdk1.8;%PATH%".
  • installer not working

    Solved
    4
    1 Votes
    4 Posts
    541 Views
    G
    Was just a maintenance going on when I was trying to download. Thanks fellas.
  • Explanation configure options of QT for cross-compiling

    Unsolved
    8
    0 Votes
    8 Posts
    2k Views
    Pablo J. RoginaP
    @ab-90 said in Explanation configure options of QT for cross-compiling: CMake file where I set CMAKE_TOOLCHAIN_FILE variable in order to set C/CXX compiler and Sysroot path. I'm not well versed on CMake, but usually the path for the compiler and the sysroot folder are two different locations the build procedure is looking for that files inside the root of my host PC e not on my sysroot yes, it looks like so it seems you need to modify your CMake file(s) to reflect your environment there is some error in configuration of QT libraries I'd say problem with your build procedure, not the Qt libraries since with a simple hello world C++ program everything work. Do you mean a simple cross-compiled Qt app running Ok on the target device?
  • "Preparing meta information download" takes hours

    Solved
    6
    0 Votes
    6 Posts
    2k Views
    _
    It finally works. I just had to wait approx. 15 minutes, then the download started. The update worked like charm. I tried the maintenance tool again after the update, and now it works fine. Thanks for your help. Ove
  • QT 5.14 build with MySQL Connector C 6.1 Error

    Solved
    2
    0 Votes
    2 Posts
    284 Views
    SGaistS
    Hi and welcome to devnet, Might be a silly question but did you check that the architecture matches ? Did you build from a clean state ?
  • QT Desinger doens't show GUI

    Unsolved
    2
    0 Votes
    2 Posts
    272 Views
    mrjjM
    Hi and welcome to the forums I think its a font issue. like its not finding the fonts. https://forum.qt.io/topic/74357/no-text-in-compiled-application How does QtCreator look ? the same ?
  • How to properly build QT 64 bit version

    Solved
    8
    0 Votes
    8 Posts
    2k Views
    jsulmJ
    @Zelda4 As already explained: the architecture of the installer or the QtCreator IDE are completely unrelated! Why do you care? Use Qt 64bit you installed to build your application and you will get a 64bit app...
  • Download speed is very low

    Unsolved
    3
    0 Votes
    3 Posts
    244 Views
    A
    How to find the mirror site? There isn't any option to set the mirror site in the installer tool.
  • How to build and deploy the CMake project for debugging ?

    Unsolved
    1
    0 Votes
    1 Posts
    170 Views
    No one has replied
  • 0 Votes
    3 Posts
    360 Views
    N
    I see. Thank you for your help!
  • Silent installation of QT 4.6.2 on Windows 10

    Unsolved
    3
    0 Votes
    3 Posts
    617 Views
    I
    @sierdzio said in Silent installation of QT 4.6.2 on Windows 10: windeployqt Thank you for the fast and informative replay. This is a small project that we support and we are trying to change as little as possible. It totally slipped from my mind that for deployment machines, I just need the DLLs. Will definitely check that!
  • 0 Votes
    10 Posts
    3k Views
    O
    @jsulm Uhmm now I'm starting to understand why @sierdzio told me this is not easy. I will do some google search on this subject, thanks for guidance.
  • module "Qt.labs.platform" is not installed, macdeployqt not copy qt/labs/platform?

    Solved
    3
    0 Votes
    3 Posts
    3k Views
    C
    thanks. change: -qmldir=/Users/username/myproject/trytodolist/ It works fine.