PDA

View Full Version : How can i execute a QT program in another computer? (VC++ Express)



v3n0w
13th June 2007, 23:48
I'm trying to execute my QT aplication in another computer, but it give errors.

How can I do a static release? Or, what dlls of QT I need to put with the VC++ Dlls?

I use qmake, to do the project.

Jimmy2775
13th June 2007, 23:59
I've had similar issues.

Trolltech doesn't document this very well, but they're fixing it:
http://trolltech.com/developer/task-tracker/index_html?id=153760+&method=entry

And you can find more info here: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=164465&SiteID=1

If you're still stuck, try Dependency Walker (http://www.dependencywalker.com/) to see which libraries you're missing.

Hope that helps some...

wysota
13th June 2007, 23:59
Take a look at our wiki (accessible through a link in the header of this page).

v3n0w
14th June 2007, 00:34
I Follow the wiki, and do a 450kb file, the other one has only 8k...

Now i have to test.

Thanks!

v3n0w
14th June 2007, 06:06
Well in fact don't work, by the wiki : "In order for static linking to work, we first need to build Qt itself statically."

So I have to build all the QT again? Forget it.

But, what are the dlls, I have to put with my file to work? Are the same of the libs I use? Like QtCore4.dll... ??

[EDIT] That's it! With the wiki instruction I avoid the VC dlls, and with the Qt dlls the progam works, 2,3mb, for now its good!

Thanks!