一、问题描述。

嵌入式linux开发,交叉编译qt4.8.5,执行make时报错如下:

make[3]: Entering directory '/home/ms/work/code/qt/opensource/qt-everywhere-opensource-src-4.8.5/src/3rdparty/webkit/Source/WebKit/qt/tests/qwebpage'
arm-linux-g++ -Wl,-rpath-link,/home/ms/work/code/qt/opensource/qt-everywhere-opensource-src-4.8.5/lib -fno-exceptions -Wl,-O1 -Wl,-rpath,/home/ms/work/code/qt/opensource/qt-everywhere-opensource-src-4.8.5/src/3rdparty/webkit/Source/lib -Wl,-rpath,/home/ms/work/product/ok335xD/tool/toolchain/qt4.8.5/lib -Wl,-rpath,/home/ms/work/product/ok335xD/tool/toolchain/qt4.8.5/lib -o tst_qwebpage .obj/release-shared-emb-arm/tst_qwebpage.o .obj/release-shared-emb-arm/qrc_tst_qwebpage.o    -L/usr/local/arm/tslib/lib -L/home/ms/work/code/qt/opensource/qt-everywhere-opensource-src-4.8.5/lib -L/usr/local/arm/tslib/lib -L/home/ms/work/code/qt/opensource/qt-everywhere-opensource-src-4.8.5/lib -lQtDeclarative -lQtScript -lQtSvg -lQtSql -lQtWebKit -lQtTest -lQtGui -lQtNetwork -lQtCore -lpthread
make[3]: Entering directory '/home/ms/work/code/qt/opensource/qt-everywhere-opensource-src-4.8.5/src/3rdparty/webkit/Source/WebKit/qt/tests/qwebframe'
arm-linux-g++ -Wl,-rpath-link,/home/ms/work/code/qt/opensource/qt-everywhere-opensource-src-4.8.5/lib -fno-exceptions -Wl,-O1 -Wl,-rpath,/home/ms/work/code/qt/opensource/qt-everywhere-opensource-src-4.8.5/src/3rdparty/webkit/Source/lib -Wl,-rpath,/home/ms/work/product/ok335xD/tool/toolchain/qt4.8.5/lib -Wl,-rpath,/home/ms/work/product/ok335xD/tool/toolchain/qt4.8.5/lib -o tst_qwebframe .obj/release-shared-emb-arm/tst_qwebframe.o .obj/release-shared-emb-arm/qrc_tst_qwebframe.o    -L/usr/local/arm/tslib/lib -L/home/ms/work/code/qt/opensource/qt-everywhere-opensource-src-4.8.5/lib -L/usr/local/arm/tslib/lib -L/home/ms/work/code/qt/opensource/qt-everywhere-opensource-src-4.8.5/lib -lQtDeclarative -lQtScript -lQtSvg -lQtSql -lQtWebKit -lQtTest -lQtGui -lQtNetwork -lQtCore -lpthread
/home/ms/work/product/ok335xD/tool/toolchain/arm-2014.05/bin/../lib/gcc/arm-none-linux-gnueabi/4.8.3/../../../../arm-none-linux-gnueabi/bin/ld: warning: libts-1.4.so.0, needed by /home/ms/work/code/qt/opensource/qt-everywhere-opensource-src-4.8.5/lib/libQtGui.so, not found (try using -rpath or -rpath-link)
/home/ms/work/code/qt/opensource/qt-everywhere-opensource-src-4.8.5/lib/libQtGui.so: undefined reference to `ts_read_raw'
/home/ms/work/code/qt/opensource/qt-everywhere-opensource-src-4.8.5/lib/libQtGui.so: undefined reference to `ts_open'
/home/ms/work/code/qt/opensource/qt-everywhere-opensource-src-4.8.5/lib/libQtGui.so: undefined reference to `ts_fd'
/home/ms/work/code/qt/opensource/qt-everywhere-opensource-src-4.8.5/lib/libQtGui.so: undefined reference to `ts_config'
/home/ms/work/code/qt/opensource/qt-everywhere-opensource-src-4.8.5/lib/libQtGui.so: undefined reference to `ts_close'
/home/ms/work/code/qt/opensource/qt-everywhere-opensource-src-4.8.5/lib/libQtGui.so: undefined reference to `ts_read'
collect2: error: ld returned 1 exit status
Makefile.WebKit:109: recipe for target 'tst_qwebelement' failed
make[3]: *** [tst_qwebelement] Error 1
make[3]: Leaving directory '/home/ms/work/code/qt/opensource/qt-everywhere-opensource-src-4.8.5/src/3rdparty/webkit/Source/WebKit/qt/tests/qwebelement'
Makefile.WebKit:95: recipe for target 'sub-qwebelement-make_default' failed
make[2]: *** [sub-qwebelement-make_default] Error 2
make[2]: *** Waiting for unfinished jobs....

二、问题分析。

缺少链接信息。

三、解决方案。

修改 qt-everywhere-opensource-src-4.8.5/mkspecs/qws/linux-arm-g++/qmake.conf 文件(添加 lts 参数)。

#
# qmake configuration for building with arm-linux-g++
#include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)# modifications to g++.conf
QMAKE_CC                = arm-linux-gcc -lts
QMAKE_CXX               = arm-linux-g++ -lts
QMAKE_LINK              = arm-linux-g++ -lts
QMAKE_LINK_SHLIB        = arm-linux-g++ -lts# modifications to linux.conf
QMAKE_AR                = arm-linux-ar cqs
QMAKE_OBJCOPY           = arm-linux-objcopy
QMAKE_STRIP             = arm-linux-stripload(qt_config)

