嵌入式linux开发,交叉编译qt4.8.5报错:not found (try using -rpath or -rpath-link)/home/ms/work/code/qt/opensourc
一、问题描述。
嵌入式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相关推荐
- 嵌入式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 ...
- 嵌入式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 ...
- 嵌入式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 ...
- 嵌入式Linux开发环境搭建-(4)安装交叉编译工具链
在ubuntu16.04.2中,安装交叉编译工具链 在ubuntu中进行嵌入式应用程序开发,安装交叉编译工具链是不可缺少的一个环节. PC操作系统:ubuntu16.04.2 LTS 开发板:天嵌科技 ...
- linux 嵌入式 交叉 环境搭建 实验原理,实验三 嵌入式Linux开发环境的搭建
南京邮电大学通达学院 实 验 报 告 实验 实验三题目 嵌入式Linux开发环境的搭建 课程名称 嵌入式驱动开发实验 学院 专业 班 实验者学号同做者学号 08002210 姓名 毛骏超 同做者学号 ...
- ubuntu20.04.1 64位搭建嵌入式linux开发环境
目录 背景 开发环境的搭建 1.交叉编译工具的安装 2.开发工具和依赖库的安装 2.1. 必需部分 2.2.可选部分 ubuntu20.04.1 64位配置和编译Linux3.0内核 背景 市面上的嵌 ...
- 《嵌入式Linux开发实用教程》
<嵌入式Linux开发实用教程> 基本信息 作者: 朱兆祺 李强 袁晋蓉 出版社:人民邮电出版社 ISBN:9787115334831 上架时间:2014-2-13 出版日期: ...
- Linux学习之云服务器搭建嵌入式Linux开发环境
Linux学习之云服务器搭建嵌入式Linux开发环境 第一步:购买云服务器 进入腾讯云官方网站腾讯云官方网站 选择云+校园云+校园 进入控制台 将云服务器系统设置为Ubuntu系统 使用Xshell6 ...
- 假设linux分配给u盘设备名是,嵌入式linux开发基础试卷-应用物理A答案
试 卷 考试科目: 嵌入式 linux 开发基础 姓名: 试卷适用专业(班) : 09 应用物理 套别:A 套(√)B 套( ) 五 20 六 七 总计 100 考核方式:开卷( )闭卷(√) 了多达 ...
最新文章
- 【AMAD】import-string -- 通过字符串来import一个对象
- 检测子进程的结束返回状态,status的取值可以是哪些?(简析)
- 多选取值_R语言缺失值的处理——回归预测法
- Ubuntu安装Nginx+PHP5.6+MySQL5.6
- java中的jsonjar_java中使用json之相关jar包介绍
- ftp 工具_ftp工具软件,五大站长们都爱的ftp工具软件
- ArcGIS Server Java 9.3 REST API的中文查询问题的解决方案
- java中string类面试题_java中String类的面试题大全含答案
- Javascript设计模式学习二(单例)
- 大数据系统架构包含哪些内容
- 老板最讨厌的10种烂个性
- c++vs解决字符常量过多
- 3dmax教程技术:3dmax 怎么去掉贴图_3dmax如何去掉贴图
- 2021年基于B/S的高校学生选课管理系统
- 读书笔记 - 《六神磊磊读唐诗》
- Matlab中median函数的使用
- 出一本自己的书,是一种怎样的体验?
- 2022年通信工程专业保研:从四非到浙大工院夏令营面试经验分享(前期准备篇/含通信原理面试真题)
- 安卓手机文件管理器内置FTP服务器无需安装任何软件共享安卓文件wifi下手机共享电脑文件
- RHEL 7.0下载