You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, June 21st 2010, 2:24am

Beginner Question on deploying Qt Applications.

Hi,
I have created a small application in Qt (using Qt designer) and want to run it on another machine, but when I run it, I get error messages like mingwn10.dll is missing.
I know the application needs the Qt runtime, but I have not clue how to install it on the other machine.

Is it enough to copy those missing dlls to the other machine? They are large dlls and I don't think it is neccassry to copy them all only to run a programm smaller than 100 KB.

Please give me some clues, because I am an absolute beginner.
Thanks in advance. ?(

huangxinhao

Beginner

  • "huangxinhao" is male

Posts: 5

Location: Hangzhou, China

Occupation: Programmer

  • Send private message

2

Monday, June 21st 2010, 3:28am

It is easy to make a release for windows

just find missing dlls in qt folder, and ship them with your exe file. And you will be asked for more DLLs :-)

This post has been edited 2 times, last edit by "huangxinhao" (Jun 21st 2010, 4:48am)


3

Monday, June 21st 2010, 11:02am

Really?
If that is the solution, the I should say Qt is not efficient at all!
Having to copy several large dlls to run only a small application is not efficient at all.
At least there should be another way to launch those dlls, such as a single exe file or something like that.

Thanks for your reply!
?(

slevon

Trainee

Posts: 89

Location: Germany

Occupation: electrical engineer

  • Send private message

4

Monday, June 21st 2010, 12:54pm

Hi,
huangxinhao mentioned the easiest way out, due to you said you are a beginner. If you want to deliver your application without copying the dlls (wich is much smaller solution than .net-Framework by the way) you have two more choices:
1) you can use a installer-tool to check if there are QT-Dlls installed on your target machine and install the DLL only if they are needed.
2) use Google to find out how Qt-Applications are built 'staticly' :
example: http://doc.qt.nokia.com/4.1/deployment-w…g-qt-statically

hope this help,
slevon

This post has been edited 1 times, last edit by "slevon" (Jun 21st 2010, 2:29pm)


5

Monday, June 21st 2010, 3:15pm


Hi,
huangxinhao mentioned the easiest way out, due to you said you are a beginner. If you want to deliver your application without copying the dlls (wich is much smaller solution than .net-Framework by the way) you have two more choices:
1) you can use a installer-tool to check if there are QT-Dlls installed on your target machine and install the DLL only if they are needed.
2) use Google to find out how Qt-Applications are built 'staticly' :
example: http://doc.qt.nokia.com/4.1/deployment-w…g-qt-statically

hope this help,
slevon
Hi,
Thanks for your reply. I will give it a try, and see what happens.
Thanks again!
^^