使用海思v500交叉编译器编译qt5.4.2版本

简介: 使用海思v500交叉编译器编译qt5.4.2版本

今天编译测试了下Qt的Webkit,在5.6版本以后,qt移除了webkit,换为了QWebEngine,这个QWebEngine不太好编译,没有编译过,就选了Q5.4.2版本,编译了webkit,这个编译通过了,放板子上调了下也能用,但是感觉效果不好。


qt配置命令脚本:

../qt-everywhere-opensource-src-5.4.2/configure -v -release \
    -extprefix  /opt/qt5.4-hisi \
        -opensource \
        -confirm-license  \
        -qt-sql-sqlite \
        -no-sse2 \
        -no-sse3 \
        -no-ssse3 \
        -no-sse4.1 \
        -no-sse4.2 \
        -no-avx \
        -no-avx2 \
        -no-mips_dsp \
        -no-mips_dspr2 \
        -no-pkg-config \
        -qt-zlib \
        -qt-libpng \
        -qt-libjpeg \
        -qt-freetype \
        -no-openssl \
        -qt-pcre \
        -qt-xkbcommon \
        -no-glib  \
        -nomake examples \
        -nomake tools \
        -nomake tests \
        -no-cups \
        -no-iconv \
        -no-dbus \
        -xplatform linux-arm-hisiv500-g++ \
        -no-use-gold-linker \
    -tslib \
    -I/opt/tslib5/include \
    -L/opt/tslib5/lib \
    -qpa linuxfb \
        -qreal float
exit

这个命令执行没有出问题,然后make -j8开始编译,这个过程比较慢,编译过程中出现几个问题,基本上都是webkit的相关部分的报错,主要有以下两个:


  1. 类型转换JSChar * 与UChar的转换,在变量前面加上强制类型转换即可(JSChar)或者(UChar*)。
  2. 还有个是少分号的“;”,直接在少分号的行后面加上分号即可。


整体上来说编译问题不大。


编译完成后,make install


我是直接把编译出来的库文件到下到板子上了,然后编译一个测试程序,刚开始出现这个问题:

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Aborted (core dumped)

在configure配置命令里加上以下参数重新编译了qt源码后解决了:

    -tslib \
    -I/opt/tslib5/include \
    -L/opt/tslib5/lib \
    -qpa linuxfb \


然后运行测试程序,也能打开网页,但是要想实现电脑上浏览器的效果,还是有很多路要走的!


感觉在嵌入式上不太实用。


编译的文件放在了百度网盘,想体验的朋友可以去下载:


链接:https://pan.baidu.com/s/1yI7CLM2K6j_2KBFiXKkSDw

提取码:813v


目录
相关文章
|
2天前
|
编译器 C语言 Windows
cryptopp使用Qt mingw编译,以及海思平台交叉编译
cryptopp使用Qt mingw编译,以及海思平台交叉编译
33 0
|
2天前
|
编译器 Linux
boost库交叉编译ARM版本
boost库交叉编译ARM版本
40 2
|
2天前
|
编译器
正点原子IMX6ULL-安装交叉编译器、编译tslib触摸屏库、编译arm环境qt源代码
正点原子IMX6ULL-安装交叉编译器、编译tslib触摸屏库、编译arm环境qt源代码
|
2天前
|
物联网 编译器 测试技术
【嵌入式 交叉编译器】如何在 ARM 架构下选择和使用高版本交叉编译器
【嵌入式 交叉编译器】如何在 ARM 架构下选择和使用高版本交叉编译器
309 7
|
2天前
交叉编译libvisca库ARM版本
交叉编译libvisca库ARM版本
41 0
|
5月前
|
Linux 开发工具 C++
Linux基础环境开发工具的使用(二):动静态库的理解,make,makefile(下)
Linux基础环境开发工具的使用(二):动静态库的理解,make,makefile
|
5月前
|
Linux 开发工具 C语言
Linux基础环境开发工具的使用(二):动静态库的理解,make,makefile(上)
Linux基础环境开发工具的使用(二):动静态库的理解,make,makefile
|
8月前
|
Ubuntu Java 编译器
iMX6 yocto平台QT交叉编译环境搭建
iMX6 yocto平台QT交叉编译环境搭建
171 0
iMX6 yocto平台QT交叉编译环境搭建
|
存储 Shell
编译移植龙芯2K1000平台下的qt-5.13
本文记录对龙芯2K进行qt5.13.1版本的移植。 本文中对于tslib的安装不做讲解,使用了QT4进行核心板开发的童鞋一般情况下,应该已经安装好了tslib了,直接使用就行。
424 0
|
存储 编译器 Linux
MDK编译过程及ARM编译工具链
MDK编译过程及ARM编译工具链
350 0
MDK编译过程及ARM编译工具链

热门文章

最新文章

推荐镜像

更多