|
本帖最后由 Qiankun.G 于 2021-11-4 09:24 编辑
1.安装x86 Qt5.6.2程序(使用root)
2.安装 arm-qt5.6.2
root@ubuntu:/opt# /home/test/Desktop/fsl-imx-x11-glibc-x86_64-meta-toolchain-qt5-cortexa7hf-neon-toolchain-4.1.15-2.0.0.sh
Freescale i.MX Release Distro SDK installer version 4.1.15-2.0.0
================================================================
Enter target directory for SDK (default: /opt/fsl-imx-x11/4.1.15-2.0.0):
The directory "/opt/fsl-imx-x11/4.1.15-2.0.0" already contains a SDK for this architecture.
If you continue, existing files will be overwritten! Proceed[y/N]? y
Extracting SDK...............................................................................................................................................................done
Setting it up...done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
$ . /opt/fsl-imx-x11/4.1.15-2.0.0/environment-setup-cortexa7hf-neon-poky-linux-gnueabi
设置环境
root@ubuntu:/opt# . /opt/fsl-imx-x11/4.1.15-2.0.0/environment-setup-cortexa7hf-neon-poky-linux-gnueabi
启动qt 程序 用root 用户
root@ubuntu:/opt# Qt5.6.2/Tools/QtCreator/bin/qtcreator
3.注意:如果编译报错 fatal error: GLES3/gl3.h: No such file or directory则,修改
root@ubuntu:/opt/fsl-imx-x11# gedit /opt/fsl-imx-x11/4.1.15-2.0.0/sysroots/cortexa7hf-neon-poky-linux-gnueabi/usr/include/qt5/QtCore/qconfig.h
注释掉
//#if defined(QT_OPENGL_ES_3) && defined(QT_NO_OPENGL_ES_3)
//# undef QT_OPENGL_ES_3
//#elif !defined(QT_OPENGL_ES_3) && !defined(QT_NO_OPENGL_ES_3)
//# define QT_OPENGL_ES_3
//#endif |
|