Hello togther,
I have tryn to install qwt. in the VS 2008 cmd qmake workes and create, as far i could see, correct MAKEFILES. I have qt4.5.2 as i get qt deliverd into VS by a SDK, which i need to use to create HMI for tool-machine controller.
When i then start nmake, i end with this error:
qwt_wheel.cpp
c:\...\hmi\osal\qt\include\qtgui\../../src/gui/kernel/qwidget.h(1211) : error C
2146: Syntaxfehler: Fehlendes ':' vor Bezeichner 'slots'
c:\...\hmi\osal\qt\include\qtgui\../../src/gui/kernel/qwidget.h(1221) : error C
2062: 'void'-Typ unerwartet
c:\...\hmi\osal\qt\include\qtgui\../../src/gui/kernel/qwidget.h(1221) : error C
2238: Unerwartete(s) Token vor ';'
.\qwt_wheel.cpp(99) : fatal error C1903: Weiterverarbeitung nach vorherigem Fehl
er nicht möglich; Kompilierung wird abgebrochen.
Code wird generiert...
NMAKE : fatal error U1077: "echo": Rückgabe-Code "0x2"
Stop.
NMAKE : fatal error U1077: ""C:\Programme\Microsoft Visual Studio 9.0\VC\BIN\nma
ke.exe"": Rückgabe-Code "0x2"
Stop.
NMAKE : fatal error U1077: "cd": Rückgabe-Code "0x2"
Stop.
qwt_wheel.cpp
c:\...\hmi\osal\qt\include\qtgui\../../src/gui/kernel/qwidget.h(1211) : error C
2146: Syntaxfehler: Fehlendes ':' vor Bezeichner 'slots'
c:\...\hmi\osal\qt\include\qtgui\../../src/gui/kernel/qwidget.h(1221) : error C
2062: 'void'-Typ unerwartet
c:\...\hmi\osal\qt\include\qtgui\../../src/gui/kernel/qwidget.h(1221) : error C
2238: Unerwartete(s) Token vor ';'
.\qwt_wheel.cpp(99) : fatal error C1903: Weiterverarbeitung nach vorherigem Fehl
er nicht möglich; Kompilierung wird abgebrochen.
Code wird generiert...
NMAKE : fatal error U1077: "echo": Rückgabe-Code "0x2"
Stop.
NMAKE : fatal error U1077: ""C:\Programme\Microsoft Visual Studio 9.0\VC\BIN\nma
ke.exe"": Rückgabe-Code "0x2"
Stop.
NMAKE : fatal error U1077: "cd": Rückgabe-Code "0x2"
Stop.
To copy to clipboard, switch view to plain text mode
Sorry for german, the error msg is "Further processing after first failure it is not possible;cancle compile"
As you can see, the msg also include an error in the qwidget.h. The code in the qwidget.h between this lines is:
public slots:
///////////////////////////////////////////////////////////////////////////
// public SLOTS
///////////////////////////////////////////////////////////////////////////
/*! \fn void setNoInput(bool bNoInput);
* \param bNoInput true = switch on
*
* switches noInput mode on / off
*/
void setNoInput(bool bNoInput);
public slots:
///////////////////////////////////////////////////////////////////////////
// public SLOTS
///////////////////////////////////////////////////////////////////////////
/*! \fn void setNoInput(bool bNoInput);
* \param bNoInput true = switch on
*
* switches noInput mode on / off
*/
void setNoInput(bool bNoInput);
To copy to clipboard, switch view to plain text mode
The error msg about qwidget.h come nearly at every .cpp, but with them it seem have no problem and compile without break till it reach that file.
The lines in the qwt_wheel.cpp where it says it faild is:
{
QwtWheel::QwtWheel( QWidget *parent ):
QWidget( parent )
{
To copy to clipboard, switch view to plain text mode
where { is line 99.
When i disable QWT_CONFIG += QwtWidgets i get the same error but in differnt file:
qwt_scale_widget.cpp
c:\...\hmi\osal\qt\include\qtgui\../../src/gui/kernel/qwidget.h(1211) : error C
2146: Syntaxfehler: Fehlendes ':' vor Bezeichner 'slots'
c:\...\hmi\osal\qt\include\qtgui\../../src/gui/kernel/qwidget.h(1221) : error C
2062: 'void'-Typ unerwartet
c:\...\hmi\osal\qt\include\qtgui\../../src/gui/kernel/qwidget.h(1221) : error C
2238: Unerwartete(s) Token vor ';'
.\qwt_scale_widget.cpp(67) : fatal error C1903: Weiterverarbeitung nach vorherig
em Fehler nicht möglich; Kompilierung wird abgebrochen.
Code wird generiert...
NMAKE : fatal error U1077: "echo": Rückgabe-Code "0x2"
Stop.
NMAKE : fatal error U1077: ""C:\Programme\Microsoft Visual Studio 9.0\VC\BIN\nma
ke.exe"": Rückgabe-Code "0x2"
Stop.
NMAKE : fatal error U1077: "cd": Rückgabe-Code "0x2"
Stop.
qwt_scale_widget.cpp
c:\...\hmi\osal\qt\include\qtgui\../../src/gui/kernel/qwidget.h(1211) : error C
2146: Syntaxfehler: Fehlendes ':' vor Bezeichner 'slots'
c:\...\hmi\osal\qt\include\qtgui\../../src/gui/kernel/qwidget.h(1221) : error C
2062: 'void'-Typ unerwartet
c:\...\hmi\osal\qt\include\qtgui\../../src/gui/kernel/qwidget.h(1221) : error C
2238: Unerwartete(s) Token vor ';'
.\qwt_scale_widget.cpp(67) : fatal error C1903: Weiterverarbeitung nach vorherig
em Fehler nicht möglich; Kompilierung wird abgebrochen.
Code wird generiert...
NMAKE : fatal error U1077: "echo": Rückgabe-Code "0x2"
Stop.
NMAKE : fatal error U1077: ""C:\Programme\Microsoft Visual Studio 9.0\VC\BIN\nma
ke.exe"": Rückgabe-Code "0x2"
Stop.
NMAKE : fatal error U1077: "cd": Rückgabe-Code "0x2"
Stop.
To copy to clipboard, switch view to plain text mode
The code in this file is:
{
QwtScaleWidget::QwtScaleWidget( QWidget *parent ):
QWidget( parent )
{
To copy to clipboard, switch view to plain text mode
where as { is line 67.
As you can see, it has in the differnt files the same problem and it seem to have something to do with the QWidget( parent ).
Even when the Qt is installed via the SDK, i can create without problems Qt programmes, which have nothing todo with the SDK it self. So it seem that Qt is installed right and working.
Thx for all answers, if you need more information to help me, please let me know.
Added after 1 51 minutes:
I found a "dirty" solution. I downloaded Qt 4.5.3 and exchanged the qwidget.h. As far i could see, there was no change in this file between 4.5.2 and 4.5.3. now it work. and i can at least compile qwt.dll and qwtd.dll. The question now is...can this file change be critical...i will have to check. THX so far.
Bookmarks