[Moved] How to deploy a QML and C++ app?



  • Hi, folks, I'm playing with demos/declarative/minehunt on Windows 7, and doing a deployment test.

    All the needed stuff are copied to the app's directory. The directory list as follows:
    @.:
    total 13700
    drwxr-xr-x 3 cai cai 65 Sep 27 09:56 MinehuntCore
    drwxr-xr-x 3 cai cai 17 Sep 27 09:56 Qt
    -rwxrw-r-- 1 cai cai 2278912 Sep 26 11:08 QtCore4.dll
    -rwxrw-r-- 1 cai cai 2186752 Sep 10 20:15 QtDeclarative4.dll
    -rwxrw-r-- 1 cai cai 8151040 Sep 10 19:20 QtGui4.dll
    -rwxrw-r-- 1 cai cai 1283584 Sep 10 19:59 QtScript4.dll
    drwxr-xr-x 2 cai cai 23 Sep 27 09:56 imageformats
    -rwxrw-r-- 1 cai cai 113664 Sep 26 16:12 minehunt.exe
    -rwxrw-r-- 1 cai cai 4179 Sep 10 17:05 minehunt.qml

    ./MinehuntCore:
    total 20
    -rwxrw-r-- 1 cai cai 2520 Sep 10 17:05 Explosion.qml
    -rwxrw-r-- 1 cai cai 4587 Sep 10 17:05 Tile.qml
    drwxr-xr-x 2 cai cai 4096 Sep 27 09:56 pics
    -rwxrw-r-- 1 cai cai 48 Sep 10 17:05 qmldir

    ./MinehuntCore/pics:
    total 112
    -rwxrw-r-- 1 cai cai 30730 Sep 10 17:05 No-Ones-Laughing-3.jpg
    -rwxrw-r-- 1 cai cai 558 Sep 10 17:05 back.png
    -rwxrw-r-- 1 cai cai 284 Sep 10 17:05 bomb-color.png
    -rwxrw-r-- 1 cai cai 535 Sep 10 17:05 bomb.png
    -rwxrw-r-- 1 cai cai 14844 Sep 10 17:05 face-sad.png
    -rwxrw-r-- 1 cai cai 13810 Sep 10 17:05 face-smile-big.png
    -rwxrw-r-- 1 cai cai 15408 Sep 10 17:05 face-smile.png
    -rwxrw-r-- 1 cai cai 219 Sep 10 17:05 flag-color.png
    -rwxrw-r-- 1 cai cai 196 Sep 10 17:05 flag.png
    -rwxrw-r-- 1 cai cai 580 Sep 10 17:05 front.png
    -rwxrw-r-- 1 cai cai 583 Sep 10 17:05 quit.png
    -rwxrw-r-- 1 cai cai 2677 Sep 10 17:05 star.png

    ./Qt:
    total 0
    drwxr-xr-x 3 cai cai 22 Sep 27 09:56 labs

    ./Qt/labs:
    total 0
    drwxr-xr-x 2 cai cai 48 Sep 27 09:56 particles

    ./Qt/labs/particles:
    total 56
    -rwxrw-r-- 1 cai cai 27 Sep 10 17:05 qmldir
    -rwxrw-r-- 1 cai cai 50688 Sep 10 22:12 qmlparticlesplugin.dll

    ./imageformats:
    total 192
    -rwxrw-r-- 1 cai cai 196608 Sep 10 22:09 qjpeg4.dll
    @

    With all above hack, an error of "The application was unable to start correctly (0xc000007b)" was thrown out when running the app.

    If the target host have the Qt 4.7 installed, the app runs ok under the "Qt 4.7.0 Command Prompt".

    Is there something missing?
    Thanks.

    [edit: moved to quick forum / chetankjain]



  • Try to watch the event log. In windows 7 it has been improved and it may point you to what missed.


Log in to reply
 

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