Results 1 to 6 of 6

Thread: Qwt installation on Windows 7

  1. #1
    Join Date
    May 2012
    Posts
    99
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Question Re: Qwt installation on Windows 7

    Hi,

    I've downloaded the qwt-4.2.0-setup-qt230nc.exe executable file and I've installed it. Then I've downloaded the latest version of MinGW and finally I've installed Qt 5.0.1 with Qt Creator 2.6.2 for Windows (MinGW).

    Later I've opened a command line, cmd, and I've put this commands:

    cd "Program Files (x86)\Qwt"
    path C:\Qt\Qt5.0.1\5.0.1\mingw47_32\bin
    qmake qwt.pro
    path C:\MinGW\bin
    mingw32-make


    and I get this output:

    Qt Code:
    1. mingw32-make -f Makefile.Release
    2. mingw32-make[1]: Entering directory `C:/Program Files (x86)/Qwt'
    3. g++ -c -pipe -fno-keep-inline-dllexport -O2 -Wall -Wextra -frtti -fexceptions -m
    4. threads -DUNICODE -DQT_DLL -DQWT_DLL -DQWT_MAKEDLL -DQT_NO_DEBUG -DQT_GUI_LIB -D
    5. QT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I. -I"include" -I"..\..\Qt\
    6. Qt5.0.1\5.0.1\mingw47_32\include" -I"..\..\Qt\Qt5.0.1\5.0.1\mingw47_32\include\Q
    7. tGui" -I"..\..\Qt\Qt5.0.1\5.0.1\mingw47_32\include\QtCore" -I"src\moc" -I"..\..\
    8. Qt\Qt5.0.1\5.0.1\mingw47_32\mkspecs\win32-g++" -o src\obj\qwt_autoscl.o src\qwt_
    9. autoscl.cpp
    10. In file included from include/qwt_scldiv.h:14:0,
    11. from include/qwt_autoscl.h:14,
    12. from src\qwt_autoscl.cpp:11:
    13. include/qwt_array.h:25:23: error fatal: qmemarray.h: No such file or directory
    14. compilation finished.
    15. mingw32-make[1]: *** [src/obj/qwt_autoscl.o] Error 1
    16. mingw32-make[1]: Leaving directory `C:/Program Files (x86)/Qwt'
    17. mingw32-make: *** [release] Error 2
    To copy to clipboard, switch view to plain text mode 

    Need I any other dependency?, I've kept the steps described in the installation guide of qwt for Win32/MinGW (http://qwt.sourceforge.net/qwtinstall.html) properly.

    Can anyone help me?

    Kind regards.


    Added after 22 minutes:


    Now I've made a checkout from svn://svn.code.sf.net/p/qwt/code/branches/qwt-6.0

    Then I've repeated the steps but I get another errors:

    Qt Code:
    1. cd src\ && mingw32-make -f Makefile
    2. mingw32-make[1]: Entering directory `C:/qwt/src'
    3. mingw32-make -f Makefile.Release all
    4. mingw32-make[2]: Entering directory `C:/qwt/src'
    5. compiling qwt_clipper.cpp
    6. qwt_clipper.cpp: In member function 'Polygon QwtPolygonClipper<Polygon, Rect,
    7. Point, T>::clipPolygon(const Polygon&, bool) const [con Polygon = QPolygon, Rec
    8. t = QRect, Point = QPoint, T = int]':
    9. qwt_clipper.cpp:449:55: instantiated from here
    10. qwt_clipper.cpp:232:9: error: 'qMemCopy' was not declared in this scope
    11. qwt_clipper.cpp: In member function 'Polygon QwtPolygonClipper<Polygon, Rect,
    12. Point, T>::clipPolygon(const Polygon&, bool) const [con Polygon = QPolygonF, Re
    13. ct = QRectF, Point = QPointF, T = double]':
    14. qwt_clipper.cpp:465:55: instantiated from here
    15. qwt_clipper.cpp:232:9: error: 'qMemCopy' was not declared in this scope
    16. qwt_clipper.cpp: En el destructor 'QwtClip::PointBuffer<Point>::~PointBuffer() [
    17. con Point = QPoint]':
    18. qwt_clipper.cpp:220:28: instantiated from 'Polygon QwtPolygonClipper<Polygon,
    19. Rect, Point, T>::clipPolygon(const Polygon&, bool) const [con Polygon = QPolygon
    20. , Rect = QRect, Point = QPoint, T = int]'
    21. qwt_clipper.cpp:449:55: instantiated from here
    22. qwt_clipper.cpp:140:13: error: 'qFree' was not declared in this scope
    23. qwt_clipper.cpp: In member function 'void QwtClip::PointBuffer<Point>::setPoi
    24. nts(int, const Point*) [con Point = QPoint]':
    25. qwt_clipper.cpp:223:9: instantiated from 'Polygon QwtPolygonClipper<Polygon, R
    26. ect, Point, T>::clipPolygon(const Polygon&, bool) const [con Polygon = QPolygon,
    27. Rect = QRect, Point = QPoint, T = int]'
    28. qwt_clipper.cpp:449:55: instantiated from here
    29. qwt_clipper.cpp:148:9: error: 'qMemCopy' was not declared in this scope
    30. qwt_clipper.cpp: En el destructor 'QwtClip::PointBuffer<Point>::~PointBuffer() [
    31. con Point = QPointF]':
    32. qwt_clipper.cpp:220:28: instantiated from 'Polygon QwtPolygonClipper<Polygon,
    33. Rect, Point, T>::clipPolygon(const Polygon&, bool) const [con Polygon = QPolygon
    34. F, Rect = QRectF, Point = QPointF, T = double]'
    35. qwt_clipper.cpp:465:55: instantiated from here
    36. qwt_clipper.cpp:140:13: error: 'qFree' was not declared in this scope
    37. qwt_clipper.cpp: In member function 'void QwtClip::PointBuffer<Point>::setPoi
    38. nts(int, const Point*) [con Point = QPointF]':
    39. qwt_clipper.cpp:223:9: instantiated from 'Polygon QwtPolygonClipper<Polygon, R
    40. ect, Point, T>::clipPolygon(const Polygon&, bool) const [con Polygon = QPolygonF
    41. , Rect = QRectF, Point = QPointF, T = double]'
    42. qwt_clipper.cpp:465:55: instantiated from here
    43. qwt_clipper.cpp:148:9: error: 'qMemCopy' was not declared in this scope
    44. qwt_clipper.cpp: In member function 'void QwtClip::PointBuffer<Point>::reserv
    45. e(int) [con Point = QPoint]':
    46. qwt_clipper.cpp:134:13: instantiated from 'QwtClip::PointBuffer<Point>::PointB
    47. uffer(int) [con Point = QPoint]'
    48. qwt_clipper.cpp:220:28: instantiated from 'Polygon QwtPolygonClipper<Polygon,
    49. Rect, Point, T>::clipPolygon(const Polygon&, bool) const [con Polygon = QPolygon
    50. , Rect = QRect, Point = QPoint, T = int]'
    51. qwt_clipper.cpp:449:55: instantiated from here
    52. qwt_clipper.cpp:193:9: error: 'qRealloc' was not declared in this scope
    53. qwt_clipper.cpp: In member function 'void QwtClip::PointBuffer<Point>::reserv
    54. e(int) [con Point = QPointF]':
    55. qwt_clipper.cpp:134:13: instantiated from 'QwtClip::PointBuffer<Point>::PointB
    56. uffer(int) [con Point = QPointF]'
    57. qwt_clipper.cpp:220:28: instantiated from 'Polygon QwtPolygonClipper<Polygon,
    58. Rect, Point, T>::clipPolygon(const Polygon&, bool) const [con Polygon = QPolygon
    59. F, Rect = QRectF, Point = QPointF, T = double]'
    60. qwt_clipper.cpp:465:55: instantiated from here
    61. qwt_clipper.cpp:193:9: error: 'qRealloc' was not declared in this scope
    62. mingw32-make[2]: *** [release/qwt_clipper.o] Error 1
    63. mingw32-make[2]: Leaving directory `C:/qwt/src'
    64. mingw32-make[1]: *** [release-all] Error 2
    65. mingw32-make[1]: Leaving directory `C:/qwt/src'
    66. mingw32-make: *** [sub-src-make_default-ordered] Error 2
    To copy to clipboard, switch view to plain text mode 

    What's wrong?

    Kind regards.
    Last edited by qt_developer; 1st March 2013 at 14:05.

  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: Qwt installation on Windows 7

    You need Qwt 6.1 ( = SVN trunk ) for Qt5.

    Uwe

  3. #3
    Join Date
    May 2012
    Posts
    99
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qwt installation on Windows 7

    I have tried with this version (Qwt 6.1 ( = SVN trunk )) and now compiles

    I have added the line
    Qt Code:
    1. CONFIG += qwt
    To copy to clipboard, switch view to plain text mode 

    in my .pro file but I get the error:
    Qt Code:
    1. error: qwt_plot.h: No such file or directory
    To copy to clipboard, switch view to plain text mode 

    I've edited qwtconfig.pri

    Qt Code:
    1. win32 {
    2. # QWT_INSTALL_PREFIX = C:/Qwt-$$QWT_VERSION-svn
    3. QWT_INSTALL_PREFIX = C:/Qt/Qwt-6.1
    4. }
    To copy to clipboard, switch view to plain text mode 

    and I've copied the qwt.prf and qwtconfig.pri files in C:\Qt\Qt5.0.1\5.0.1\mingw47_32\mkspecs\features.

    Need I do something more?

    Regards.

    EDIT:

    I've edited again the qwtconfig.pri file:

    Qt Code:
    1. #QWT_INSTALL_HEADERS = $${QWT_INSTALL_PREFIX}/include
    2. QWT_INSTALL_HEADERS = $${QWT_INSTALL_PREFIX}/src
    To copy to clipboard, switch view to plain text mode 

    Now the program compiles.
    Last edited by qt_developer; 1st March 2013 at 15:28.

  4. #4
    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: Qwt installation on Windows 7

    As soon as someone starts to copy files around I stop reading about installation problems.

    What is so hard about following the instruction in INSTALL:


    1. mingw32-make
    2. mingw32-make install
    3. configure QMAKEFEATURES


    Then you can use CONFIG += qwt.

    Uwe

  5. #5
    Join Date
    Jun 2011
    Posts
    6
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Qwt installation on Windows 7

    Hi Uwe,

    The problem is that 99% of the time users' configuration is slightly incorrect and then the steps provided in the "INSTALL" don't work. In Windows the situation is even worse when users get confused or don't know the difference between Visual Studio and Mingw. I think slightly more detailed instructions in the "INSTALL" would reduce the number of installation related questions dramatically. I wrote the following instructions for students in my lab. Most seem to have success with them. They might help others:

    1. install QT using: qt-win-opensource-4.8.4-vs2010.exe
      and: qt-creator-windows-opensource-2.6.1.exe
      (the latest versions should work too)
    2. add to PATH environment variable: ;C:\Qt\4.8.4\bin
    3. Download and install Microsoft Visual Studio 2010 Express
    4. Download and extract latest QWT to C:\temp
    5. In extracted folder: edit qwtconfig.pri: remove "#" in front of "QWT_CONFIG * * += QwtExamples"; save and close
    6. Open "Visual Studio Command Prompt (2010)" with admin rights
    7. navigate to C:\temp\qwt-6.0.2
    8. qmake qwt.pro
    9. nmake
    10. nmake install
    11. a) qmake -set QMAKEFEATURES C:\Qwt-6.0.2\features
      b) check with: qmake -query QMAKEFEATURES
    12. close command prompt
    13. add new environment variable QT_PLUGIN_PATH and for the variable value: C:\Qwt-6.0.2\plugins
    14. add to PATH environment variable: ;C:\Qwt-6.0.2\lib
    15. Edit C:\Qt\4.8.4\bin\qtvars.bat:
      Add: "set PATH=%PATH%;C:\Qwt-6.0.2\lib
      echo -- adding C:\Qwt-6.0.2\lib to PATH"
    16. Open QtCreator
    17. Tools - Options - Build & Run
      Qt Versions: Add "C:\Qt\4.8.4\bin\qmake.exe
      Kits: Select "Desktop", select "Qt version": Qt 4.8.4 (4.8.4)
    18. Do not forget to add CONFIG +=qwt into your project PRO file


    Use the MSVC2010 build config!

  6. #6
    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: Qwt installation on Windows 7

    Please read install.dox ( Doxygen input ) from svn trunk ( it will replace the old INSTALL document ) and send me patches for this unfinished text. Everything else will get lost.

    Uwe

Similar Threads

  1. problem with installation on wt windows 7 x64
    By nuwa in forum Installation and Deployment
    Replies: 0
    Last Post: 9th August 2012, 19:08
  2. Qt Creator Installation - Windows XP
    By SixDegrees in forum Qt Tools
    Replies: 9
    Last Post: 23rd November 2010, 20:44
  3. HUGE BUG in Windows Installation!!!
    By joandelason in forum Installation and Deployment
    Replies: 9
    Last Post: 22nd March 2010, 09:07
  4. Installation of Qt4.3.4 for Windows
    By merry in forum Installation and Deployment
    Replies: 4
    Last Post: 12th March 2008, 09:47
  5. Qt 4 Windows Installation Tutorial
    By Arsenic in forum Installation and Deployment
    Replies: 12
    Last Post: 4th January 2008, 23:15

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.