简体   繁体   English

使用Qt,Wt或NaCl构建框架?

[英]Building a Framework With Qt, and Wt, or NaCl?

I am contemplating designing a framework to allow for one C++ code base to become a desktop application and a web app for most major platforms (Mac OS, Windows, Linux, and possibly Android). 我正在考虑设计一个框架,允许一个C ++代码库成为大多数主要平台(Mac OS,Windows,Linux,可能还有Android)的桌面应用程序和Web应用程序。 I have decided Qt would be best for desktop builds, however I am conflicted between Google Native Client and Wt for the Web App part. 我已经确定Qt最适合桌面版本,但是我在Google Native Client和Wt之间对于Web App部分存在冲突。

Wt code may be more easily compatible with the Qt code, however I heard Wt is actually AJAX output so I do not know how much this will impact performance (I plan to develop a game engine with this so I need performance). Wt代码可能更容易与Qt代码兼容,但是我听说Wt实际上是AJAX输出,所以我不知道这会对性能有多大影响(我计划开发一个这样的游戏引擎,所以我需要性能)。

On the other hand NaCl, is more, well... native. 另一方面,NaCl更多,很好......原生。 But it seems to be a mess, especially with the JS integration, I just want to write in C++ and be done with it. 但它似乎是一团糟,尤其是JS集成,我只想用C ++编写并完成它。 Additionally I don't know how compatible it would be with Qt. 另外,我不知道它与Qt的兼容性如何。

I have been researching this for weeks and I do not know much about either. 我已经研究了几个星期,我也不太了解。 So it really boils down to: 所以它真的归结为:

A: Could I literally (or pretty much) replace all the W's in the front of the names of all Wt objects with Q's and have it be Qt compatible code? A:我可以直接(或几乎)用Q代替所有Wt对象名称前面的所有W并且它是Qt兼容代码吗?

B: Is Wt native at all, and how fast does it execute at run time (I cant seem to find an answer to this)? B:Wt是原生的,它在运行时的执行速度有多快(我似乎无法找到答案)?

It would be possible to run Wt as a NaCL application as well, in fact, that would combine the best of both worlds. 事实上,有可能将Wt作为NaCL应用程序运行,这将结合两者的优点。 Wt itself (and its dependencies) build fine with the NaCL toolchain, it's only a connector library that is missing currently. Wt本身(及其依赖项)使用NaCL工具链构建良好,它只是当前缺失的连接器库。 There was an opening for a GSOC project to implement last year, but it didn't happen. GSOC项目去年开放实施,但没有实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM