Results 1 to 8 of 8

Thread: Can't find QtDesignerd4: Problem Compiling Qide

  1. #1
    Join Date
    Jan 2006
    Posts
    52
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Can't find QtDesignerd4: Problem Compiling Qide

    Hi

    Everytime I try to compile Qide (talked about in the QT Software Section of the forum), I get the following error message:

    mingw32-make[2]: Entering directory `I:/code/QIde-0.15/lineedithistoplugin'
    g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -shared -Wl,--out-implib,debug\liblineedithistoplugin.a -o debug\lineedithistoplugin.dll" debug\lineedithisto.o debug\lineedithistoplugin.o debug\moc_lineedithisto.o debug\moc_lineedithistoplugin.o -L"c:\Qt\4.1.4\lib" -lQtGuid4 -lQ
    tCored4 -lQtDesignerd4
    C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\ mingw32\bin\ld.exe: cannot find -lQtDesignerd4
    collect2: ld returned 1 exit status
    mingw32-make[2]: *** [debug\lineedithistoplugin.dll] Error 1

    I'm using QT 4.1.4 OS Edition configured for Debug. Windows XP and minGW.

    What it seemed to me is that the linker can't find lQtDesignerd4, which must be the debug version of lQtDesigner4. I have looked under the "c:\Qt\4.1.4\lib" directory but couldn't find any file named libQtDesignerd4.dll. Or maybe it is some other problem?

    Thanks.

  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: Can't find QtDesignerd4: Problem Compiling Qide

    That's exactly the problem you described. If you compile in release mode instead of debug, it should link fine. Alternatively you might want to compile the designer library in debug mode.

  3. #3
    Join Date
    Jan 2006
    Posts
    52
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Can't find QtDesignerd4: Problem Compiling Qide

    Thanks for replying wysota.

    Maybe I didn't explain myself too well. Sorry. First I tried to compile Qide in release mode, but when it came to the lineedithistoplugin gcc output an error: "cannot find -lQtGuid4". So I thought it's because I have to compile this plugin in debug mode. I ran the "build debug libraries" option. All went well. but when I ran make again on the plugin I got the "cannot find -lQtDesignerd4" error.

    Another Problem I started running into (after compiling Qt in debug mode): when I try to compile the code from the "programming gui with qt 4" book, I get many errors about multiply definitions of functions in moc generated files.

    I should also add that while I'm proficient with c++, and has programmed c++ before, this is my first foray into the minGW-make and gcc business. all this stuff with make has gotten me confused. I'm rather relying on qmake to produce correct make files.

    dave

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Can't find QtDesignerd4: Problem Compiling Qide

    Quote Originally Posted by dave
    Another Problem I started running into (after compiling Qt in debug mode): when I try to compile the code from the "programming gui with qt 4" book, I get many errors about multiply definitions of functions in moc generated files.
    I guess you ran "qmake -project" too many times (you should do it at most once per project). Check whether your .pro doesn't contain too many entries in HEADERS and SOURCES variables.

  5. The following user says thank you to jacek for this useful post:

    dave (27th July 2006)

  6. #5
    Join Date
    Jan 2006
    Posts
    52
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Can't find QtDesignerd4: Problem Compiling Qide

    Wow. Thanks jacek. That was the problem. the header file was add twice. Didn't know running qmake -project more than once matters....

    The is still the problem with qide. Anyone tried to compile the last version 0.15? Shouldn't the file QtDesignerd4 be compile by "build debug libraries" option in the Qt menu?

    Any help appreciated.

  7. #6
    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: Can't find QtDesignerd4: Problem Compiling Qide

    Quote Originally Posted by dave
    Didn't know running qmake -project more than once matters....
    If you want to avoid such problems in future, be sure to run (n)make clean before running qmake -project again. This will delete all the intermediate files including moc and uic generated ones (one of which probably caused you problems).

  8. #7
    Join Date
    Jan 2006
    Posts
    52
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Can't find QtDesignerd4: Problem Compiling Qide

    Well, you were right wysota. Turn out even though I first compile the whole project in release. the pro file inside lineedithistoplugin still defined config += debug. Changed it to release and everything works.
    Stll can't find qtdesignerd4.lib. But now my interest is only academic. Till the next time...

    Thanks

  9. #8
    Join Date
    Jan 2006
    Posts
    156
    Thanked 12 Times in 12 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Can't find QtDesignerd4: Problem Compiling Qide

    Indeed, I left "debug" in the project file.
    QDevelop, an complete Integrated Development Environment for Qt 4: http://qdevelop.org

Similar Threads

  1. Replies: 10
    Last Post: 28th April 2006, 15:48

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.