海思3519开发板上移植Qt5.7遇到问题
环境: HOST: Ubuntu 14.04.1 板卡:hi3519评估板 SDK:Hi3519_SDK_V1.0.2.0 Qt版本: 5.7
我是Qt新人,目的是在3519板子上用Qt作界面。因为3519 SDK里面gcc版本太新,编译Qt4有问题(我试过4.6),因此索性用最新的5.7
目前情况:Qt交叉编译完成,用静态编译生成的控制台(console)Qt程序可以在3519板子上运行并打印出hello world。因此Qt本身的交叉编译,生成的静态库应当都没有问题。
进一步尝试界面程序(就是一个窗体空壳),步骤如下:
- 参照论坛nfswfx兄的帖子 http://www.ebaina.com/bbs/forum.php?mod=viewthread&tid=11722&extra=page%3D2,把他的两个.h和.cpp文件添加到程序文件夹编译,目的是能在hifb输出
- 把拨码开关拨到HDMI输出
- 运行load3519,包括hifb在内的各模块加载正常
- 命令行下运行界面程序 / # ./test0629 显示错误 This application failed to start because it could not find or load the Qt platform plugin "xcb" in "".
如果运行 / # ./test0629 -platform linuxfb 或者 / # ./test0629 -platform hsfb 则提示类似错误,表示没有包含linuxfb和hsfb
我的configure设置 (写的可能有问题,不知道怎么把那些不需要的模块去掉,所以逐条no或者skip):
./configure \
-prefix /usr/local/qt5.7_static \
-confirm-license \
-opensource \
-static \
-release \
-xplatform linux-arm-hisiv500-g++ \
-qt-libjpeg \
-no-opengl \
-no-xcb \
-no-largefile \
-no-accessibility \
-no-sse2 \
-nomake tests \
-nomake examples \
-nomake tools \
-no-openssl \
-no-nis \
-no-cups \
-no-dbus \
-no-sql-sqlite \
-skip qt3d \
-skip qtactiveqt \
-skip qtandroidextras \
-skip qtcanvas3d \
-skip qtcharts \
-skip qtconnectivity \
-skip qtdatavis3d \
-skip qtdeclarative \
-skip qtdoc \
-skip qtgamepad \
-skip qtgraphicaleffects \
-skip qtimageformats \
-skip qtlocation \
-skip qtmacextras \
-skip qtmultimedia \
-skip qtpurchasing \
-skip qtquickcontrols \
-skip qtquickcontrols2 \
-skip qtscript \
-skip qtscxml \
-skip qtsensors \
-skip qtserialbus \
-skip qtserialport \
-skip qtsvg \
-skip qttools \
-skip qttranslations \
-skip qtvirtualkeyboard \
-skip qtwayland \
-skip qtwebchannel \
-skip qtwebsockets \
-skip qtwebview \
-skip qtwinextras \
-skip qtx11extras \
-skip qtxmlpatterns \
-no-qpa-platform-guard
我的qmake.conf
#
qmake configuration for building with arm-hisiv500-linux-g++
#
MAKEFILE_GENERATOR = UNIX CONFIG += incremental QMAKE_INCREMENTAL_STYLE = sublib
include(../common/linux.conf) include(../common/gcc-base-unix.conf) include(../common/g++-unix.conf)
leilc added
QT_QPA_DEFAULT_PLATFORM = hifb #eglfs
QMAKE_CFLAGS_RELEASE += -O2
QMAKE_CXXFLAGS_RELEASE += -O2 -march=armv7
modifications to g++.conf
QMAKE_CC = arm-hisiv500-linux-gcc QMAKE_CXX = arm-hisiv500-linux-g++ QMAKE_LINK = arm-hisiv500-linux-g++ QMAKE_LINK_SHLIB = arm-hisiv500-linux-g++
modifications to linux.conf
QMAKE_AR = arm-hisiv500-linux-ar cqs QMAKE_OBJCOPY = arm-hisiv500-linux-objcopy QMAKE_NM = arm-hisiv500-linux-nm -P QMAKE_STRIP = arm-hisiv500-linux-strip load(qt_config)
目前我有两个问题:
- 怎样让程序运行不报错,或者是跟hifb对接上。
- 如何能在外接的hdmi屏幕上显示界面
请大家赐教,十分感谢。














Markdown 语法
- 加粗 **内容**
- 斜体 *内容*
- 删除线 ~~内容~~
- 引用 > 引用内容
- 代码 `代码`
- 代码块 ```编程语言↵代码```
- 链接 [链接标题](url)
- 无序列表 - 内容
- 有序列表 1. 内容
- 缩进 内容
- 图片 
-
2016-09-14 14:11:35
-
2020-09-04 13:38:11
-
2017-06-16 11:41:58
-
2020-08-19 14:33:43
-
2016-06-28 17:50:23
-
2017-12-18 21:52:13
-
2016-08-26 10:17:04
-
2021-01-27 14:37:36
-
2016-07-15 14:51:17
-
2020-09-27 15:46:20
-
2016-07-26 10:40:51
-
2017-02-04 15:38:48
-
2018-12-21 09:51:56
-
22015-05-18 11:51:08
-
2022-11-21 18:35:47
-
2017-02-09 18:23:33
-
12012-11-24 21:53:35
-
2020-02-25 11:59:14
-
2019-11-06 23:36:59

-
100海思3798MV100/MV300为何不能运行到标称的最高频率
-
100海思HI3519AV100适配imx283,MIPI有中断,VI pipe层帧全部丢弃
-
50hisi3516dv300 接入bt1120问题2
-
50海思HI3559AV100芯片的视频拼接丢帧问题
-
30rv1126如何获取网络摄像头的rtsp流
-
20求助思路: 用rknn推理rtsp流中的帧
-
20Camera sensor i2c 不通
-
20海思增益在很暗环境上不去, 在16000上下跳动
-
10求买一份海思在liteos/fs/fat/fsck的源码,想参考下顶尖的团队是如何改写fsck的
-
10hi3559AV 硬解码mp4,ts等封装好的视频