gpt4 book ai didi

linux - NXP i.MX6 上的嵌入式 Electron

转载 作者:太空狗 更新时间:2023-10-29 12:26:26 32 4
gpt4 key购买 nike

今年早些时候,我使用 Electron 框架(由 Github 制作)开发了一个应用程序,现在我想将它嵌入到我购买的 SBC 中。SBC 是来自 DIGI 的 ConnectCore6,基于 NXP i.MX6 处理器,并通过 HDMI 连接到屏幕。

我可以使用 Yocto 为这个 SBC 生成 Linux 镜像,并在上面加载 GTK 和 QT 应用程序。但是,我想知道为这个硬件创建我的 Electron 应用程序的兼容版本是一项容易、困难还是不可能完成的任务。

我不知道 Electron 需要什么才能在 PC(Windows、Linux 和 OS X)上工作,应该在 SBC 上进行设置才能获得相同的结果。

你能帮我解决这个问题,并可能指导我找到一种在板上执行 Electron 应用程序的方法吗?

谢谢

安托万

最佳答案

这项工作可以很容易。

您可以简单地配置您的工具(例如 qt creator)以使用 Yocto SDK 的交叉编译器和交叉库。

查看 Electron web site我找到了

Cross compilation If you want to build for an arm target you should also install the following >dependencies:

$ sudo apt-get install libc6-dev-armhf-cross linux-libc-dev-armhf-cross \
g++-arm-linux-gnueabihf

And to cross compile for arm or ia32 targets, you should pass the --target_arch parameter to the bootstrap.py script:

$ ./script/bootstrap.py -v --target_arch=arm

主要问题是如果 Electron 框架所需的库不能作为开源或已经交叉编译。在这种情况下,您必须向库提供者询问它。

关于linux - NXP i.MX6 上的嵌入式 Electron ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39144612/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com