瑞芯微Rockchip开发者社区
直播中

山中老虎

9年用户 993经验值
擅长:制造/封装
私信 关注
[问答]

如何搭建飞凌imx6ul Qt5.6.2 + linux 4.1.15开发环境?

如何搭建飞凌imx6ul Qt5.6.2 + linux 4.1.15开发环境?

回帖(1)

古贤睦

2022-1-7 09:55:20
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
举报

更多回帖

发帖
×
20
完善资料,
赚取积分