did you try to build Qt's examples?
did you try to build Qt's examples?
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Spirit,
I am trying to compile this simple code:
#include <QApplication>
#include <QLabel>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel *label = new QLabel("Hello Qt!");
label->show();
return app.exec();
}
this simple application is not compiling then how can i expect examples will compile properly.
so, I would like to know: did you build Qt manually or installed already built Qt?
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
I have not understood ur question properly.what i did is i uninstalled previously installed qt and again i installed qt in "F" directory by specifying MinGw path in sam "F" directory only.as i am windows user simply followed the instructions which i got after double clicking the qt software.
got it. so, try to build Qt by yourself using Qt's configure tool.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
how to do that?
Can u specify steps involved on that configuration?
read this and also INSTALL file in QTDIR.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
i just configured qt and tried again by compiling application,still problem not rectified.
do mingw32-make clean and then repeat configure process.
and also check your QTDIR, QMAKESPEC, INCLUDE, LIB and PATH variable they mast containt correct values.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
How to do mingw-32-make clean?
I think these r the steps i need to follow:
After open the Qt command prompt, i just need to enter "mingw-32-make clean".
once the above step has been finished i have to give "configure" again.
Am i correct spirit or is there any thing else?
yes, this should be enough.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
I have done what u mentioned in ur last post spirit.
These are my directories setting to the paths:
Setting up a MinGW/Qt only environment...
-- QTDIR set to F:\Qt\4.4.3
-- PATH set to F:\Qt\4.4.3\bin
-- Adding F:\MinGW\bin to PATH
-- Adding C:\WINDOWS\System32 to PATH
-- QMAKESPEC set to win32-g++
still the example is not compiling?
note: while configuring my qt, i got on pop up from my system that states qmake.exe file is corrupted and it is unreadable. What does it mean.
As u told i am installing my QT on "F" directory.
Bookmarks