Monday, July 13, 2009

Qt - Arduino Serial Communication

If you want to make a Qt application capable of serial communication with an Arduino, then these are some great resources to do so:
* QextSerialPort : cross-platform serial port library
* Arduino Serial reference : awesome Arduino documentation

Notes:

I had some trouble getting the QextSerialPort library to work with VS 2008, so I will just go over all steps I needed to take.
* Run this command in the QextSerialPort directory: qmake -tp vc : this will make a .vcproj file from the .pro file
* Open the .vcproj file with VS 2008
* Change the configuration type from dynamic library to static library [as the original setting did not produce a .lib file]

.. and you are ready to go.

JR

2 comments:

  1. hi, what do you mean with change the configuration type from dynamic library to static library?, please explain me how to do this, mi mail is ivan.jl.mesa@gmail.com

    ReplyDelete
  2. Step 6 in http://msdn.microsoft.com/en-us/library/ms235627.aspx

    ReplyDelete