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
  • How to set TargetDir to ProgramFiles? [SOLVED]

    5
    0 Votes
    5 Posts
    7k Views
    A
    @Prezes are you referring to QDir? This post is about scripts in Qt Installers. Are you trying to access Program Files x64 in Qt or Qt Installer? Note: "Program Files x64" in 64 bit Windows is actually named just "Program Files" and it does not exist at all in 32-bit. So if you are trying to do this in Qt Installer Framework then my solution in this post also applies to you :)
  • Cannot find a running Bluez

    Unsolved
    4
    0 Votes
    4 Posts
    3k Views
    SGaistS
    Since you're using Ubuntu either use the apt-get command or the package manager
  • Building Qt from source on Windows

    build source windows 7
    8
    0 Votes
    8 Posts
    8k Views
    J
    Hi @JKSH, @Leonardo, Many thanks for your tips and apologies for delay. I got distracted by another task, but will get back to this one again. Just to report what happened so far. All my attempts on one machine failed. Switching to another computer I managed to to statically build Qt and Qt Creator once (using your receipts), but failed to reproduce that again. I'm putting all this down to my inexperience on Windows platform. However, I have learnt a lot and I'll get back to this problem again. BTW, working with VS is not as scary as it originally looked :-). Once I managed to install it, that is. The installation of VS was a pain as due to my inexperience and some bugs. E.g. installing VS via RDC produces a transparent window - I waiting for hours for something to happen, then tried another version of VS, ... Best, J.
  • Exporting QT project in Visual studio.

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    jsulmJ
    You need to provide all needed Qt DLLs with your program, else it will not work. See here: http://doc.qt.io/qt-5/windows-deployment.html#the-windows-deployment-tool
  • Installing and setting up for use with cloud 9 ide

    Unsolved cloud 9 c9.io cloud ide ubuntu vm
    2
    0 Votes
    2 Posts
    2k Views
    SGaistS
    Hi and welcome to devnet, A VM is not a problem, you can install and do Qt 5 development on e.g. VirtualBox, VMWare or Parallels without any problem. However, it's not sure that Cloud9 provides an X server which is needed to use the xcb plugin. You should check with the Cloud9 people about that.
  • MySql Deploy App....HELP!!

    Unsolved
    28
    0 Votes
    28 Posts
    9k Views
    hskoglundH
    Yeah I've seen that, usually occurs because you have global/static variables with QDatabase contents or similar. If you have, move them to your MainWindow class. Qt and global variables do not mix well :-)
  • 0 Votes
    24 Posts
    13k Views
    JKSHJ
    @selster said: I can now build and run some example project !!! Great! However, if I try to run the example "fancybrowser", I get build errors like: Warnings while parsing QML type information of C:/Qt/5.5/mingw492_32/qml/QtPositioning: C:\Qt\5.5\mingw492_32\qml\QtPositioning\plugins.qmltypes:1:24: Reading only version 1.1 parts. C:\Qt\5.5\mingw492_32\qml\QtPositioning\plugins.qmltypes:10:5: Expected only Component and ModuleApi object definitions. I recommend you start with simpler examples. The browser is quite complex; I don't fully understand it myself so I can't help you with those warning messages. See http://doc.qt.io/qt-5/gettingstartedqt.html
  • could not find or load the Qt platform plugin "cocoa".

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    B
    qt.conf is a run time configuration file used by the Qt framework libraries, one of the configuration items is the location of the Qt plugins. You do not access the qt.conf file, you provide it to tell Qt where to find its plugins. As SGaist says above macdeplyqt is a tool that works with qmake to make a package suitable for deployment on OS X.
  • Visual Studio 2015 + Qt 5.6.0 alpha

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    Chris KawaC
    So if i run VS2015 with qt-everywhere-opensource-src-5.5.0-rc i should be happy? No, definitely don't do that. "-src-5.5.0-rc" means source code of release candidate of Qt 5.5.0. First of all we're at 5.5.1 version now so there's no point in using a release candidate version of 5.5.0. Second - it's a source package. It means you need to build it for your compiler first.
  • 0 Votes
    5 Posts
    3k Views
    K
    @Chris-Kawa Thank you very much.
  • Compiled application don't find QML elements

    17
    1 Votes
    17 Posts
    18k Views
    M
    @Alicemirror Though too late reply yet worth posting. If qrc is not used then Absolute path of qml file like "/home/manoj/QT/qmlFileDemo/main.qml" can solve the problem.
  • 0 Votes
    3 Posts
    3k Views
    V
    Finally I used a similar library in server side. pHash library wasn't compatible with Qt5
  • Error: undefined reference to QQuickRectangle::QQuickRectangle(QQuickItem*)

    Unsolved
    2
    0 Votes
    2 Posts
    983 Views
    M
    Hi, without those qml/javascript stuffs that could slows down the app, have you proof of that? Best practice is to write your code; test profile and then optimize slow parts. In .pro file i have: QT += quick quick-private core-private gui-private declarative-private qml-private and in .cpp file - #include <private/qquickrectangle_p.h> you're using private classes that are not exposed in the public libraries
  • Error deploying QT5.4.1 in windows x86

    Unsolved
    8
    0 Votes
    8 Posts
    2k Views
    hskoglundH
    Good to hear. Just want to add, most of the big wheel programs that are built on Qt, usually are linked/built statically, which means no dlls will conflict for a scenario like yours. I'm guessing, but if you're adding a plugin to perhaps VLC?, then all of their Qt stuff (including their own qwindows.dll and qt.conf etc.) are linked together into one humongous 12 MB file (C:\Program Files (x86)\VideoLAN\VLC\plugins\gui\libqt4_plugin.dll) so the double dll syndrome never occurs :-)
  • How to use translate using control script

    Unsolved
    1
    0 Votes
    1 Posts
    446 Views
    No one has replied
  • QT 5.4.1 msvc2012_x64

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    G
    found it here! http://sourceforge.net/projects/qt64ng/
  • 5.5.0 build error on RPi2

    3
    0 Votes
    3 Posts
    1k Views
    J
    I got this problem when I configured, installed xcb, reconfigured, and then make'd. Doing a clean out-of-source build worked for me.
  • Building Qt 5.5.0 enterprise static on Linux, can't find xcb plugin at runtime

    Unsolved
    23
    0 Votes
    23 Posts
    7k Views
    SGaistS
    The doc shows an example that makes use of QMAKE_HOST.arch with the win32-g++ scope. Just remove that scope and it should work.
  • No valid kits found, although a kit exists

    Unsolved qt 5.2.1 kit options
    10
    0 Votes
    10 Posts
    8k Views
    JKSHJ
    @AlaaM said: Are you talking about this: run sudo apt-get install libqt4-dev ? No, that's Qt 4. @SGaist suggested that you install Qt 5. @AlaaM said: No, there's no warning icon next to the kit: http://i.stack.imgur.com/1H1TX.png Hmm, the kit looks ok. Can you describe exactly what kind of project you're trying to create, when you got the "No valid kits" error message? @AlaaM said: Yes, there is a yellow warning. Please see this image: http://i.stack.imgur.com/gohot.png This image tells me that you manually added Qt 5.2.1 to Qt Creator. Do you remember where you got this copy of Qt 5.2.1? I installed Qt from here: download.qt.io/official_releases/qtcreator/3.5/3.5.1/qt-creator-opensource-linux-x86_64-3.5.1.run Like @SGaist said, that's the Qt Creator IDE. I recommend you uninstall that, and install the Qt library instead: http://download.qt.io/official_releases/qt/5.5/5.5.1/ (this installer also includes Qt Creator)
  • What have I to do, to use doxygen in qt?

    Unsolved
    3
    0 Votes
    3 Posts
    802 Views
    A
    @SGaist The instruction on the mentioned website are so confusing. Is there somebody who allready handled this or who can offering a good instruction?