找回密码
 注册
关于网站域名变更的通知
查看: 428|回复: 1
打印 上一主题 下一主题

在linux环境下Qt整合quazip,却出现了报错,请大神指导

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2020-8-11 13:31 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

EDA365欢迎您登录!

您需要 登录 才可以下载或查看,没有帐号?注册

x
/home/ls/Qt5.14.1/5.14.1/gcc_64/bin/qmake -o Makefile ../Server/Server.pro -spec linux-g++ CONFIG+=qtquickcompiler" w" m+ D% g/ D" |" T4 s* y3 A
编译qt程序时,到这一步,报错:8 ^" u% e- M% h2 n% q2 g
g++ -Wl,-O1 -Wl,-rpath,/home/ls/Qt5.14.1/5.14.1/gcc_64/lib -o Server frienddao.o groupdao.o userdao.o usergroupmapdao.o main.o friend.o group.o user.o usergroupmap.o server.o friendservice.o groupservice.o usergroupmapservice.o userservice.o connectionpool.o libevent.o msg.o specification.o moc_server.o   -levent -lQt5Quazip -lz /home/ls/Qt5.14.1/5.14.1/gcc_64/lib/libQt5Widgets.so /home/ls/Qt5.14.1/5.14.1/gcc_64/lib/libQt5Gui.so /home/ls/Qt5.14.1/5.14.1/gcc_64/lib/libQt5Sql.so /home/ls/Qt5.14.1/5.14.1/gcc_64/lib/libQt5Core.so -lGL -lpthread   
! Q& T3 m! a/ Q4 o9 r* T/usr/local/lib/libQt5Quazip.so: undefined reference to `z_inflate'* l6 r# C1 Y) u  l
/usr/local/lib/libQt5Quazip.so: undefined reference to `z_gzwrite'* L7 {8 a4 x* ?# u4 t! A
/usr/local/lib/libQt5Quazip.so: undefined reference to `z_deflateEnd') G3 b0 e. H- p, F
/usr/local/lib/libQt5Quazip.so: undefined reference to `z_crc32'( L3 A) e' _. I; }/ g" g# {: H
/usr/local/lib/libQt5Quazip.so: undefined reference to `z_deflateInit2_'" @1 D' m' w" n1 T0 o# _
/usr/local/lib/libQt5Quazip.so: undefined reference to `z_inflateInit_') J* a# b$ F% U2 R6 ^2 ~/ n( t) e
/usr/local/lib/libQt5Quazip.so: undefined reference to `z_gzclose'
; z5 r; f1 Z) V5 O8 D4 I/usr/local/lib/libQt5Quazip.so: undefined reference to `z_adler32'
+ @% e/ v: l" Z/usr/local/lib/libQt5Quazip.so: undefined reference to `z_deflate'
8 T  X' F" t8 c. q9 s/usr/local/lib/libQt5Quazip.so: undefined reference to `z_inflateEnd'
% K7 P$ l! |% O. A9 @7 x. e/usr/local/lib/libQt5Quazip.so: undefined reference to `z_deflateInit_'
! J4 V, z/ W# |5 K3 G' G( A7 V/usr/local/lib/libQt5Quazip.so: undefined reference to `z_inflateInit2_'% a4 P: f$ m6 u# |; {# c
/usr/local/lib/libQt5Quazip.so: undefined reference to `z_gzread'7 \8 `0 ]4 M4 B& @3 f% Z, @
/usr/local/lib/libQt5Quazip.so: undefined reference to `z_gzopen'
* r, |, a1 E$ }. b/usr/local/lib/libQt5Quazip.so: undefined reference to `z_get_crc_table'; V2 V3 [) L6 K, G
/usr/local/lib/libQt5Quazip.so: undefined reference to `z_gzflush': n/ }% n. N& |
/usr/local/lib/libQt5Quazip.so: undefined reference to `z_gzdopen'( n$ `3 \: M2 Z0 s3 F, A
collect2: error: ld returned 1 exit status
" z6 Z7 `; K0 Z2 a! ~! ymake: *** [Server] Error 1- ?& p% }, ~& b$ l0 G

/ J- C" J7 p7 ]2 ]: m: m6 N6 [' p明明加了 -lz,为什么还会提示这个错误呢?, ^1 J( h; o: C1 g2 K: `
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

推荐内容上一条 /1 下一条

EDA365公众号

关于我们|手机版|EDA365电子论坛网 ( 粤ICP备18020198号-1 )

GMT+8, 2025-9-13 21:00 , Processed in 0.109375 second(s), 24 queries , Gzip On.

深圳市墨知创新科技有限公司

地址:深圳市南山区科技生态园2栋A座805 电话:19926409050

快速回复 返回顶部 返回列表