嵌入式linux开发,交叉编译qt4.8.5报错:not found (try using -rpath or -rpath-link)/home/ms/work/code/qt/opensourc相关推荐

  1. 嵌入式linux开发,交叉编译qt4.8.5报错:Makefile:1054: recipe for target ‘.moc/release-shared-emb-arm/moc_qabstract

    一.问题描述. 嵌入式linux开发,交叉编译qt4.8.5,执行make时报错如下: ms@ubuntu:~/work/code/qt/opensource/qt-everywhere-openso ...

  2. 嵌入式Linux开发,Ubuntu22下交叉编译内核报错: multiple definition of `yylloc‘; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0

    一.问题描述 嵌入式Linux开发,Ubuntu22下交叉编译内核报错: /usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x10): multiple ...

  3. 嵌入式linux开发,对pcf8563时钟操作报错:rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.

    一.问题描述. 嵌入式linux开发,对pcf8563时钟操作报错如下: [root@ms ~]# hwclock -s rtc-pcf8563 0-0051: low voltage detecte ...

  4. 嵌入式Linux开发环境搭建-(4)安装交叉编译工具链

    在ubuntu16.04.2中,安装交叉编译工具链 在ubuntu中进行嵌入式应用程序开发,安装交叉编译工具链是不可缺少的一个环节. PC操作系统:ubuntu16.04.2 LTS 开发板:天嵌科技 ...

  5. linux 嵌入式 交叉 环境搭建 实验原理,实验三 嵌入式Linux开发环境的搭建

    南京邮电大学通达学院 实 验 报 告 实验 实验三题目 嵌入式Linux开发环境的搭建 课程名称 嵌入式驱动开发实验 学院 专业 班 实验者学号同做者学号 08002210 姓名 毛骏超 同做者学号 ...

  6. ubuntu20.04.1 64位搭建嵌入式linux开发环境

    目录 背景 开发环境的搭建 1.交叉编译工具的安装 2.开发工具和依赖库的安装 2.1. 必需部分 2.2.可选部分 ubuntu20.04.1 64位配置和编译Linux3.0内核 背景 市面上的嵌 ...

  7. 《嵌入式Linux开发实用教程》

    <嵌入式Linux开发实用教程> 基本信息 作者: 朱兆祺    李强    袁晋蓉 出版社:人民邮电出版社 ISBN:9787115334831 上架时间:2014-2-13 出版日期: ...

  8. Linux学习之云服务器搭建嵌入式Linux开发环境

    Linux学习之云服务器搭建嵌入式Linux开发环境 第一步:购买云服务器 进入腾讯云官方网站腾讯云官方网站 选择云+校园云+校园 进入控制台 将云服务器系统设置为Ubuntu系统 使用Xshell6 ...

  9. 假设linux分配给u盘设备名是,嵌入式linux开发基础试卷-应用物理A答案

    试 卷 考试科目: 嵌入式 linux 开发基础 姓名: 试卷适用专业(班) : 09 应用物理 套别:A 套(√)B 套( ) 五 20 六 七 总计 100 考核方式:开卷( )闭卷(√) 了多达 ...

最新文章

  1. 【AMAD】import-string -- 通过字符串来import一个对象
  2. 检测子进程的结束返回状态,status的取值可以是哪些?(简析)
  3. 多选取值_R语言缺失值的处理——回归预测法
  4. Ubuntu安装Nginx+PHP5.6+MySQL5.6
  5. java中的jsonjar_java中使用json之相关jar包介绍
  6. ftp 工具_ftp工具软件,五大站长们都爱的ftp工具软件
  7. ArcGIS Server Java 9.3 REST API的中文查询问题的解决方案
  8. java中string类面试题_java中String类的面试题大全含答案
  9. Javascript设计模式学习二(单例)
  10. 大数据系统架构包含哪些内容
  11. 老板最讨厌的10种烂个性
  12. c++vs解决字符常量过多
  13. 3dmax教程技术:3dmax 怎么去掉贴图_3dmax如何去掉贴图
  14. 2021年基于B/S的高校学生选课管理系统
  15. 读书笔记 - 《六神磊磊读唐诗》
  16. Matlab中median函数的使用
  17. 出一本自己的书,是一种怎样的体验?
  18. 2022年通信工程专业保研:从四非到浙大工院夏令营面试经验分享(前期准备篇/含通信原理面试真题)
  19. 安卓手机文件管理器内置FTP服务器无需安装任何软件共享安卓文件wifi下手机共享电脑文件
  20. RHEL 7.0下载

热门文章

  1. interview for chinaPay
  2. 基于众包采集定量数据的自适应结果推理
  3. CSS的三种样式——内联、内部、外部
  4. Java程序设计(2021春)——第三章类的重用笔记与思考
  5. c语言输出国旗图形,大家来看看国旗杂画
  6. 如何使用Arthas查看类变量值
  7. python调用谷歌翻译__201907
  8. laravel voyager 笔记
  9. 精通Web Analytics 2.0 (8) 第六章:使用定性数据解答”为什么“的谜团
  10. Linux工具学习之【git】