Qt 应用程序可以在 Google Native Client 中运行吗?
我不熟悉 Qt 或 Google Native Client。 是否可以将简单的 Qt 控制台应用程序移植到 Google Native Client? 我知道会涉及一些工作。 但问题是,如果可能的话,多少钱?
I'm not familiar with Qt or with Google Native Client. Is it possible for a TRIVIAL Qt console application to be ported to Google Native Client? I understand that some work would be involved. But the question is, how much if it's even possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
Qt 开发人员成功地在 Native Client 下运行了一些 Qt 示例:
http://blog .qt.io/blog/2009/12/17/take-it-with-grain-of-salt/
A Qt developer has managed to get some Qt examples running under Native Client:
http://blog.qt.io/blog/2009/12/17/take-it-with-a-grain-of-salt/
Qt 现在有官方的 Native Client SDK:
http://qt-project.org/wiki/Qt_for_Google_Native_Client
Qt now has an official Native Client SDK:
http://qt-project.org/wiki/Qt_for_Google_Native_Client
Qt for Google Native Client 预览版也在此处更新:http://qt-project.org/wiki/Qt_for_Google_Native_Client< /a>
Qt for Google Native Client Preview also updated here: http://qt-project.org/wiki/Qt_for_Google_Native_Client
由于您无法使用系统调用,因此您需要将 Qt 移植到新的操作系统(即 Native Client)。 这将是一项繁重的工作 - 祝你好运!
Since you can't use system calls, you'd need to essentially port Qt to a new OS (ie, Native Client). This'll be a lot of work - good luck!
对于那些有兴趣将 Qt 与 NaCl 一起使用的人,我制作了一个包含用 NaCl 编译的 Qt 的 Docker 映像:
链接到 Docker 映像
您只需按照说明即可编译您的应用程序。
还有一个视频展示了用 NaCl 编译 Qt 的过程。 在该视频的末尾,有一个示例:
使用 NaCl 编译 Qt 的视频的链接
希望这有帮助
For those who are interested in using Qt with NaCl, I have made a Docker image containing Qt compiled with NaCl :
Link to Docker Image
You will just need to follow the instructions to get your application compiled.
There is also a video showing the process of compiling Qt with NaCl. At the end of this video, there is an example:
Link to video of Qt compiled with NaCl
Hope this help