@Recommended steps to build the QtSerialPort library for Qt4/Qt5 from QtCreator:

download and unpack the QtSerialPort sources
run QtCreator and open the “qtserialport.pro” project file
get to “Projects->(Your Kit)->Build->Build Steps”
add a new make “Build Step” and write to the “Make arguments” the install target
from the menus, select “Rebuild Project qtserialport”

@

In the last step "Rebuild Project qtserialport", I get "install_target_headers" Error
Please help me solve this.

I logged into Ubuntu as root and then ran the build process for serialport. Now the autocomplete feature in QT suggests 'Qtserialport' when I type Qt. So I guess it's installed. Will try running small program to access the port and get back. Thanks a lot.

Can you please update this thread? I don't know how to get to "sudo make install" I'm trying to crosscompile on a beaglebone. is there an extension to this command? I'm receiving error:
make: *** No rule to make target 'instal'. stop.

Yeah. I work with rfid reader through usb, but i can only see COM ports. Maybe CreateFile for a com port, read from ttyO0 and write on the new file? if QSerialPort is essential. If not you can stick to reading from the UART file.