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

Wednesday, April 11th 2012, 4:38pm

problem to run program on Windows 7

Hi.
I have problem with running my application on clean windows 7.

I compile my application on Windows 7 with Qt 4.7.4 MinGW 4.4. On this installation everything works fine but on clean(windows) installation i got this error message. I copy dll`s from mingw forlder (C:\QtSDK\Desktop\Qt\4.7.4\mingw\bin).

Could you help me with this problem?
I have no ideas what is wrong.
I compile this program on debian also and it works.

2

Wednesday, April 11th 2012, 4:46pm

Have you *installed* your program? Or built it from source? If you have just copied it then ... you are missing dlls.


On you clean install, have your properly installed Qt? do examples work?
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

3

Wednesday, April 11th 2012, 4:54pm

I build my program on one machine and copy to other (both with windows 7, copy also dll`s).
In other machine i have no Qt(libraries or SDK) installed.

I check depences with "depency walker" and find no difference.

Maybe i missed some library but how can i check this?

This post has been edited 1 times, last edit by "skoczo" (Apr 11th 2012, 4:59pm)


4

Wednesday, April 11th 2012, 5:30pm

Sorry, you cannot just copy over binaries and expect it to work. You need a proper installation.

It could be you have no, or a mismatch of a c++ redistributable.
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

5

Wednesday, April 11th 2012, 5:34pm

So how can i build application which will work on different windows(xp/7)? I don`t want build code on every machine.

6

Wednesday, April 11th 2012, 5:37pm

you can't. That's why installers exist.
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

7

Wednesday, April 11th 2012, 5:41pm

I wan`t to build application to run from pendrive(no install it everytime).

Maybe i can build with static library and then run on other systems?

8

Wednesday, April 11th 2012, 5:43pm

ms Visual Studio tells me that I need to include:
Microsoft_VC80_DebugCRT_x86.msm
policy_8_0_microsoft_vc80_debugcrt_x86.msm
(as well as some Qt dlls)

for a very simple win32 qt app.
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

9

Wednesday, April 11th 2012, 5:44pm

I wan`t to build application to run from pendrive(no install it everytime).

Maybe i can build with static library and then run on other systems?


yes - you have to rebuild Qt so that it's built as libs not dlls
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

10

Wednesday, April 11th 2012, 6:46pm

Do you know some good tutorial like "how to build qt and qt applications static"?

11

Wednesday, April 11th 2012, 6:49pm

how to build 'static' apps is easy - building static qt libs will need a google. sorry.
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

12

Wednesday, April 11th 2012, 7:06pm

Ok. Thanks for big help :)