
Originally Posted by
pallavi Boyapat
and if i am trying to run the application it is giving me the same error message.
"The application has failed to start because the application configuration is incorrect".
Let's see step by step, how we must make project. Make some source in some test dir ($DIR).
(in your favourite text editor)
main.cpp
#include<QApplication>
#include<QMainWindow>
int main (int argc,char ** argv) {
QObject::connect(&qapp,
SIGNAL(lastWindowClosed
()),
&qapp,
SLOT(quit
()));
wnd.show();
return qapp.exec();
}
#include<QApplication>
#include<QMainWindow>
int main (int argc,char ** argv) {
QApplication qapp(argc,argv);
QObject::connect(&qapp,SIGNAL(lastWindowClosed()),&qapp,SLOT(quit()));
QMainWindow wnd;
wnd.show();
return qapp.exec();
}
To copy to clipboard, switch view to plain text mode
Then, open VSC++ console: Start->Programms->Microsoft Visual Studio 2005->Visual Studio Tools->Visual Studio 2005 Command Prompt
CD to directory, where main.cpp are stored. run
> qmake -project
> qmake
> nmake
If compilation proccess finished without errors, in $DIR\release directory you may see a programm with a name of last component of your dir (ie: for d:\projects\test it would be a test.exe)
Then, copy to release dir some dll's:
1) QtCore4.dll
2) QtGui4.dll
3)Microsoft.VC80.CRT.manifest
4)msvcp80.dll
5)msvcr80.dll
6)msvcm80.dll
Try to launch exe.
add other qt libs if launsh finised with error in non-reached dll's (name of dll you can see in error message).
Bookmarks