| b40dc40 by Morten Johan Sørvig at 2009-12-16 | 1 | Compiling Qt for Native client. |
| 699daea by Morten Johan Sørvig at 2009-12-16 | 2 | |
| cb17a06 by Morten Sorvig at 2009-11-29 | 3 | Qt for Google Native Client supports building on either Mac or Linux systems. The resulting |
| 4 | binaries run on any NaCl-enabled x86 system. |
|
| 5 | ||
| 699daea by Morten Johan Sørvig at 2009-12-16 | 6 | After installing Native Client (and testing the installation following the instructions), |
| cb17a06 by Morten Sorvig at 2009-11-29 | 7 | make sure the gcc binaries and sel_ldr are in your path. For example: |
| 699daea by Morten Johan Sørvig at 2009-12-16 | 8 | |
| cb17a06 by Morten Sorvig at 2009-11-29 | 9 | Mac: |
| 699daea by Morten Johan Sørvig at 2009-12-16 | 10 | export PATH=$PATH:/path/to/ncal/build/native_client/src/third_party/nacl_sdk/mac/sdk/nacl-sdk/bin |
| 11 | export PATH=$PATH:/path/to/ncal/build/native_client/scons-out/opt-mac-x86-32/staging/ |
|
| 12 | ||
| cb17a06 by Morten Sorvig at 2009-11-29 | 13 | Linux: |
| 14 | export PATH=$PATH:/path/to/ncal/build/native_client/src/third_party/nacl_sdk/linux/sdk/nacl-sdk/bin/ |
|
| 15 | export PATH=$PATH:/path/to/ncal/build/native_client/scons-out/opt-linux-x86-32/staging/ |
|
| 16 | ||
| 17 | (Test by running nacl-gcc and sel_ldr, which should be in the path now) |
|
| 18 | ||
| 699daea by Morten Johan Sørvig at 2009-12-16 | 19 | Configure Qt |
| cb17a06 by Morten Sorvig at 2009-11-29 | 20 | ./configure -nacl /path/to/nacl/build |
| 699daea by Morten Johan Sørvig at 2009-12-16 | 21 | |
| cb17a06 by Morten Sorvig at 2009-11-29 | 22 | (If you get a "The target system byte order could not be detected" error message, |
| 23 | then nacl-gcc isn`t in your path.) |
|
| 24 | ||
| 25 | Build Qt |
|
| f197b73 by user at 2010-03-23 | 26 | cd src/tools; make ; cd ../.. (workaround to build moc etc. NOTE: edit the linker |
| 27 | line and remove "-L"library paths poiting to the native |
|
| 28 | client installation if you get linker errors.) |
|
| 699daea by Morten Johan Sørvig at 2009-12-16 | 29 | make sub-src (should succeed) |
| 30 | make -k (will build as many examples and demos as possible, and then fail) |
|
| 31 | ||
| 32 | Test (sel_ldr) |
|
| 33 | Run: sel_ldr examples/widgets/wiggly/wiggly |
|
| 34 | ||
| 35 | Test (browser) |
|
| 4aea195 by Morten Sorvig at 2010-02-05 | 36 | Use tools/nacldemoserver to browse the examples. Nacldemoserver needs to be compiled |
| 37 | for the host system - use a different Qt buld, not the NaCl one: |
|
| 38 | ||
| 39 | cd tools/nacldemoserver |
|
| 40 | /path/to/other/qmake -nocache |
|
| 41 | make |
|
| 42 | ./nacldemoserver |
|
| 43 | Point your browser to http://localhost:5103/ |
|
| cb17a06 by Morten Sorvig at 2009-11-29 | 44 |

