June 24, 2011

kathy kathy
Lab Rat
50 posts

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?

8 replies

June 24, 2011

Denis Kormalev Denis Kormalev
Lab Rat
1654 posts

they should be in imageformats directory

June 24, 2011

kathy kathy
Lab Rat
50 posts

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

June 24, 2011

Denis Kormalev Denis Kormalev
Lab Rat
1654 posts

Yep and move these libs to this dir.

June 24, 2011

kathy kathy
Lab Rat
50 posts

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

June 24, 2011

kathy kathy
Lab Rat
50 posts

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?

June 24, 2011

Denis Kormalev Denis Kormalev
Lab Rat
1654 posts

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

June 24, 2011

Bradley Bradley
Lab Rat
314 posts

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

Directory structure:

  1. app/app.exe
  2. app/(Qt dlls)
  3. app/qt.conf
  4. app/plugins/imageformats/(plugin files)

qt.conf

  1. [Paths]
  2. Plugins=plugins

 Signature 

Nokia Certified Qt Specialist.

June 27, 2011

kathy kathy
Lab Rat
50 posts

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.

 
  ‹‹ the listview spend too much time to flick      [SOLVED] Multiple QML targets ››

You must log in to post a reply. Not a member yet? Register here!