Results 1 to 3 of 3

Thread: nmake Error when build qwt

  1. #1
    Join Date
    Feb 2013
    Location
    Eislingen, Germany
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: nmake Error when build qwt

    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:
    Qt Code:
    1. qwt_wheel.cpp
    2. c:\...\hmi\osal\qt\include\qtgui\../../src/gui/kernel/qwidget.h(1211) : error C
    3. 2146: Syntaxfehler: Fehlendes ':' vor Bezeichner 'slots'
    4. c:\...\hmi\osal\qt\include\qtgui\../../src/gui/kernel/qwidget.h(1221) : error C
    5. 2062: 'void'-Typ unerwartet
    6. c:\...\hmi\osal\qt\include\qtgui\../../src/gui/kernel/qwidget.h(1221) : error C
    7. 2238: Unerwartete(s) Token vor ';'
    8. .\qwt_wheel.cpp(99) : fatal error C1903: Weiterverarbeitung nach vorherigem Fehl
    9. er nicht möglich; Kompilierung wird abgebrochen.
    10. Code wird generiert...
    11. NMAKE : fatal error U1077: "echo": Rückgabe-Code "0x2"
    12. Stop.
    13. NMAKE : fatal error U1077: ""C:\Programme\Microsoft Visual Studio 9.0\VC\BIN\nma
    14. ke.exe"": Rückgabe-Code "0x2"
    15. Stop.
    16. NMAKE : fatal error U1077: "cd": Rückgabe-Code "0x2"
    17. 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:
    Qt Code:
    1. public slots:
    2. ///////////////////////////////////////////////////////////////////////////
    3. // public SLOTS
    4. ///////////////////////////////////////////////////////////////////////////
    5.  
    6. /*! \fn void setNoInput(bool bNoInput);
    7.   * \param bNoInput true = switch on
    8.   *
    9.   * switches noInput mode on / off
    10.   */
    11. 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:
    Qt Code:
    1. QWidget( parent )
    2. {
    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:

    Qt Code:
    1. qwt_scale_widget.cpp
    2. c:\...\hmi\osal\qt\include\qtgui\../../src/gui/kernel/qwidget.h(1211) : error C
    3. 2146: Syntaxfehler: Fehlendes ':' vor Bezeichner 'slots'
    4. c:\...\hmi\osal\qt\include\qtgui\../../src/gui/kernel/qwidget.h(1221) : error C
    5. 2062: 'void'-Typ unerwartet
    6. c:\...\hmi\osal\qt\include\qtgui\../../src/gui/kernel/qwidget.h(1221) : error C
    7. 2238: Unerwartete(s) Token vor ';'
    8. .\qwt_scale_widget.cpp(67) : fatal error C1903: Weiterverarbeitung nach vorherig
    9. em Fehler nicht möglich; Kompilierung wird abgebrochen.
    10. Code wird generiert...
    11. NMAKE : fatal error U1077: "echo": Rückgabe-Code "0x2"
    12. Stop.
    13. NMAKE : fatal error U1077: ""C:\Programme\Microsoft Visual Studio 9.0\VC\BIN\nma
    14. ke.exe"": Rückgabe-Code "0x2"
    15. Stop.
    16. NMAKE : fatal error U1077: "cd": Rückgabe-Code "0x2"
    17. Stop.
    To copy to clipboard, switch view to plain text mode 

    The code in this file is:
    Qt Code:
    1. QWidget( parent )
    2. {
    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.
    Last edited by Jörg Kunath; 18th February 2013 at 14:38.

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

    Default Re: nmake Error when build qwt

    As it seems to be a problem with the slot keyword it might have to do with "CONFIG += no_keywords". See http://doc.qt.digia.com/stable/signa...nals-and-slots

    Uwe

  3. #3
    Join Date
    Feb 2013
    Location
    Eislingen, Germany
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: nmake Error when build qwt

    First thank you for your time and answer Uwe and then i have to apologize. As i found out now, the SDK i have to use has modify Qt files. So at the moment i cant use anything. Still thx for your time reading my bad english

Similar Threads

  1. Qt Creator Cmake is not working properly
    By Tabbu in forum Qt Tools
    Replies: 0
    Last Post: 12th January 2013, 07:38
  2. Nmake crashes with error U1077
    By screeck in forum Installation and Deployment
    Replies: 5
    Last Post: 13th July 2009, 21:25
  3. Qt nmake error - can I continue with build?
    By QPlace in forum Installation and Deployment
    Replies: 0
    Last Post: 7th April 2009, 18:18
  4. nmake error during .pro compiling
    By mattia in forum Installation and Deployment
    Replies: 5
    Last Post: 18th June 2008, 10:15
  5. QT 4.1.3 nmake error
    By vvbkumar in forum Installation and Deployment
    Replies: 1
    Last Post: 21st June 2006, 16:34

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
  •  
Qt is a trademark of The Qt Company.