PDA

View Full Version : Help with serial Problem



Danny Fan
21st March 2011, 15:38
Dear all,
I'm trying to run an example for understand the code for read/write on serial port.

the problem is all example I try give me this problem

C1083: Cannot open include file: 'QtCore/private/qwineventnotifier_p.h': No such file or directory

The last example I try is http://gitorious.org/qserialdevice/qserialdevice/archive-tarball/master

Somebody have the possibility to help me please ?

thanks in advance

high_flyer
21st March 2011, 16:06
Try QextSerialPort - works for me.

kuzulis
21st March 2011, 16:44
Install Qt SDK (http://qt.nokia.com/downloads/sdk-windows-cpp).
After you install in your path (example):
c:\Qt\2010.05\qt\include\QtCore\private\
there will be a file: qwineventnotifier_p.h

If for some reason it's not there - then take him (and other files for dependencies) from source Qt4.

Danny Fan
21st March 2011, 17:26
thanks a lot I give you a feedback very soon

radix07
20th September 2011, 15:36
This is due to the way things are done in the newer versions of Qt. See this
http://code.google.com/p/qextserialport/issues/detail?id=91

Would be nice if QSerialDevice would be updated to be compatible with this change, as just bringing out the qwineventnotifier_p.h doesnt quite work right.

kuzulis
21st September 2011, 07:47
2 radix07 ,

Then what you ask (update the library) - is impossible.
New QtSDK does not contain header file "qwineventnotifier_p.h".
It should probably update QtSDK - write a Nokia. :)

Solutions two:

1. Get "qwineventnotifier_p.h" from Qt4 source and copy it to QtSDK.
For example, as written here:
http://code.google.com/p/qextserialport/issues/detail?id=105#c0

2. Manually build Qt4 from source. Then no problem.

To date, the development of master branch is frozen.
All forces are left to branch 2.0. For it is planned to guide the assembly in which to add nuance to the problem QtSDK.