0

I try to use LibSerial’s class for serial communication (with an ATMega32A) through a COM port. As soon as I include the SerialStream.h I get several error messages from the file SerialPort.h.

#include "SerialStream.h"

You can see the errors I get here. https://i.stack.imgur.com/s8ZdC.png

Since I did not fully understand the installation of LibSerial, I think I use the class the wrong way. I use the compiler QT Creator and the OS is Windows 7. Feel free to ask for more information if you need it.

Høg
  • 1
  • 1
    As you are using Qt do you really need libserial ? maybe it's easier if you use QSerialPort ? – Marco May 04 '15 at 13:04

1 Answers1

0

The question is not answerable in it's current format.

Nevertheless, if you are willing to use Qt's features to read from a serial port, I could point you to a demo I wrote a while ago.

Quick notes: main.cpp retrieves information and detects all serial ports on the computer and presents a menu to let the user choose which port to read from. Then it uses QSerialPort to open a connection to that specific port, and the reading part is done by SerialPortReader, a class implemented on that project.

karlphillip
  • 92,053
  • 36
  • 243
  • 426