Results 1 to 3 of 3

Thread: Qwt 4.2.0 compile problems

  1. #1
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Question Qwt 4.2.0 compile problems

    Hi to all!

    I've downloaded Qwt 4.2.0 and tried to compiled according to steps in its INSTALL file:
    Qt Code:
    1. qmake
    To copy to clipboard, switch view to plain text mode 
    Qt Code:
    1. mingw32-make
    To copy to clipboard, switch view to plain text mode 
    After invokling mingw, i get following errors:
    Qt Code:
    1. C:\Qwt>qmake qwt.pro && mingw32-make
    2. mingw32-make -f Makefile.Debug
    3. mingw32-make[1]: Entering directory `C:/Qwt'
    4. g++ -c -g -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT -
    5. DQT_DLL -DQWT_DLL -DQWT_MAKEDLL -DQT_THREAD_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_C
    6. ORE_LIB -I"..\Qt\2009.03\qt\include\QtCore" -I"..\Qt\2009.03\qt\include\QtGui" -
    7. I"..\Qt\2009.03\qt\include" -I"include" -I"..\Qt\2009.03\qt\include\ActiveQt" -I
    8. "src\moc" -I"..\Qt\2009.03\qt\mkspecs\win32-g++" -o src\obj\qwt_autoscl.o src\qw
    9. t_autoscl.cpp
    10. In file included from src\qwt_autoscl.cpp:10:
    11. include/qwt_math.h: In function `void qwtShiftArray(T*, int, int)':
    12. include/qwt_math.h:162: error: there are no arguments to `QABS' that depend on a
    13. template parameter, so a declaration of `QABS' must be available
    14. include/qwt_math.h:162: error: (if you use `-fpermissive', G++ will accept your
    15. code, but allowing the use of an undeclared name is deprecated)
    16. In file included from include/qwt_scldiv.h:14,
    17. from include/qwt_autoscl.h:14,
    18. from src\qwt_autoscl.cpp:11:
    19. include/qwt_array.h:25:23: qmemarray.h: No such file or directory
    20. In file included from include/qwt_autoscl.h:14,
    21. from src\qwt_autoscl.cpp:11:
    22. include/qwt_scldiv.h: At global scope:
    23. include/qwt_scldiv.h:18: error: `QMemArray' is not a template
    24. include/qwt_scldiv.h:18: error: explicit instantiation of non-template type `QMe
    25. mArray'
    26. include/qwt_scldiv.h:128: error: `QMemArray' is not a template
    27. include/qwt_scldiv.h:128: error: field `d_majMarks' has incomplete type
    28. include/qwt_scldiv.h:129: error: `QMemArray' is not a template
    29. include/qwt_scldiv.h:129: error: field `d_minMarks' has incomplete type
    30. include/qwt_scldiv.h: In member function `uint QwtScaleDiv::minCnt() const':
    31. include/qwt_scldiv.h:91: error: `d_minMarks' was not declared in this scope
    32. include/qwt_scldiv.h:91: warning: unused variable 'd_minMarks'
    33. include/qwt_scldiv.h: In member function `uint QwtScaleDiv::majCnt() const':
    34. include/qwt_scldiv.h:96: error: `d_majMarks' was not declared in this scope
    35. include/qwt_scldiv.h:96: warning: unused variable 'd_majMarks'
    36. include/qwt_scldiv.h: In member function `double QwtScaleDiv::majMark(int) const
    37. ':
    38. include/qwt_scldiv.h:105: error: `d_majMarks' was not declared in this scope
    39. include/qwt_scldiv.h:105: warning: unused variable 'd_majMarks'
    40. include/qwt_scldiv.h: In member function `double QwtScaleDiv::minMark(int) const
    41. ':
    42. include/qwt_scldiv.h:107: error: `d_minMarks' was not declared in this scope
    43. include/qwt_scldiv.h:107: warning: unused variable 'd_minMarks'
    44. In file included from src\qwt_autoscl.cpp:11:
    45. include/qwt_autoscl.h: At global scope:
    46. include/qwt_autoscl.h:114: error: `QMemArray' is not a template
    47. src\qwt_autoscl.cpp:131: error: `QMemArray' is not a template
    48. src\qwt_autoscl.cpp: In member function `void QwtAutoScale::adjust(const QMemArr
    49. ay&, int)':
    50. src\qwt_autoscl.cpp:133: error: invalid use of undefined type `const struct QMem
    51. Array'
    52. include/qwt_scldiv.h:18: error: forward declaration of `const struct QMemArray'
    53. src\qwt_autoscl.cpp:133: error: invalid use of undefined type `const struct QMem
    54. Array'
    55. include/qwt_scldiv.h:18: error: forward declaration of `const struct QMemArray'
    56. src\qwt_autoscl.cpp: In member function `void QwtAutoScale::adjust(double, doubl
    57. e, int)':
    58. src\qwt_autoscl.cpp:152: error: `QMAX' was not declared in this scope
    59. src\qwt_autoscl.cpp:153: error: `QMIN' was not declared in this scope
    60. src\qwt_autoscl.cpp:152: warning: unused variable 'QMAX'
    61. src\qwt_autoscl.cpp:153: warning: unused variable 'QMIN'
    62. src\qwt_autoscl.cpp: In member function `void QwtAutoScale::buildLinScale()':
    63. src\qwt_autoscl.cpp:241: error: `QABS' was not declared in this scope
    64. src\qwt_autoscl.cpp:241: error: `QMAX' was not declared in this scope
    65. src\qwt_autoscl.cpp:241: warning: unused variable 'QMAX'
    66. src\qwt_autoscl.cpp: In member function `void QwtAutoScale::buildLogScale()':
    67. src\qwt_autoscl.cpp:315: error: `QMAX' was not declared in this scope
    68. src\qwt_autoscl.cpp:315: warning: unused variable 'QMAX'
    69. src\qwt_autoscl.cpp:332: error: `QABS' was not declared in this scope
    70. src\qwt_autoscl.cpp:332: warning: unused variable 'QABS'
    71. src\qwt_autoscl.cpp: In member function `void QwtAutoScale::setMargins(double, d
    72. ouble)':
    73. src\qwt_autoscl.cpp:463: error: `QMAX' was not declared in this scope
    74. src\qwt_autoscl.cpp: In member function `void QwtAutoScale::setMaxMajor(int)':
    75. src\qwt_autoscl.cpp:479: error: `QMAX' was not declared in this scope
    76. src\qwt_autoscl.cpp:480: error: `QMIN' was not declared in this scope
    77. src\qwt_autoscl.cpp:479: warning: unused variable 'QMAX'
    78. src\qwt_autoscl.cpp:480: warning: unused variable 'QMIN'
    79. src\qwt_autoscl.cpp: In member function `void QwtAutoScale::setMaxMinor(int)':
    80. src\qwt_autoscl.cpp:491: error: `QMAX' was not declared in this scope
    81. src\qwt_autoscl.cpp:491: error: `QMIN' was not declared in this scope
    82. src\qwt_autoscl.cpp:491: warning: unused variable 'QMAX'
    83. src\qwt_autoscl.cpp:491: warning: unused variable 'QMIN'
    84. src\qwt_autoscl.cpp: In member function `void QwtAutoScale::setRange(double, dou
    85. ble)':
    86. src\qwt_autoscl.cpp:512: error: `QMIN' was not declared in this scope
    87. src\qwt_autoscl.cpp:513: error: `QMAX' was not declared in this scope
    88. src\qwt_autoscl.cpp: In member function `void QwtAutoScale::setReference(double)
    89. ':
    90. src\qwt_autoscl.cpp:675: error: `QMIN' was not declared in this scope
    91. src\qwt_autoscl.cpp:675: warning: unused variable 'QMIN'
    92. mingw32-make[1]: *** [src/obj/qwt_autoscl.o] Error 1
    93. mingw32-make[1]: Leaving directory `C:/Qwt'
    94. mingw32-make: *** [debug] Error 2
    95.  
    96. C:\Qwt>
    To copy to clipboard, switch view to plain text mode 

    What is wrong?
    Qt 5.3 Opensource & Creator 3.1.2

  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: Qwt 4.2.0 compile problems

    Qwt 4.x is many years old and works with Qt3 only.

    Uwe

  3. The following 2 users say thank you to Uwe for this useful post:

    alizadeh91 (4th July 2012), MarkoSan (28th September 2009)

  4. #3
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Qwt 4.2.0 compile problems

    Thanks, I am downloading latest version ....
    Last edited by MarkoSan; 28th September 2009 at 10:42.
    Qt 5.3 Opensource & Creator 3.1.2

Similar Threads

  1. Qwt app compile error
    By ajb in forum Qwt
    Replies: 4
    Last Post: 5th May 2010, 06:42
  2. qtgui4.dll error in visual c++ 2005
    By Comptrol in forum Installation and Deployment
    Replies: 33
    Last Post: 19th June 2008, 07:18
  3. Replies: 1
    Last Post: 7th March 2008, 21:58
  4. Qwt plot problem on compile
    By sincnarf in forum Qwt
    Replies: 2
    Last Post: 14th October 2007, 11:36
  5. Qwt 4.2.0 BUG?
    By munna in forum Qwt
    Replies: 1
    Last Post: 15th March 2006, 08:52

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.