README 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. = About QextSerialPort =
  2. QextSerialPort provides an interface to old fashioned serial ports for Qt-based applications. It currently supports Mac OS X, Windows, Linux, FreeBSD.
  3. http://code.google.com/p/qextserialport/
  4. == How to use (1) ==
  5. * Download the source code.
  6. * Put the source code in any directory you like. For example, 3rdparty:
  7. |-- project.pro
  8. |-- ....
  9. |-- 3rdparty\
  10. | |-- qextserialport\
  11. | |
  12. * Add following line to your qmake project file:
  13. include(3rdparty/qextserialport/src/qextserialport.pri)
  14. * Using QextSerialPort in your code. Enjoy it!
  15. #include "qextserialport.h"
  16. ....
  17. QextSerialPort * port = new QextSerialPort();
  18. ....
  19. == How to use (2) ==
  20. It's very easy to compile QextSerialPort directly into your application
  21. (see above section), however, we would prefer to use it as a shared library.
  22. * Download the source code, and put it in any location you like.
  23. * Run following command to generate library.
  24. qmake
  25. make (or nmake)
  26. sudo make install (or nmake install)
  27. * Add following line to your project's file
  28. CONFIG += extserialport
  29. * Using QextSerialPort in your code. Enjoy it!
  30. #include "qextserialport.h"
  31. ....
  32. QextSerialPort * port = new QextSerialPort();
  33. ....
  34. == Build Documents ==
  35. * Run
  36. qmake
  37. make docs
  38. * Note: More information can be found in doc/readme.txt
  39. == Build examples ==
  40. * Goto examples directory, then run
  41. qmake (or qmake -r)
  42. make (or nmake)