Following are the required steps for installation and addition of QWT library to QT.

Steps


  1. Download qwt-6.1.3 from here.

  2. Open terminal and run sudo apt-get update.
  3. sudo apt-get upgrade.
  4. sudo rpi-update (for raspberry pi).
  5. sudo apt-get install qt5-default.
  6. sudo apt-get install qtcreator.
  7. sudo apt-get install libqt5svg5*
  8. sudo apt-get install qttools5-dev.
  9. cd qwt-6.1.3 (go to qwt-6.1.3 directory).
  10. qmake qwt.pro
  11. make
  12. sudo make install
  13. cd /usr/local/qwt-6.1.3/plugins/designer (go to designer directory via the path given)
  14. sudo cp libqwtdesignerplugin.so /usr/lib/arm-linux-gnueabihf/qt5/plugins/designer
  15. Run qmake -set QMAKEFEATURES /usr/local/qwt-6.1.3/features in terminal
  16. cd /qwt-6.1.3/examples
  17. qmake
  18. make
  19. cd /etc/ld.so.conf.d/
  20. sudo nano qwt.conf
  21. paste /usr/local/qwt-6.1.3/lib in the edit textbox.
  22. sudo ldconfig
  23. ldconfig -p | grep qwt
  24. cd /qwt-6.1.3/examples/bin/
  25. ./oscilloscope
  26. Open qt creator->new project
  27. Add CONFIG += qwt in .pro file
  28. If needed add INCLUDEPATH += /usr/local/qwt-5.2.1/include in .pro file
  29. If needed add LIBS += -L/usr/local/qwt-5.2.1/lib -lqwt in .pro file
  30. All set now.

Comments

Post a Comment