pafra88 / qextserialport

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

Issue during make command #75

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I couldn't find a way to download zip file as many others did. I went to source 
and downloaded each file. 

I have Windows Vista on my pc and using Qt v4.4.0 (opensource)

Trying to generate library file. Invoked command prompt, directed to 
corresponding project folder, ran qmake src.pro and then make.

Following error message was generated:
C:/Users/shyamrachamalla/Documents/Visual Studio 2008/Projects/Qt/Serial 
Port/Qextserialport/src/tmp//../qextserialenume
rator.h: undefined reference to `non-virtual thunk to QWidget::devType() const'
tmp/moc_qextserialenumerator.o(.rdata$_ZTV28QextSerialRegistrationWidget[vtable 
for QextSerialRegistrationWidget]+0xfc):
C:/Users/shyamrachamalla/Documents/Visual Studio 2008/Projects/Qt/Serial 
Port/Qextserialport/src/tmp//../qextserialenume
rator.h: undefined reference to `non-virtual thunk to QWidget::paintEngine() 
const'
tmp/moc_qextserialenumerator.o(.rdata$_ZTV28QextSerialRegistrationWidget[vtable 
for QextSerialRegistrationWidget]+0x100)
: In function `ZNK28QextSerialRegistrationWidget10metaObjectEv':
C:/Users/shyamrachamalla/Documents/Visual Studio 2008/Projects/Qt/Serial 
Port/Qextserialport/src/tmp/moc_qextserialenume
rator.cpp:43: undefined reference to `non-virtual thunk to QWidget::getDC() 
const'
tmp/moc_qextserialenumerator.o(.rdata$_ZTV28QextSerialRegistrationWidget[vtable 
for QextSerialRegistrationWidget]+0x104)
:C:/Users/shyamrachamalla/Documents/Visual Studio 2008/Projects/Qt/Serial 
Port/Qextserialport/src/tmp/moc_qextserialenum
erator.cpp:44: undefined reference to `non-virtual thunk to 
QWidget::releaseDC(HDC__*) const'
tmp/moc_qextserialenumerator.o(.rdata$_ZTV28QextSerialRegistrationWidget[vtable 
for QextSerialRegistrationWidget]+0x108)
:C:/Users/shyamrachamalla/Documents/Visual Studio 2008/Projects/Qt/Serial 
Port/Qextserialport/src/tmp/moc_qextserialenum
erator.cpp:45: undefined reference to `non-virtual thunk to 
QWidget::metric(QPaintDevice::PaintDeviceMetric) const'
tmp/moc_qextserialenumerator.o(.text$_ZN28QextSerialRegistrationWidgetD0Ev[QextS
erialRegistrationWidget::~QextSerialRegi
strationWidget()]+0x22): In function 
`ZThn8_N28QextSerialRegistrationWidgetD1Ev':
C:/Users/shyamrachamalla/Documents/Visual Studio 2008/Projects/Qt/Serial 
Port/Qextserialport/src/tmp//../qextserialenume
rator.h: undefined reference to `_imp___ZN7QWidgetD2Ev'
tmp/moc_qextserialenumerator.o(.text$_ZN28QextSerialRegistrationWidgetD1Ev[QextS
erialRegistrationWidget::~QextSerialRegi
strationWidget()]+0x22):C:/Users/shyamrachamalla/Documents/Visual Studio 
2008/Projects/Qt/Serial Port/Qextserialport/src
/tmp//../qextserialenumerator.h: undefined reference to `_imp___ZN7QWidgetD2Ev'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [build\qextserialportd1.dll] Error 1
mingw32-make[1]: Leaving directory `C:/Users/shyamrachamalla/Documents/Visual 
Studio 2008/Projects/Qt/Serial Port/Qextse
rialport/src'
mingw32-make: *** [debug] Error 2

Would you please guide me, as I am new to Qt?

Original issue reported on code.google.com by shyamrac...@gmail.com on 16 Sep 2010 at 4:51

GoogleCodeExporter commented 8 years ago
The path to the Qt libraries is not part of your PART variable, and the linker 
does not found the Qt libs. If I remember well there should be a "Qt command 
line" or something similar in the Start menu/Qt *.*. It will start a prompt 
with properly configured enviroment variables for building Qt apps. Or you 
could simply use the Qt Creator for building. 

Original comment by martonmi...@gmail.com on 16 Sep 2010 at 5:55

GoogleCodeExporter commented 8 years ago

Original comment by dbzhang...@gmail.com on 16 Mar 2012 at 8:47