Results 1 to 6 of 6

Thread: qwt-5.0.2 + qt-4.3.1 with mingw compilation fails

  1. #1
    Join Date
    Aug 2007
    Location
    Frankfurt / Germany
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default qwt-5.0.2 + qt-4.3.1 with mingw compilation fails

    Hi trying to get qwt-5.0.2 compiled using mingw i get the following error:

    C:\Qt\4.3.1\bin/moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQWT_DLL -DQWT_MAKEDLL -DQT_THREAD_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I'c:/Qt/4.3.1/include/QtCore' -I'c:/Qt/4.3.1/include/QtCore' -I'c:/Qt/4.3.1/include/QtGui' -I'c:/Qt/4.3.1/include/QtGui' -I'c:/Qt/4.3.1/include' -I'c:/Qt/4.3.1/include/ActiveQt' -I'moc' -I'.' -I'c:/Qt/4.3.1/mkspecs/default' -D__GNUC__ -DWIN32 qwt_dyngrid_layout.h -o moc/moc_qwt_dyngrid_layout.cpp
    make[2]: C:Qt4.3.1bin/moc.exe: Command not found
    make[2]: *** [moc/moc_qwt_dyngrid_layout.cpp] Error 127
    make[2]: Leaving directory `/home/nando/downloads/qwt-5.0.2/src'
    make[1]: *** [release] Error 2
    make[1]: Leaving directory `/home/nando/downloads/qwt-5.0.2/src'
    make: *** [sub-src-make_default] Error 2
    but my QTDIR and PATH are set correctly:
    $ echo $QTDIR
    /c/qt/4.3.1
    $ echo $PATH
    /c/qt/4.3.1/bin:. ..............
    and moc can be found:
    $ moc -v
    Qt Meta Object Compiler version 59 (Qt 4.3.1)

    Any ideas ???


    Greetings,
    Nando
    Last edited by jacek; 26th August 2007 at 19:35. Reason: changed [code] to [quote]

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,309
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: qwt-5.0.2 + qt-4.3.1 with mingw compilation fails

    The problem are the wrong (back-)slashes in the path to the moc executable: "C:\Qt\4.3.1\bin/moc.exe".

    With Qt 4.3.0 the support for qmake in the MSYS-shell has been added - but was buggy. (in the meantime set to fixed in the Qt Task Tracker). The workaround is to do a "qmake -r" in the qwt root directory.

    I haven't tried it myself with Qt 4.3.1, but for problems like this, the reason is always because of qmake called from the MSYS-shell and a simple workaround is not to use the MSYS shell.

    HTH,
    Uwe

  3. #3
    Join Date
    Aug 2007
    Location
    Frankfurt / Germany
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qwt-5.0.2 + qt-4.3.1 with mingw compilation fails

    I tried it wit qmake -r but it still failes

    any other ideas???

    otherwise i have to go back to qt-4.3.0.....

    greetings,
    nando

  4. #4
    Join Date
    Aug 2007
    Location
    Frankfurt / Germany
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qwt-5.0.2 + qt-4.3.1 with mingw compilation fails

    i tried it with qt-4.3.0, but the same error!
    maybe the problem is in qwt-5.0.2 ???????????

  5. #5
    Join Date
    Aug 2007
    Posts
    275
    Thanks
    28
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: qwt-5.0.2 + qt-4.3.1 with mingw compilation fails

    qwt-5.0.2 won't compile with free Qt you have to have the commercial version of Qt

  6. #6
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,309
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: qwt-5.0.2 + qt-4.3.1 with mingw compilation fails

    Quote Originally Posted by baray98 View Post
    qwt-5.0.2 won't compile with free Qt you have to have the commercial version of Qt
    Nonsense, Qwt doesn't need a commercial Qt.
    Please don't post, if you have no idea about what you are talking.

    Uwe

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.