1
Compiling Qt for Native client.
2
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
6
After installing Native Client (and testing the installation following the instructions), 
7
make sure the gcc binaries and sel_ldr are in your path. For example:
8
9
Mac:
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
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
19
Configure Qt
20
./configure -nacl /path/to/nacl/build
21
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
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.)
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)
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/