How to release a Qt Quick application?



  • I have built a release version of Qt Quick application using Qt Creator on Windows XP. It run great in Qt Creator. But in release folder, If I double click the exe file, a blank window pop up. I have checked the dll it used. All are in the release folder. Using Process Explorer I found comparing to run in Qt Creator, the exe does not load the image dll like: qjpeg4.dll, qico4.dll, qsvg4.dll, and qmng4.dll. But all these files are in the same directory as the exe file. Why the exe can not load these files?



  • they should be in imageformats directory



  • What you mean? I need to create a sub directory called imageformats relative to my exe file folder?



  • Yep and move these libs to this dir.



  • What I want is put evarything in release folder and release the folder to other PC which nol Qt library installed.



  • I have moved to the dll files but still no luck.

    My directory structure is:

    In release/,

    myApp.exe
    QtCore4.dll
    QtDeclarative4.dll
    QtGui4.dll
    QtNetwork4.dll
    QtScript4.dll
    QtSvg4.dll
    QtSql4.dll
    QtXml4.dll
    QtXmlPatterns4.dll

    in release/imageformats

    qgif4.dll
    qico4.dll
    qjpeg4.dll
    qmng4.dll
    qsvg4.dll

    What is wrong?



  • all looks ok. Are you sure your problem is in not-loaded image plugins?



  • I copy the contents of imageformats to plugins/imageformats relative to the exe, and create a qt.conf file.

    Directory structure: @
    app/app.exe
    app/(Qt dlls)
    app/qt.conf
    app/plugins/imageformats/(plugin files)
    @

    qt.conf @
    [Paths]
    Plugins=plugins
    @



  • I tried it but no luck. I use the depends.exe to profile it and found it said can not open wintab32.dll. But I searched my PC and can not find it.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.