PDA

View Full Version : Qt Configuration Problem?



Ammar
17th May 2007, 09:30
Hello Everyone

Hope everyone here will be in good health.;)

I have a couple of questions regarding Qt 4.1.1. I have a opensource version of Qt4.1.1 installed on my system(Windows XP PRO SP2). My questions are

Q1. After installation i write a simple HelloQt 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();
}

When i compiled the above program using latest release of MinGW and Qt 4.1.1, the
following two commands run successfully

qmake -project
qmake hello.pro

but following command produces the error

make

The error message is following

mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `D:/hello'
g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import
-Wl,-enable-runt
ime-pseudo-reloc -Wl,-subsystem,windows -o "debug\hello.exe"
debug\hello.o -L"C
:\Qt\4.1.1\lib" -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\ mingw32\bin\ld.exe:
cannot fin
d -lqtmaind
collect2: ld returned 1 exit status
mingw32-make[1]: *** [debug\hello.exe] Error 1
mingw32-make[1]: Leaving directory `D:/hello'
mingw32-make: *** [debug] Error 2


Q2. What is the purpose of "Build Debug Libraries" option in the start menu.

Q3. Where is the C++ Editor Plugin in the Qt.(in which directory and how to add it???)


Please tell me how to configure Qt4.1.1 step by step. I am in big trouble.

Looking for your kind response.

Best Regards

Muhammad Ammar

wysota
17th May 2007, 09:51
Q2. What is the purpose of "Build Debug Libraries" option in the start menu.
The purpose is to fix your problem from Q1. The compiler just informed you it can't find debug libraries. Either add a CONFIG+=release line to your .pro file and rerun qmake or build debug libraries.


Q3. Where is the C++ Editor Plugin in the Qt.(in which directory and how to add it???)
I'm not aware of any C++ editor plugin in Qt. The only thing that may be close to what you describe is the Visual Studio Integration plugin, but it's unavailable in the Open Source release.