我如何交叉编译imx6 Qt应用程序? [英] How do I cross-compile a QT application for imx6?

查看:1411
本文介绍了我如何交叉编译imx6 Qt应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何交叉编译飞思卡尔Hummingboard(imx6(ARM))Qt应用程序?

How do I cross-compile a QT application for a Freescale Hummingboard(imx6(arm))?

有一些导游身边,但我没能完成一次成功。

There are some guides around, but I've not been able to complete one with success.

以下(及以上)导游给我的./configure编译错误
<一href=\"http://forum.solid-run.com/linux-on-cubox-i-and-hummingboard-f8/qt5-3-on-hummingboard-t2072.html\" rel=\"nofollow\">http://forum.solid-run.com/linux-on-cubox-i-and-hummingboard-f8/qt5-3-on-hummingboard-t2072.html
https://community.freescale.com/docs/DOC-94066
当我运行./configure命令(使用推荐的命令,我已经试过这与很多的命令可能性,但没有得到工作)。我得到了所有的QT使用外部库(zlib的,的libjpeg,libpng的,等等)编译错误。所以这是从那里死路一条。

The following (and more) guides give me a compile error on ./configure http://forum.solid-run.com/linux-on-cubox-i-and-hummingboard-f8/qt5-3-on-hummingboard-t2072.html https://community.freescale.com/docs/DOC-94066 When I run the ./configure command (With recommended commands, I've tried this with a lot of possibilities for commands but got none working). I got a compile error for all the external libraries QT uses (zlib, libjpeg, libpng, etc.). So it's a dead end from there.

我已经尝试了很多东西,我甚至不记得我试过的东西,但我没有什么工作。

I've tried a lot more stuff, I don't even remember all the stuff I've tried, but I got nothing working.

我试图用微型分布的Hummingboard。这是没有窗口管理器系统,该系统能够运行Qt应用程序(QT5)。构建工具,我想要使用的GCC-Linaro的臂-Linux的gnueabi,我使用Qt创建者。我有QT在Hummingboard的工作,我只是不能它编译任何东西。

I'm trying to use mini-distribution for the Hummingboard. It's a system without window manager that is able to run QT applications (QT5). The build tool I'm trying to use is gcc-linaro-arm-linux-gnueabi, I'm using QT Creator. I've got QT working on the Hummingboard, I just can't compile anything for it.

推荐答案

我设法建立了IMX6最终的应用程序。这里是我做到了其他的。这不是一个最佳的解决方案,但它是一个解决方案。

I managed building an application for the IMX6 finally. Here is how I did it for other's. It's not an optimal solution but it is an solution.

我用Buildgear打造迷你distirbution作为操作系统(谷歌它,而不是用我的名声足够的链接)。我在我自己的应用程序添加到这一微型分布也建立它。这是通过把创建的构建文件/交叉/交叉hummingboard文件夹中的文件夹并添加构建文件做了(我是这样 HTTP: //pastebin.com/bZkJUiry )。在这个文件夹我也把这个项目文件(包括.PRO)的的.tar。为了得到它通过将其添加到依赖列表打造我加上QT-桂作为一个依赖于FS(构建文件/交叉/交叉hummingboard / FS)。

I use Buildgear to build mini-distirbution as OS (Google it, not enough links with my reputation). I append my own application to this mini-distribution to also build it. This is done by placing creating a folder in the buildfiles/cross/cross-hummingboard folder and adding a buildfile (mine look like this http://pastebin.com/bZkJUiry). In this folder I also place a .tar of the project files (including the .pro). To get it to build I add "qt-gui" as a dependency to the fs (buildfiles/cross/cross-hummingboard/fs) by adding it to the list of depends.

我然后运行buildgear打造FS,这将创建一个(柏油)的图像,包括我的(工作)QT应用!然后,我解压可执行./qt-gui并ssh到Hummingboard。

I then run buildgear build fs, which will create an (Tarred) image including my (working) qt-application! I then extract the ./qt-gui executable and ssh it to the Hummingboard.

当然,这是所有有点麻烦,所以我提出,自动化的脚本这一切: http://pastebin.com/ jFM6rZyY
它复制和焦油的来源,与FS一起编译,提取可执行文件,SSH的文件到hummingboard并运行它。大约3分钟时间构建但它的作品这是我在这一点最重要的。

Of course this is all a bit cumbersome so I made a script that automates this all: http://pastebin.com/jFM6rZyY It copies and Tars sources, compiles it together with the fs, extracts the executable, ssh's the file to the hummingboard and runs it. Takes about 3 minutes building but it works which is what counts for me at this point.

这篇关于我如何交叉编译imx6 Qt应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