blob: ecbe9667d1a82c07285c8548f2cb8b08f7a2ba84 [file] [log] [blame]
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001I have managed to build Xvnc on HPUX but only with some ugly hacking of
2the X tree. The X tree I used as the basis for the build is the XFree86 4.2.0
3tree. The XFree86 4.3.0 tree is unsuitable as it seems to have had some HPUX
4stuff removed from it. I built using the aCC C++ compiler.
5
6Set the following environment variables:
7
8 % CXX=/opt/aCC/bin/aCC
9 % CFLAGS="+DAportable"
10 % CXXFLAGS="+DAportable -AA +W749 +W740"
11 % BOOTSTRAPCFLAGS=-Dhpux
12 % export CXX CFLAGS CXXFLAGS BOOTSTRAPCFLAGS
13
14Build the main part of the VNC distribution as normal:
15
16 % ./configure
17 % make
18
19Unpack the X tree and apply the patches in xc.patch:
20
21 % gunzip -c X420src-1.tgz | tar xf -
22 % patch -Np0 <xc.patch
23
24Then additionally apply the patches in hpux.patch:
25
26 % patch -Np0 <hpux.patch
27
28Finally try building the X tree:
29
30 % cd xc
31 % make World
32
33If it all goes to plan you will be left with Xvnc in xc/programs/Xserver. You
34will probably have to modify the vncserver script to set up a sensible font
35path, since many of the font directories on HPUX are different from the
36defaults compiled into Xvnc.
37
38If anyone can find a neater way of building a VNC-compatible X tree on HPUX
39please let us know (see http://www.realvnc.com for contact details).