QT-Embedded-4.5.3在海思35xx上移植
QT4.5.3在海思3520A上移植步骤-修订版
2015年3月29日星期日, 16:59:03
1.首先要保证已经安装了海思的交叉编译器;
#arm-hi + Tab key to show which toolchainhave been installed
[root@roger]#arm-hi
arm-hisiv100nptl-linux-addr2line arm-hisiv100nptl-linux-gprof
arm-hisiv100nptl-linux-ar arm-hisiv100nptl-linux-ld
arm-hisiv100nptl-linux-as arm-hisiv100nptl-linux-nm
arm-hisiv100nptl-linux-c++ arm-hisiv100nptl-linux-objcopy
arm-hisiv100nptl-linux-c++filt arm-hisiv100nptl-linux-objdump
arm-hisiv100nptl-linux-cpp arm-hisiv100nptl-linux-ranlib
arm-hisiv100nptl-linux-g++ arm-hisiv100nptl-linux-readelf
arm-hisiv100nptl-linux-gcc arm-hisiv100nptl-linux-size
arm-hisiv100nptl-linux-gcc-4.4.1 arm-hisiv100nptl-linux-strings
arm-hisiv100nptl-linux-gccbug arm-hisiv100nptl-linux-strip
arm-hisiv100nptl-linux-gcov
2.下载qt-embedded-linux-opensource-src-4.5.3;
下载地址:
2.1 官网地址:
ftp://ftp.qt.nokia.com/qt/source/qt-embedded-linux-opensource-src-4.5.3.tar.gz
3.更改qt-embedded-linux-opensource-src-4.5.3/mkspecs/qws/linux-arm-g++/qmake.conf如下
include(../../common/g++.conf)
include(../../common/linux.conf)
include(../../common/qws.conf)
# modificationsto g++.conf
#arm-hi + Tab key to show which toolchainhave been installed
CCHEAD?= arm-hisiv100nptl-linux-
QMAKE_CC = $(CCHEAD)gcc
QMAKE_CXX =$(CCHEAD)g++
QMAKE_LINK =$(CCHEAD)g++
QMAKE_LINK_SHLIB = $(CCHEAD)g++
#modifications to linux.conf
QMAKE_AR = $(CCHEAD)ar cqs
QMAKE_OBJCOPY =$(CCHEAD)objcopy
QMAKE_STRIP = $(CCHEAD)strip
load(qt_config)
4.配置qt-embedded-linux-opensource-src-4.5.3
cd qt-embedded-linux-opensource-src-4.5.3
./configure -embedded arm \
-qt-libpng \
-qt-libjpeg \
-qt-libtiff \
-qt-libmng \
-qt-gif \
-qt-zlib \
-fast \
-no-webkit \
-nomake examples \
-nomake demos \
-static \
-little-endian\
--prefix=/usr/local/qt-4.5.3
其中 --prefix是编译QT后要安装的路径,可以根据自己实际情况更改。
5.编译QT库 -- 此处较为耗时,大概30min
gmake
6. 安装QT库
gmake install
7.更改虚拟机的环境变量
export QMAKESPEC=/usr/local/qt-4.5.3/mkspecs/qws/linux-arm-g++
export PATH="/usr/local/qt-4.5.3/bin":$PATH
要根据实际情况更改上边的2个环境变量。/usr/local/qt-4.5.3是自定义的QT的安装路径
8.检查QT环境变量是否设置成功。
输入 which qmake 后显示路径应该是QT安装目录里的qmake.
[root@rogerqt-4.5.3]# which qmake
/usr/local/qt-4.5.3/bin/qmake
9.qt 库安装完成。
==========================================================================
安装过程中的相关出错信息:
1、
g++ -c -pipe -fno-exceptions -O2 -Wall -W -D_REENTRANT -fPIC -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DHB_EXPORT=Q_CORE_EXPORT -DQT_NO_DEBUG -I../../mkspecs/qws/linux-x86-g++ -I. -I../../include -I../../include/QtCore -I.rcc/release-static-emb-arm -Iglobal -I../3rdparty/zlib -I../3rdparty/harfbuzz/src -I.moc/release-static-emb-arm -o .obj/release-static-emb-arm/qfutureinterface.o concurrent/qfutureinterface.cpp
{standard input}: Assembler messages:
{standard input}:407: Error: no such instruction: `swpb %cl,%al,[%esi]'
{standard input}:420: Error: no such instruction: `swpb %al,%dil,[%esi]'
{standard input}:431: Error: no such instruction: `swpb %cl,%al,[%esi]'
{standard input}:1025: Error: no such instruction: `swpb %cl,%al,[%esi]'
.
.
.
.
.
. {standard input}:6283: Error: no such instruction: `swpb %cl,%al,[%edi]'
{standard input}:6296: Error: no such instruction: `swpb %al,%sil,[%edi]'
{standard input}:6307: Error: no such instruction: `swpb %cl,%al,[%edi]'
gmake[1]: *** [.obj/release-static-emb-arm/qfutureinterface.o] 错误 1
gmake[1]: Leaving directory `/root/Download/qt-embedded-linux-opensource-src-4.5.3/src/corelib'
gmake: *** [sub-corelib-make_default-ordered] 错误 2
[root@roger qt-embedded-linux-opensource-src-4.5.3]#
检索 Log信息 发现: 交叉编译工具链的名称写错了, 修正后即可;
2、
The target system byte order could not be detected!
Turn on verbose messaging (-v) to see the final report.
You can use the -little-endian or -big-endian switch to
./configure to continue.
根据提示信息 可知: 未指定 大小端 模式, 指定 -little-endian 即可;
/* 测试 大小端 模式 Sample, 编译执行文件 到目标机运行即可 */
#include "stdio.h"
int main()
{
union w
{
int a; //4 bytes
char b; //1 byte
} c;
c.a=1;
if (c.b==1)
printf("It is Little_endian!\n");
else
printf("It is Big_endian!\n");
return 1;
}
Step 4:
# ./configure -embedded arm -qt-libpng -qt-libjpeg -qt-libtiff -qt-libmng -qt-gif -qt-zlib -fast -no-webkit -nomake examples -nomake demos-little-endian -static --prefix=/usr/local/qt-4.5.3
QT-Embedded-4.5.3在海思35xx上移植的更多相关文章
- 海思3519A上移植OpenCV3.x
环境安装与准备 下载opencv3.4.1. 或者 下载opencv3.2.0. 进入到opencv所在的目录新建目录build,install 安装cmake: apt-get install cm ...
- 在海思芯片上使用GDB远程调试
1 前言 使用海思平台上(编译工具链:arm-himix200-linux)交叉编译 GDB 工具(使用版本8.2,之前用过10.2的版本,在编译 gdbserver 遇到编译出错的问题,因为关联了其 ...
- 海思3519 qt ffmpeg 软解码播放avi
在海思3519上基于qt采用ffmpeg对avi进行解码显示,其中ffmpeg的配置,qt的配置在前文中已经说明,在此不再赘述. 解码 解码在单独的线程中进行,具体的代码如下: void VideoP ...
- 海思板卡SATA最佳读写块大小测试
1 引言 应需求,在海思板子上测试SATA读写速度,用dd指令,每次分别读/写不同大小的块 (bs),同时检测运行dd命令CPU占比,记录读/写速度和CPU占比. 2 实验过程 2. ...
- 海思hi3516 ive运动目标检测简单实现
在做车牌识别项目,通过先对识别区域内进行目标识别,能降低CPU的占用率,在检测到有运动目标的时候,再做车牌识别. //图像差分 s32Ret = HI_MPI_IVE_Sub(&IveHand ...
- 海思3559A QT 5.12移植(带webengine 和 opengl es)
海思SDK版本:Hi3559AV100_SDK_V2.0.1.0 编译器版本:aarch64-himix100-linux-gcc 6.3.0(这个版本有点小问题,使用前需要先清除本地化设置) $ e ...
- 海思3519A 移植 Qt 5.5.1
源码下载 网址:qt-everywhere-opensource-src-5.5.1.tar.gz 配置生成MakeFile 文件 解压源码包,在源码包路径下生成配置 MakeFile : ./con ...
- cryptopp使用Qt mingw编译,以及海思平台交叉编译
编译工程生成,使用qmake生成qt工程文件(海思平台时,要用海思平台的qmake),将 TEMPLATE = app 修改为: TEMPLATE = lib 添加如下: win32:LIBS += ...
- 海思 3520D 移植Qt4.5.3 一
一.移植Qt4.5.3 1.获得 Qt4.5.3 的源码Qt4.5.3源码的原始包 qt-embedded-opensource-src-4.5.3.tar.gz 将其复制到 /opt 下, ...
随机推荐
- Python 学习之Virtualenv
Virtualenv是一个python环境的隔离工具,主要解决库的隔离和权限问题 Refer:中文版Virtualevn解释 用virtualenv创建多个python环境 我们360如何使用pyth ...
- SpringIOC学习_属性注入(依赖注入)
一.应用场景:Spring会帮创建实现类的实例,但是有时候我们还需要在类中设置一些属性用于传入设置值,这些跟类紧密关联的属性就叫依赖,通过spring帮忙设置的过程叫依赖注入. 二.依赖注入的实现 A ...
- JS操作CSS
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...
- 《基于Node.js实现简易聊天室系列之总结》
前前后后完成这个聊天室的Demo花了大概一个星期,当然一个星期是仅仅指编码的工作.前期的知识储备是从0到1从无到有,花费了一定的时间熟悉Node.js的基本语法以及Node.js和mongoDB之间的 ...
- 13 Red-black Trees
13 Red-black Trees Red-black trees are one of many search-tree schemes that are "balanced" ...
- 摘:关于php调用.net的web service 踩过的坑
文档地址:http://www.cnblogs.com/wyycc/p/6722701.html
- Node.js——异步上传文件
前台代码 submit() { var file = this.$refs.fileUpload.files[0]; var formData = new FormData(); formData.a ...
- 【译】x86程序员手册36-9.9异常汇总
9.9 Exception Summary 异常汇总 Table 9-6 summarizes the exceptions recognized by the 386. Table 9-6. Exc ...
- (转)淘淘商城系列——使用maven构建工程时出现的错误
http://blog.csdn.net/yerenyuan_pku/article/details/72690846 我觉得maven就他妈是一个傻逼,反正我是对它无语了.昨天刚刚使用maven构建 ...
- Which dispatch method would be used in Swift?-Existential Container
In this example: protocol MyProtocol { func testFuncA() } extension MyProtocol { func testFuncA() { ...