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
  • deploy qt console app compiled with Ming 32

    Unsolved
    1
    0 Votes
    1 Posts
    141 Views
    No one has replied
  • Silent Installation of Qt 5.14.2 on Windows 10

    Unsolved
    1
    0 Votes
    1 Posts
    286 Views
    No one has replied
  • Qt IFW - remove log file folder

    Unsolved
    12
    0 Votes
    12 Posts
    1k Views
    M
    Checked again with the "echo" line in the batch file. So, I used the following code (so, the log files should be actually removed several times): // Add operations to installing/uninstalling Component.prototype.createOperations = function() { // Use standard operations as well component.createOperations(); // In case of uninstaller, clean up log file directory before removing it if(installer.isUninstaller()) { if(systemInfo.productType == "windows") { component.addOperation("Execute", "erase /s /f /q", Dir.toNativeSparator(installer.value("logFilePath") + "\\*.*")); } component.addOperation("Execute", "cmd", ["/C", "@TargetDir@\removeLogs.bat"]); } if(installer.isInstaller()) { installer.execute("cmd", ["/C", "mkdir", logFilePath]); } if(installer.isUninstaller()) { installer.execute("cmd", ["/C", "@TargetDir@\removeLogs.bat"]); } // Create batch file for removing log files by uninstaller component.addOperation("AppendFile" , "@TargetDir@/removeLogs.bat", "echo \"Executed\" >> C:\\_data\\test.txt\ndel /q " + installer.value("logFilePath") + "\\*.*"); } The batch file was correctly created in the target dir, containing echo "Executed" >> C:\_data\test.txt del /q C:\_data\test\logs\*.* However, the files were not deleted by the uninstaller, nor was C:_data\test.txt written. Before uninstallation, I copied the batch file also to C:_data. After uninstallation, I simply executed the batch file by double-clicking on it from the Win explorer and both the files were successfully deleted as well as C:_data\test.txt written. Did I maybe simply overlook something? Or maybe this simply doesn't work in the createOperations function? Kind regards, Markus
  • isssue in virtual keyboard when build in toolchain of imx8mnevk board

    Unsolved
    2
    0 Votes
    2 Posts
    214 Views
    SGaistS
    Hi, You don't give enough context so I don't know. I don't know if that happens when you build your application for your target. I don't know how you build Qt. I don't know how you installed it in your sysroot. I don't know how you are building your application. I don't know which version of Qt you are using. etc.
  • QtMqtt Installation fatal error: private/qobject_p.h: No such file or directory

    Unsolved
    3
    1 Votes
    3 Posts
    3k Views
    R
    hello @Ashraful how to solve this isssue same error coming
  • Qt IFW - Add folder to the user TargetDir

    Solved
    7
    0 Votes
    7 Posts
    805 Views
    L
    @J-Hilk It helped, you really are the GOD of this world))
  • Qt6 cross compile for Windows

    Solved
    8
    0 Votes
    8 Posts
    5k Views
    NevezN
    hey, i'm getting the same error too. Can you please help me? . I would appreciate if you explain in detail what exactly I need to do.
  • compile qt project error

    Solved
    18
    0 Votes
    18 Posts
    2k Views
    J
    @SGaist Thank you for your reply. Successfully cross-compiled source of 5.7.1: the issue has been resolved by adding the following: After downloading the source and compiling OpenSSL 1.0.2 stable. ./config --prefix=/opt/openssl_build_stable -shared make make test sudo make install Link open ssl in qt config: -openssl -I /opt/openssl_build_stable/include -L /opt/openssl_build_stable/lib Best Regards, Jignesh Patel
  • How to checkout 5.12.8 to add Qtmqtt library

    Locked Unsolved
    2
    0 Votes
    2 Posts
    236 Views
    SGaistS
    Hi, Your question is already being answered in this thread of yours. Please don't open several threads for the same subject. Closing this one.
  • QPSQL driver not loaded (i know, it`s old theme but idk what to do)

    Unsolved
    3
    0 Votes
    3 Posts
    307 Views
    M
    What Postgres DLLs did you include? I would get it working by first just adding the bin folder of your Postgres installation to your PATH environment (and set QT_DEBUG_PLUGINS=1 as @JonB wrote). You can run the Windows Dependency Walker on the libpq.dll file to find out what DLLs in the Postgres bin folder that it needs and then use that list of DLLs when you want to deploy your application.
  • VS 2019 constantly changing Item Type of QT-class-containing header files

    Solved
    3
    0 Votes
    3 Posts
    324 Views
    SGaistS
    Hi and welcome to devnet, This is just an educated guess and by all mean not an explanation: this is done so to avoid useless file processing. There are other ways to trigger moc run, by for example, including the moc generated file at the bottom of the implementation file. This technique is used when you create a QObject based class with the macro in the implementation file. That said, I understand that the behaviour is a bit surprising in your case but you are likely in a corner case that had not been encountered yet. It is likely something related to C++ macro expansion (but it is just a guess). The best way you can help resolve the issue is to check the bug report system and open a ticket explaining what happens and provide a minimal compilable project showing your issue.
  • Qt 6 install difficulties

    Unsolved
    5
    0 Votes
    5 Posts
    662 Views
    B
    Windows 10, Visual Studio 2019 As one of several attempt to install stated that the package was already installed, when it was not, all the Qt stuff was un-installed to start over fresh. However, after the uninstalls and restart, the Windows Apps tool shows QT still remains, and two instances at that. Here is from the Apps section when one of those has been clicked. The other looks the same with the different date. [image: 97a1cef8-3a49-4e8f-950a-b1b9177c1ff9.JPG] When Uninstall is clicked the following is presented. [image: 788dfb5c-81ff-4bfa-8836-fa397ea34f31.JPG] (Edit: I first tried to install everything on D drive, then gave that up and deleted all the Qt stuff on D drive. Was that a fatal and permanent error?") For now, so be it, and try to install. Here is the name of the install utility that was obtained. "C:\Users\bryan\Downloads\qt-vsaddin-msvc2019-2.8.1-rev.06.vsix" It has “msvc” in the name leading to the presumption that it is the correct version. Start it and get this result: [image: eac95fa3-0ab3-4b33-8345-4352499cd9d6.JPG] What can I do to get all Qt stuff uninstalled so I can get the right version installed?
  • Qt Creator of Qt 5.11.0 has Qt6 libs

    Solved
    6
    0 Votes
    6 Posts
    421 Views
    JoeCFDJ
    @JKSH True, I used Online installer. Thanks. Will do it with offline installer.
  • This topic is deleted!

    Solved
    19
    0 Votes
    19 Posts
    67 Views
  • Images for tree branch icons in installer?

    Unsolved
    2
    0 Votes
    2 Posts
    161 Views
    S
    Additional information: I also tried using base64 encoded images which css supports but unfortunately not qss. QTreeView::branch:has-children:!has-siblings:closed, QTreeView::branch:closed:has-children:has-siblings { image: url(data:image/png;base64,iVBORw0K...); }
  • Platform suffix without specifying it in the .pro files

    Solved
    8
    0 Votes
    8 Posts
    733 Views
    G
    Ok thank you. I think I have understood what was the issue. I added with the -l also the final .so Thank you again
  • Error installing qt-everywhere-src-5.15.2 on ubuntu 22.04

    Unsolved
    3
    0 Votes
    3 Posts
    6k Views
    A
    @hskoglund That did it for me, Thanks a lot.
  • I cannot set up Qt/QtCreator for android development. ANDROID_NDK_ROOT problems.

    Solved
    9
    0 Votes
    9 Posts
    5k Views
    JoeCFDJ
    @CodeFan create a very simple gui first. If you use JDK 8, try to create a virtual device as yours with android studio. Then send your app to the virtual device and it is easy to find your problems in qt creator.
  • Error during installation process, can't create clangbackend.exe

    Unsolved
    1
    0 Votes
    1 Posts
    135 Views
    No one has replied
  • QML IMPORT PATH not work.

    Unsolved
    1
    0 Votes
    1 Posts
    181 Views
    No one has replied