PDA

View Full Version : qwt-5.0.2 + qt-4.3.1 with mingw compilation fails



nando
25th August 2007, 23:39
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

Uwe
26th August 2007, 10:33
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

nando
27th August 2007, 09:29
I tried it wit qmake -r but it still failes :confused:

any other ideas???

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

greetings,
nando

nando
27th August 2007, 09:56
i tried it with qt-4.3.0, but the same error!
maybe the problem is in qwt-5.0.2 ???????????

baray98
28th August 2007, 23:12
qwt-5.0.2 won't compile with free Qt you have to have the commercial version of Qt

Uwe
29th August 2007, 10:12
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