np43 / qextserialport

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

uartassistant #173

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Which version of QextSerialPort are you using?
  -> qextserialport-1.2rc

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
qt-everywhere-opensource-src-5.0.2
windows7

Please provide any additional information below.

Hi there
I just try to get the uartassistant example up and running as a msvc2010 
project.
The following error message pops up no matter whether using the qextserialport 
lib or including the files.
> moc_qextserialport.cpp
1>GeneratedFiles\Debug\moc_qextserialport.cpp(157): error C2027: Verwendung des 
undefinierten Typs "QextSerialPortPrivate"
1> 
c:\qextserialport-1.2rc\examples\uartassistant\generatedfiles\debug\../../../../
src/qextserialport.h(167): Siehe Deklaration von 'QextSerialPortPrivate'
1>GeneratedFiles\Debug\moc_qextserialport.cpp(157): error C2227: Links von 
"->_q_onWinEvent" muss sich ein Zeiger auf 
Klassen-/Struktur-/Union-/generischen Typ befinden.
1>GeneratedFiles\Debug\moc_qextserialport.cpp(157): error C2061: Syntaxfehler: 
Bezeichner 'HANDLE'
1>GeneratedFiles\Debug\moc_qextserialport.cpp(158): error C2027: Verwendung des 
undefinierten Typs "QextSerialPortPrivate"
1> 
c:\qextserialport-1.2rc\examples\uartassistant\generatedfiles\debug\../../../../
src/qextserialport.h(167): Siehe Deklaration von 'QextSerialPortPrivate'
1>GeneratedFiles\Debug\moc_qextserialport.cpp(158): error C2227: Links von 
"->_q_canRead" muss sich ein Zeiger auf Klassen-/Struktur-/Union-/generischen 
Typ befinden.
1>

So what have I been doing so far:
• I generated a new QT Project by using the QT VS Plug in 
(qt-vs-addin-1.2.1-opensource)
• I named the Project Dialog, chose QDialog as basis class the path was set 
to .\example\uartassistant
• now I was asked whether I want to keep the Dialog.cpp, Dialog.ui and 
main.cpp files. I kept this files.
• I added the C:\qextserialport-1.2rc\src to the project as additiona include 
pathes.
• I added qserialport.h the project as a link.
the following libs were built before by qmake, nmake and nmake install (as 
metiioned in case 153):
• Qt5ExtSerialPort.prl
• Qt5ExtSerialPort1.dll
• Qt5ExtSerialPort1.lib
• Qt5ExtSerialPortd.prl
• Qt5ExtSerialPortd1.dll
• Qt5ExtSerialPortd1.lib
• Qt5ExtSerialPortd1.pdb
the are located in the C:\qt-everywhere-opensource-src-5.0.2\qtbase\lib path
Can anyone help me getting this example up and running?
many thanks in advance
best regards

Original issue reported on code.google.com by Hech...@web.de on 15 Oct 2013 at 3:33

GoogleCodeExporter commented 9 years ago
Well it is basically the same output as on the issue 153.

> > moc_qextserialport.cpp
> 
> 1>GeneratedFiles\Debug\moc_qextserialport.cpp(157): error C2027: 
> 1>Verwendung
> des undefinierten Typs "QextSerialPortPrivate"
> 
1>GeneratedFiles\Debug\moc_qextserialport.cpp(157) : error C2027: use of 
undefined type 'QextSerialPortPrivate'

Here the english version of the MSCV2010

> c:\qextserialport-1.2rc\examples\uartassistant\generatedfiles\debug\../../..
  /../src/qextserialport.h(167): : see declaration of 'QextSerialPortPrivate'

1>GeneratedFiles\Debug\moc_qextserialport.cpp(157): error C2227: left of 
'->_q_onWinEvent' must point to class/struct/union/generic type

1>GeneratedFiles\Debug\moc_qextserialport.cpp(157):: error C2061:
 syntax error : identifier 'HANDLE'

1>GeneratedFiles\Debug\moc_qextserialport.cpp(158): error C2027: 
use of undefined type 'QextSerialPortPrivate'

c:\qextserialport-1.2rc\examples\uartassistant\generatedfiles\debug\../../..
> /../src/qextserialport.h(167):
: see declaration of 'QextSerialPortPrivate'

> 1>GeneratedFiles\Debug\moc_qextserialport.cpp(158): error C2227: left of
 '->_q_canRead' must point to class/struct/union/generic type

Original comment by Hech...@web.de on 15 Oct 2013 at 5:49