Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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). 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.

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).

On the other hand NaCl, is more, well... native. But it seems to be a mess, especially with the JS integration, I just want to write in C++ and be done with it. Additionally I don't know how compatible it would be with 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?

B: Is Wt native at all, and how fast does it execute at run time (I cant seem to find an answer to this)?

like image 669
The Floating Brain Avatar asked Jun 26 '12 00:06

The Floating Brain


1 Answers

It would be possible to run Wt as a NaCL application as well, in fact, that would combine the best of both worlds. Wt itself (and its dependencies) build fine with the NaCL toolchain, it's only a connector library that is missing currently. There was an opening for a GSOC project to implement last year, but it didn't happen.

like image 174
Koen Deforche Avatar answered Sep 28 '22 13:09

Koen Deforche