PDA

View Full Version : Problems with static compile for QextSerialPort



blm
29th September 2009, 14:35
Hallo guys,

now I want to release my program,
but it don't work with the static compile.
I got the
libqextserialport.a
qextserialport.prl
after compile, and copy to G:\Qt\4.5.2\lib

this is the .pro file for my project


TEMPLATE = app
TARGET = test
QT += core gui

HEADERS += test.h
SOURCES += main.cpp \
test.cpp
FORMS += test.ui
INCLUDEPATH += G:\Qt\4.5.2\include\qextserialport
LIBS += -LG:\Qt\4.5.2\lib\qextserialport -lqextserialport
win32:DEFINES = _TTY_WIN_ QWT_DLL QT_DLL


there are some error message


release/test.o(.text+0x9d5):test.cpp: undefined reference to `_imp___ZN7QString4freeEPNS_4DataE'
release/test.o(.text+0xa04):test.cpp: undefined reference to `_imp___ZN7QString4freeEPNS_4DataE'
release/test.o(.text+0xa4c):test.cpp: undefined reference to `_imp___ZN7QString4freeEPNS_4DataE'
release/test.o(.text$_ZN12Ui_testClass7setupUiEP7QWidget[Ui_testClass::setupUi(QWidget*)]+0x5d):test.cpp: undefined reference to `_imp___ZNK7QObject10objectNameEv'
release/test.o(.text$_ZN12Ui_testClass7setupUiEP7QWidget[Ui_testClass::setupUi(QWidget*)]+0xbc):test.cpp: undefined reference to `_imp___ZN7QString8fromUtf8EPKci'
release/test.o(.text$_ZN12Ui_testClass7setupUiEP7QWidget[Ui_testClass::setupUi(QWidget*)]+0xe8):test.cpp: undefined reference to `_imp___ZN7QObject13setObjectNameERK7QString'


What can i do now?:confused:
thanks for your help!

kuzulis
29th September 2009, 14:52
Use QSerialDevice :)

blm
29th September 2009, 15:25
thanks for yout suggestion,
can you tell me the what cause the problems?

blm
30th September 2009, 13:36
now i can't get a dll file of QextSerialPort too, under the static Qt

blm
6th October 2009, 13:55
up..
up..