summaryrefslogtreecommitdiffstats
path: root/readme-nacl
blob: 4b7f04bbb231ed50c764f0b3d7f75959adcc026e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Compiling Qt for Native client.

Qt for Google Native Client supports building on either Mac or Linux systems. The resulting
binaries run on any NaCl-enabled x86 system.

After installing Native Client (and testing the installation following the instructions), 
make sure the gcc binaries and sel_ldr are in your path. For example:

Mac:
export PATH=$PATH:/path/to/ncal/build/native_client/src/third_party/nacl_sdk/mac/sdk/nacl-sdk/bin
export PATH=$PATH:/path/to/ncal/build/native_client/scons-out/opt-mac-x86-32/staging/

Linux:
export PATH=$PATH:/path/to/ncal/build/native_client/src/third_party/nacl_sdk/linux/sdk/nacl-sdk/bin/
export PATH=$PATH:/path/to/ncal/build/native_client/scons-out/opt-linux-x86-32/staging/

(Test by running nacl-gcc and sel_ldr, which should be in the path now)

Configure Qt
./configure -nacl /path/to/nacl/build

(If you get a "The target system byte order could not be detected" error message,
then nacl-gcc isn`t in your path.)

Build Qt
cd src/tools; make ; cd ../.. (workaround to build moc etc)
make sub-src (should succeed)
make -k (will build as many examples and demos as possible, and then fail)

Test (sel_ldr)
Run: sel_ldr examples/widgets/wiggly/wiggly

Test (browser)
Use tools/nacldemoserver to browse the examples. Nacldemoserver needs to be compiled
for the host system - use a different Qt buld, not the NaCl one:

cd tools/nacldemoserver
/path/to/other/qmake -nocache
make
./nacldemoserver
Point your browser to http://localhost:5103/