Code Monkey home page Code Monkey logo

ebf_linux_qt_demo's Introduction

embedfire qt app

野火liunx-qt5-demo资料说明

  1. 本代码为Qt5代码,没特意做Qt4版本兼容。
  2. 本程序编译环境为qt5.6.2以上版本的。
  3. windows为mingw编译器,不支持vs编译器。
  4. Qt5-demo源码介绍,本程序是基于Qt5开发的,不支持Qt4直接编译。
  5. FileApp.pro为多工程目录,里面的QtUi为demo的自定义基础控件库。Skin为皮肤资源文件。这2个都是必须的,且比较重要。
  6. App为demo的综合程序,即为开发板看到的App程序。
  7. 其他注释的工程为单个的应用程序,可取消注释,单独编译。

编译使用

野火提供直接安装的SDK,安装后可以直接编译

SDK下载地址:链接:野火i.MX 6ULL Linux开发板https://url.cn/5Iv5apg,在5-编译工具链目录下。

i.MX6ULL系列\5-编译工具链\qt交叉编译工具 目录下找到 fsl-imx-x11-glibc-x86_64-meta-toolchain-qt5-cortexa7hf-neon-toolchain-4.1.15-2.1.0.sh 脚本并且下载

执行如下命令安装qt5的交叉编译工具链:

./fsl-imx-x11-glibc-x86_64-meta-toolchain-qt5-cortexa7hf-neon-toolchain-4.1.15-2.1.0.sh

选择默认设置,安装完成后,会在/opt/fsl-imx-x11/4.1.15-2.1.0/目录下生成我们所需要的工具链。

注意:每次打开终端时,都需要执行以下命令设置环境变量:

source /opt/fsl-imx-x11/4.1.15-2.1.0/environment-setup-cortexa7hf-neon-poky-linux-gnueabi 

输入命令

qmake -v 

若环境变量设置正确,则会出现以下信息

embedfire@dev1:~$ qmake -v
QMake version 3.0
Using Qt version 5.6.2 in /opt/fsl-imx-x11/4.1.15-2.1.0/sysroots/cortexa7hf-neon-poky-linux-gnueabi/usr/lib

以上是验证SDK安装是否成功!!

下载qt源码

clone

git clone https://github.com/Embdefire/ebf_linux_qt_demo.git

编译

./build.sh

如果build.sh不是可执行文件,可以使用以下命令添加可执行权限

chmod +x build.sh

输出

在当前目录下会创建一个run_dir目录,存在App libqui libskin文件,App是可以直接在开发板上运行的! 与此同时,还会打包一个fire-app-xxxx.tar.bz2文件,大家可以拷贝到对应的目录下解压替换掉旧的App

清除相关内容

make distclean

ebf_linux_qt_demo's People

Contributors

nigoole avatar jiejietop avatar flyleaf91 avatar taotaodiy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.