jiuzhuaxiong / qextserialport

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

How does it work using vs2010 Qt plugin? #150

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Which version of QextSerialPort are you using?
qextserialport-1.2beta2.tar.gz 

What steps will reproduce the problem?
1. tar -xvf the file into a dir, say, qextserialport
2. On VS2010 (with Qt plugin), Click Qt on the Menu, and import .pri file to 
project.
3. Choose src/qextserialport.pri
4. Project is loaded. 
5. Hit Compile would generate link errors. One example below.

What is the expected output? What do you see instead?
Error   1   error LNK2005: "private: static struct QMetaObjectExtraData const 
QextSerialEnumerator::staticMetaObjectExtraData" 
(?staticMetaObjectExtraData@QextSerialEnumerator@@0UQMetaObjectExtraData@@B) 
already defined in 
moc_qextserialenumerator.obj    D:\Projects\LEDQt\LEDQt\qextserialenumerator.obj    LE
DQt

What version of the product are you using? On what operating system?
Windodws 7. Visual Studio 2010 with Qt plugin.

Please provide any additional information below.

Original issue reported on code.google.com by charlesk...@gmail.com on 23 Oct 2012 at 2:19