PDA

View Full Version : running Qt application on computer without Qt


vonCZ
29th May 2007, 23:58
To simplify things: I used the following .pro file

################################################## ####################
# Automatically generated by qmake (2.01a) Tue May 29 23:32:12 2007
################################################## ####################

TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += .

# Input
HEADERS += dialog.h
SOURCES += dialog.cpp main.cpp

to create a Visual Studio project using qmake (WindowsXP). This is the simple "basic layout" Qt demo that comes with the Qt installation. It compiles/runs fine, but when I copy

basiclayout.exe (release version)
QtCore4.dll
QtGui4.dll

to a directory on another computer that doesn't have Qt installed and try to run it, I get error:

The Application failed to start because the application configuration is incorrect.

What am I missing?

Brandybuck
30th May 2007, 00:10
Is this Visual Studio 2005? If so, you may need to copy over the manifest file as well. (Just a guess). Look at the page on deploying under Windows in assistant for more information.

vonCZ
30th May 2007, 16:36
Thanks Brandybuck, Assistant was helpful. I'm actually using Visual Studio 2005 Express and have discovered from both the Assistant documentation and web searches: deploying Qt (or other) applications built with Express isn't easy. I've gotta put it aside for a few hours now and work on something else, though. Hopefully I'll get it later today.