Qt编译时出错为:warning: libts-1.0.so.0, needed by /myroot/qt/qtlib/lib/libQtGui.so, not found (try using

在Ubuntu 16.04上使用Qt4.8编译时遇到链接错误,找不到libts-1.0.so.0。解决方法是在Makefile中添加-lts,然后运行make而不是qmake。避免重新生成Makefile,完成编译。安装过程包括解压、配置、编译和安装。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

运行平台:ubuntu16.04 +Qt4.8

出错原因:用Qt4.8编译时qmake后,运行make出现错误,错误为:

usr/local/toolschain/4.4.3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.3/../../../../arm-none-linux-gnueabi/bin/ld: warning: libts-1.0.so.0, needed by /myroot/qt/qtlib/lib/libQtGui.so, not found (try using -rpath or -rpath-link)

/myroot/qt/qtlib/lib/libQtGui.so: undefined reference to `ts_read_raw'
/myroot/qt/qtlib/lib/libQtGui.so: undefined reference to `ts_open'
/myroot/qt/qtlib/lib/libQtGui.so: undefined reference to `ts_fd'
/myroot/qt/qtlib/lib/libQtGui.so: undefined reference to `ts_config'
/myroot/qt/qtlib/lib/libQtGui.so: undefined reference to `ts_close'
/myroot/qt/qtlib/lib/libQtGui.so: undefined reference to `ts_read'
collect2: ld returned 1 exit status
Makefile:120: recipe for target '机房监控之中控机' failed
make: *** [机房监控之中控机] Error 1

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值