10

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?

SRN
  • 2,418
  • 3
  • 22
  • 26
JP Richardson
  • 38,609
  • 36
  • 119
  • 151

5 Answers5

7

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/

m7913d
  • 10,244
  • 7
  • 28
  • 56
Mark Seaborn
  • 86
  • 1
  • 1
4

Qt now has an official Native Client SDK:

http://qt-project.org/wiki/Qt_for_Google_Native_Client

Russ
  • 10,835
  • 12
  • 42
  • 57
  • 1
    @SalmanPK I've heared that there is option to develop from Visual Studio for Windows. Otherwise, you can always end up in running Linux in Virtual Machine, there are plenty VM images ready to run. I hope you will find your way. – Grzegorz Wierzowiecki Feb 14 '14 at 20:41
3

Qt for Google Native Client Preview also updated here: http://qt-project.org/wiki/Qt_for_Google_Native_Client

m7913d
  • 10,244
  • 7
  • 28
  • 56
Mason Zhang
  • 3,423
  • 24
  • 35
2

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!

bdonlan
  • 224,562
  • 31
  • 268
  • 324
0

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

Ali Diouri
  • 86
  • 1
  • 9