Results 1 to 3 of 3

Thread: Can't build qwt in Windows

  1. #1
    Join Date
    Aug 2009
    Posts
    140
    Thanks
    22
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Can't build qwt in Windows

    Hello,

    I downloaded Qwt to the default directory, C:\Program Files (x86)\Qwt, but when I open the project (qwt.pro) in QtCreator and try to build it, I get this:

    Running build steps for project qwt...
    Starting: C:/Qt/2009.03/qt/bin/qmake.exe C:/Program Files (x86)/Qwt/qwt.pro -spec win32-g++ -r
    Exited with code 0.
    Starting: C:/Qt/2009.03/mingw/bin/mingw32-make.exe -w
    mingw32-make: Entering directory `C:/Program Files (x86)/Qwt'
    C:/Qt/2009.03/mingw/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory `C:/Program Files (x86)/Qwt'
    g++ -c -g -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQWT_DLL -DQWT_MAKEDLL -DQT_THREAD_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -I"..\..\Qt\2009.03\qt\include\QtCore" -I"..\..\Qt\2009.03\qt\include\QtGui" -I"..\..\Qt\2009.03\qt\include" -I"include" -I"..\..\Qt\2009.03\qt\include\ActiveQt" -I"src\moc" -I"..\..\Qt\2009.03\qt\mkspecs\win32-g++" -o src\obj\qwt_autoscl.o src\qwt_autoscl.cpp
    In file included from src\qwt_autoscl.cpp:10:
    include/qwt_math.h: In function `void qwtShiftArray(T*, int, int)':
    include/qwt_math.h:162: error: there are no arguments to `QABS' that depend on a template parameter, so a declaration of `QABS' must be available
    include/qwt_math.h:162: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
    In file included from include/qwt_scldiv.h:14,
    from include/qwt_autoscl.h:14,
    from src\qwt_autoscl.cpp:11:
    include/qwt_array.h:25:23: qmemarray.h: No such file or directory
    In file included from include/qwt_autoscl.h:14,
    from src\qwt_autoscl.cpp:11:
    include/qwt_scldiv.h: At global scope:
    include/qwt_scldiv.h:18: error: `QMemArray' is not a template
    include/qwt_scldiv.h:18: error: explicit instantiation of non-template type `QMemArray'
    include/qwt_scldiv.h:128: error: `QMemArray' is not a template
    include/qwt_scldiv.h:128: error: field `d_majMarks' has incomplete type
    include/qwt_scldiv.h:129: error: `QMemArray' is not a template
    include/qwt_scldiv.h:129: error: field `d_minMarks' has incomplete type
    include/qwt_scldiv.h: In member function `uint QwtScaleDiv::minCnt() const':
    include/qwt_scldiv.h:91: error: `d_minMarks' was not declared in this scope
    include/qwt_scldiv.h:91: warning: unused variable 'd_minMarks'
    include/qwt_scldiv.h: In member function `uint QwtScaleDiv::majCnt() const':
    include/qwt_scldiv.h:96: error: `d_majMarks' was not declared in this scope
    include/qwt_scldiv.h:96: warning: unused variable 'd_majMarks'
    include/qwt_scldiv.h: In member function `double QwtScaleDiv::majMark(int) const':
    include/qwt_scldiv.h:105: error: `d_majMarks' was not declared in this scope
    include/qwt_scldiv.h:105: warning: unused variable 'd_majMarks'
    include/qwt_scldiv.h: In member function `double QwtScaleDiv::minMark(int) const':
    include/qwt_scldiv.h:107: error: `d_minMarks' was not declared in this scope
    include/qwt_scldiv.h:107: warning: unused variable 'd_minMarks'
    In file included from src\qwt_autoscl.cpp:11:
    include/qwt_autoscl.h: At global scope:
    include/qwt_autoscl.h:114: error: `QMemArray' is not a template
    src\qwt_autoscl.cpp:131: error: `QMemArray' is not a template
    src\qwt_autoscl.cpp: In member function `void QwtAutoScale::adjust(const QMemArray&, int)':
    src\qwt_autoscl.cpp:133: error: invalid use of undefined type `const struct QMemArray'
    include/qwt_scldiv.h:18: error: forward declaration of `const struct QMemArray'
    src\qwt_autoscl.cpp:133: error: invalid use of undefined type `const struct QMemArray'
    include/qwt_scldiv.h:18: error: forward declaration of `const struct QMemArray'
    src\qwt_autoscl.cpp: In member function `void QwtAutoScale::adjust(double, double, int)':
    src\qwt_autoscl.cpp:152: error: `QMAX' was not declared in this scope
    src\qwt_autoscl.cpp:153: error: `QMIN' was not declared in this scope
    src\qwt_autoscl.cpp:152: warning: unused variable 'QMAX'
    src\qwt_autoscl.cpp:153: warning: unused variable 'QMIN'
    src\qwt_autoscl.cpp: In member function `void QwtAutoScale::buildLinScale()':
    src\qwt_autoscl.cpp:241: error: `QABS' was not declared in this scope
    src\qwt_autoscl.cpp:241: error: `QMAX' was not declared in this scope
    src\qwt_autoscl.cpp:241: warning: unused variable 'QMAX'
    src\qwt_autoscl.cpp: In member function `void QwtAutoScale::buildLogScale()':
    src\qwt_autoscl.cpp:315: error: `QMAX' was not declared in this scope
    src\qwt_autoscl.cpp:315: warning: unused variable 'QMAX'
    src\qwt_autoscl.cpp:332: error: `QABS' was not declared in this scope
    src\qwt_autoscl.cpp:332: warning: unused variable 'QABS'
    src\qwt_autoscl.cpp: In member function `void QwtAutoScale::setMargins(double, double)':
    src\qwt_autoscl.cpp:463: error: `QMAX' was not declared in this scope
    src\qwt_autoscl.cpp: In member function `void QwtAutoScale::setMaxMajor(int)':
    src\qwt_autoscl.cpp:479: error: `QMAX' was not declared in this scope
    src\qwt_autoscl.cpp:480: error: `QMIN' was not declared in this scope
    src\qwt_autoscl.cpp:479: warning: unused variable 'QMAX'
    src\qwt_autoscl.cpp:480: warning: unused variable 'QMIN'
    src\qwt_autoscl.cpp: In member function `void QwtAutoScale::setMaxMinor(int)':
    src\qwt_autoscl.cpp:491: error: `QMAX' was not declared in this scope
    src\qwt_autoscl.cpp:491: error: `QMIN' was not declared in this scope
    src\qwt_autoscl.cpp:491: warning: unused variable 'QMAX'
    src\qwt_autoscl.cpp:491: warning: unused variable 'QMIN'
    src\qwt_autoscl.cpp: In member function `void QwtAutoScale::setRange(double, double)':
    src\qwt_autoscl.cpp:512: error: `QMIN' was not declared in this scope
    src\qwt_autoscl.cpp:513: error: `QMAX' was not declared in this scope
    src\qwt_autoscl.cpp: In member function `void QwtAutoScale::setReference(double)':
    src\qwt_autoscl.cpp:675: error: `QMIN' was not declared in this scope
    src\qwt_autoscl.cpp:675: warning: unused variable 'QMIN'
    mingw32-make[1]: Leaving directory `C:/Program Files (x86)/Qwt'
    mingw32-make: Leaving directory `C:/Program Files (x86)/Qwt'
    mingw32-make[1]: *** [src/obj/qwt_autoscl.o] Error 1
    mingw32-make: *** [debug] Error 2
    Exited with code 2.
    Error while building project qwt
    When executing build step 'Make'
    This happens although I'm able to build in Ubuntu without problem. (Other problems there, but never mind for now.) Is there something else I need to include/link to?

    Matt

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

    Default Re: Can't build qwt in Windows

    Looks like you are using a Qt3 qmake with Qt4 headers ( or v.v. ).

    Uwe

  3. #3
    Join Date
    Aug 2009
    Posts
    140
    Thanks
    22
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Can't build qwt in Windows

    Uwe,

    Thanks, that was it! The link on the Qwt page took me to a download page that had Qwt 4.2.0 (for Qt3) as the default, so I just reinstalled with 5.2.0.

    But now I get 'This process could not be started!'... Here and in Ubuntu.

    Matt

Similar Threads

  1. QWT fails in debug build
    By steg90 in forum Qwt
    Replies: 1
    Last Post: 11th November 2011, 06:53
  2. Windows / WinCE VS2005 Build Questions
    By yatest5 in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 30th November 2009, 13:23
  3. using Qwt with windows
    By mesman00 in forum Qwt
    Replies: 6
    Last Post: 20th June 2009, 00:45
  4. Problem install qwt on windows
    By kid17 in forum Qwt
    Replies: 5
    Last Post: 3rd December 2008, 12:19
  5. Replies: 10
    Last Post: 25th February 2007, 00:23

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.