找回密码
 注册
关于网站域名变更的通知
查看: 441|回复: 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
: U; t' I8 X' a' ]* z4 S* I编译qt程序时,到这一步,报错:' D6 ?1 Y0 [$ ]$ Y+ `2 L  k9 ^; n
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   & }. P2 A, P; D. t0 @/ S" i, |
/usr/local/lib/libQt5Quazip.so: undefined reference to `z_inflate'
4 {- ]: O9 Q6 `( M5 ^. a/usr/local/lib/libQt5Quazip.so: undefined reference to `z_gzwrite'
* z9 i8 D. s. \* a- _/usr/local/lib/libQt5Quazip.so: undefined reference to `z_deflateEnd'
. m. w6 h, @4 `; ^1 z; m/usr/local/lib/libQt5Quazip.so: undefined reference to `z_crc32'
; m. B/ P2 c# F/usr/local/lib/libQt5Quazip.so: undefined reference to `z_deflateInit2_'
7 x7 d% e: B$ C' P/usr/local/lib/libQt5Quazip.so: undefined reference to `z_inflateInit_'$ j. J7 x' c3 }1 |2 E
/usr/local/lib/libQt5Quazip.so: undefined reference to `z_gzclose') H+ R" _2 h' }. B
/usr/local/lib/libQt5Quazip.so: undefined reference to `z_adler32'
, R, }( \6 n# p3 }5 f* N/usr/local/lib/libQt5Quazip.so: undefined reference to `z_deflate'+ P* B9 w8 o' Z2 k
/usr/local/lib/libQt5Quazip.so: undefined reference to `z_inflateEnd'0 [! r$ f9 v" j! T% i& V. w
/usr/local/lib/libQt5Quazip.so: undefined reference to `z_deflateInit_'
8 k: \; q. {+ G7 J- S9 L/usr/local/lib/libQt5Quazip.so: undefined reference to `z_inflateInit2_'
9 c, E2 i5 ^6 B/usr/local/lib/libQt5Quazip.so: undefined reference to `z_gzread'6 b$ V- p9 Y8 W8 o, Q1 g
/usr/local/lib/libQt5Quazip.so: undefined reference to `z_gzopen'
% [* Z2 W2 C$ U) B/usr/local/lib/libQt5Quazip.so: undefined reference to `z_get_crc_table'& }7 S% Z8 L' c6 r/ }
/usr/local/lib/libQt5Quazip.so: undefined reference to `z_gzflush'0 ~6 ~/ j$ g( k6 h8 J2 @
/usr/local/lib/libQt5Quazip.so: undefined reference to `z_gzdopen'
5 D: t" Q  F& f) T2 [collect2: error: ld returned 1 exit status
. Y; k3 D. l1 ?% F, x- U$ \& s9 ]make: *** [Server] Error 1
8 }$ Q, c! b" b% {( |8 k" @5 m+ _( `' Y' W4 j! O& P0 _
明明加了 -lz,为什么还会提示这个错误呢?! w: m# Z" K& |; d* v3 t
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

EDA365公众号

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

GMT+8, 2025-11-25 01:23 , Processed in 0.156250 second(s), 23 queries , Gzip On.

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

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

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