主题 : 使用QT4.5.0编译自带的例子出错? 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 8515
精华: 0
发帖: 62
金钱: 535 两
威望: 233 点
综合积分: 124 分
注册时间: 2009-08-26
最后登录: 2014-06-25
楼主  发表于: 2009-09-23 15:24

 使用QT4.5.0编译自带的例子出错?

arm-linux-g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../mkspecs/default -I. -I../../../include/QtCore -I../../../include/QtNetwork -I../../../include/QtGui -I../../../include -I. -I. -o calibration.o calibration.cpp
arm-linux-g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../mkspecs/default -I. -I../../../include/QtCore -I../../../include/QtNetwork -I../../../include/QtGui -I../../../include -I. -I. -o scribblewidget.o scribblewidget.cpp
arm-linux-g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../mkspecs/default -I. -I../../../include/QtCore -I../../../include/QtNetwork -I../../../include/QtGui -I../../../include -I. -I. -o main.o main.cpp
arm-linux-g++ -Wl,-O1 -Wl,-rpath,/opt/xiongbiao/smdk2416/qtembedded-4.5.0-arm-install/lib -o mousecalibration calibration.o scribblewidget.o main.o    -L/opt/xiongbiao/smdk2416/qtembedded-4.5.0-arm-install//lib -lQtGui -L/opt/xiongbiao/smdk2416/tslib-1.4-install/lib/ -L/opt/xiongbiao/smdk2416/qtembedded-4.5.0-arm-install//lib -lts -lQtNetwork -lQtCore -lm -lrt -ldl -lpthread
/opt/xiongbiao/smdk2416/qtembedded-4.5.0-arm-install//lib/libQtGui.so: undefined reference to `deflateInit_'
/opt/xiongbiao/smdk2416/qtembedded-4.5.0-arm-install//lib/libQtGui.so: undefined reference to `deflateInit2_'
/opt/xiongbiao/smdk2416/qtembedded-4.5.0-arm-install//lib/libQtGui.so: undefined reference to `compress'
/opt/xiongbiao/smdk2416/qtembedded-4.5.0-arm-install//lib/libQtGui.so: undefined reference to `deflate'
/opt/xiongbiao/smdk2416/qtembedded-4.5.0-arm-install//lib/libQtGui.so: undefined reference to `deflateEnd'
/opt/xiongbiao/smdk2416/qtembedded-4.5.0-arm-install//lib/libQtGui.so: undefined reference to `crc32'
/opt/xiongbiao/smdk2416/qtembedded-4.5.0-arm-install//lib/libQtGui.so: undefined reference to `inflate'
/opt/xiongbiao/smdk2416/qtembedded-4.5.0-arm-install//lib/libQtGui.so: undefined reference to `inflateInit2_'
/opt/xiongbiao/smdk2416/qtembedded-4.5.0-arm-install//lib/libQtGui.so: undefined reference to `inflateInit_'
/opt/xiongbiao/smdk2416/qtembedded-4.5.0-arm-install//lib/libQtGui.so: undefined reference to `inflateEnd'
/opt/xiongbiao/smdk2416/qtembedded-4.5.0-arm-install//lib/libQtGui.so: undefined reference to `inflateReset'
/opt/xiongbiao/smdk2416/qtembedded-4.5.0-arm-install//lib/libQtGui.so: undefined reference to `deflateReset'
collect2: ld returned 1 exit status
make: *** [mousecalibration] Error 1

请高手指点!
级别: 侠客
UID: 8515
精华: 0
发帖: 62
金钱: 535 两
威望: 233 点
综合积分: 124 分
注册时间: 2009-08-26
最后登录: 2014-06-25
1楼  发表于: 2009-09-23 15:25

 回 楼主(xiongbiaowh) 的帖子

编译通过了,就是联接的时候出问题,可能是这个库有问题,但不知道怎么解决?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2009-09-23 15:35
看起来应该是zlib里面的符号,加上-lz试试?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."