Results 1 to 2 of 2

Thread: Qt Configuration Problem?

  1. #1
    Join Date
    May 2007
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy Qt Configuration Problem?

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt Configuration Problem?

    Quote Originally Posted by Ammar View Post
    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.