lemanhtrung / qextserialport

Automatically exported from code.google.com/p/qextserialport
Other
0 stars 0 forks source link

Problem with windows.h include on linux #138

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use QextserialPort in a project
2. Compile
3. Got compilation error

What is the expected output? What do you see instead?
i expect no errors, instead i got that listed below:
In file included from ../prj1/qextserialport/qextwineventnotifier_p.h:47:0,
                 from ../prj1/qextserialport/qextwineventnotifier_p.cpp:32:
/usr/include/qt4/QtCore/qt_windows.h:63:21: fatal error: windows.h: No such 
file or directory

What version of the product are you using? On what operating system?
Qt 4.8.0 with Ubuntu 12.04

Please provide any additional information below.

Original issue reported on code.google.com by v.pelo...@gmail.com on 26 Jun 2012 at 5:55

GoogleCodeExporter commented 9 years ago
Hi,

These two files are helper for Windows OS, so you should not use them under 
other OS.

Even under Windows OS, you can avoid them too, if your Qt contains 
QWinEventNotifier.

Regards,

Debao

Original comment by dbzhang...@gmail.com on 27 Jun 2012 at 5:37

GoogleCodeExporter commented 9 years ago
hi 
you need this. see the doc in packages

The package contains a qextserialport.pri file that allows you to integrate the 
component into programs that use qmake for the build step.

All you need is adding following line to your qmake's project file:

    include(pathToPri/qextserialport.pri)

Original comment by khz...@gmail.com on 14 Nov 2012 at 3:31