example uartassistant as a msvc2010 project

30 views
Skip to first unread message

Thomas

unread,
Oct 15, 2013, 10:58:21 AM10/15/13
to qextser...@googlegroups.com

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:
·         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 under MVSC2010?

many thanks in advance

best regards

 

 

 

 

Lisandro Damián Nicanor Pérez

unread,
Oct 15, 2013, 12:20:58 PM10/15/13
to qextser...@googlegroups.com, Thomas
Any chance we can get this in english? :-/

Kinds regards, Lisandro.

--

Lisandro Damián Nicanor Pérez Meyer
http://perezmeyer.com.ar/
http://perezmeyer.blogspot.com/
signature.asc

Thomas

unread,
Oct 15, 2013, 2:53:55 PM10/15/13
to qextser...@googlegroups.com, Thomas

Hi Lisandro,

thanks for looking at my stupid problem.
somehow it should be possible to run that supplied example under MSVC2010.
 
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'

 

> 1>

> c:\qextserialport-1.2rc\examples\uartassistant\generatedfiles\debug\../../..

> /../src/qextserialport.h(167): Siehe Deklaration von 'QextSerialPortPrivate'

>

> 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: Links

> 1>von

> "->_q_onWinEvent" muss sich ein Zeiger auf

> Klassen-/Struktur-/Union-/generischen Typ befinden.

>

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:

> Syntaxfehler: Bezeichner 'HANDLE'

>

1>GeneratedFiles\Debug\moc_qextserialport.cpp(157):: error C2061:

 syntax error : identifier 'HANDLE'

 

> 1>GeneratedFiles\Debug\moc_qextserialport.cpp(158): error C2027:

> 1>Verwendung

> des undefinierten Typs "QextSerialPortPrivate"

> 

1>GeneratedFiles\Debug\moc_qextserialport.cpp(158): error C2027:

use of undefined type 'QextSerialPortPrivate'

 

> 1>

> c:\qextserialport-1.2rc\examples\uartassistant\generatedfiles\debug\../../..

> /../src/qextserialport.h(167): Siehe Deklaration von '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: Links

> 1>von

> "->_q_canRead" muss sich ein Zeiger auf

> Klassen-/Struktur-/Union-/generischen Typ befinden.

 

 

> 1>GeneratedFiles\Debug\moc_qextserialport.cpp(158): error C2227: left of

 '->_q_canRead' must point to class/struct/union/generic type

Reply all
Reply to author
Forward
0 new messages