Typo
[linux_from_scratch_hints.git] / OLD / xaw3d.txt
blob442acfaadb3df48dc14724714f5ec547a0a779d5
1 TITLE:          Xaw3d
2 LFS VERSION:    any
3 AUTHOR:         Philipp Niemann <lfshints@azagtoth.de>
5 SYNOPSIS:
6         Installing Xaw3d.
8 HINT:
9 Get the source for Xaw3d from:
10 ftp://ftp.x.org/contrib/widgets/Xaw3d/R6.3/
11 Version this hint used was: Xaw3d-1.5.tar.gz (284420 bytes)
13 You unpack the tar-archiv in your preferred compile- Directory
14 and follow the steps:
16 1. tar xzvf Xaw3d-1.5.tar.gz
17 2. cd xc/lib/Xaw3d
18 3. vim +32 XawI18n.h
19     Before doing anything else type:
20     4dd:w
21     :q
23     With that you remove the lines
25     #include <widec.h>
26     #define wcslen(c) wslen(c)
27     #define wcscpy(d,s) wscpy(d,s)
28     #define wcsncpy(d,s,l) wsncpy(d,s,l)
30     from the file.
31     The file <widec.h> was not found on my System. I found references to
32     it on Google with "wslen" as search. Seems to be some old curses
33     stuff. That's my guess. Anyway, with my installed libs I found the
34     functions wcslen wcscpy and wcsncpy in /usr/include/wchar.h
35     If this hint doesn't work for you check the make-output for
36     implicitly declared functions wcslen wcscpy or wcsncpy.
38 There is an option in the Imakefile which does changes something. Refer
39 to the README.XAW3D for details. (Change is about Motif look, I think).
41 4. xmkmf
42 5. make includes
43 6. make depend
44 7. make # Look out for warnings about implicit declarations
45     # I did "make > /dev/null" add "| grep impl" if you like
46 8. su
47 9. make install
48     Things are now installed in /usr/X11R6/include/Xaw3d and
49     /usr/X11R6/lib/Xaw3d.so*. Optionally, as libXaw3d.so is linked to
50     libXaw3d.so.7.0, you may want to do
51 9a. ln -sf libXaw3d.so.7.0 /usr/X11R6/lib/libXaw3d.so.7
52 9b. ln -sf libXaw3d.so.7 /usr/X11R6/lib/libXaw3d.so
54 10. ldconfig -v
55 11 exit
56 +++++++++++++++++++++
58 That was verified by compiling gv. Looks like it works. I should
59 have installed ghostscript in the first place, though ;-)