X11/Motif


HP-UX

HP-UX, in particular its older versions, doesn't come with proper X11 and Motif header files by default. So extra work is necessary.

9.x

If available on the installation CD's (HP-UX 9.05) header files belong to the X11R5-PRG fileset
        /usr/include/X11R5/X11
        /usr/include/Motif1.2/Xm
If found elsewhere, unpack/install them under
/usr/X11R5/include/X11
                   Motif1.2
and setup proper links:
chmod -R a-w /usr/X11R5
chmod -R a+r /usr/X11R5
chown -R bin:bin /usr/X11R5
ln -s /usr/X11R5/include/X11      /usr/include/X11       # AIX/Linux compatible
ln -s /usr/X11R5/include/X11      /usr/include/X11R5/X11 # HP-UX compatible
ln -s /usr/X11R5/include/Motif1.2 /usr/include/Xm        # AIX/Linux compatible
ln -s /usr/X11R5/include/Motif1.2 /usr/include/Motif1.2  # HP-UX compatible

ln -s /usr/X11R5/include/X11/Xaw /usr/include/X11/Xaw
ln -s /usr/X11R5/include/X11/Xmu /usr/include/X11/Xmu
ln -s /usr/contrib/X11R5/lib/libXaw.a /usr/lib/libXaw.a
ln -s /usr/contrib/X11R5/lib/libXmu.a /usr/lib/libXmu.a

10.20

Same procedure, just for X11R6 rather than X11R5, and Motif2.1 instead of Motif1.2.

Even with the appropriate HP Developer Kit installed, I found the following amendments in /usr/lib/X11/config/hp.cf necessary:

#define StandardIncludes -I/usr/contrib/X11R6/include -I/usr/include/X11R6 -I/usr/include
to enable Xaw and Xmu for imake

11.00

Same procedure, just for X11R6 rather than X11R5, and Motif2.1 instead of Motif1.2.

11.11

Some stuff is outside the usual X11 tree, so:
ln -s /usr/contrib/X11R6/include/X11/Xmu /usr/include/X11/Xmu
ln -s /usr/contrib/X11R6/lib/libXmu.a /usr/lib/libXmu.a

Miscellaneous

Correspondence of X11 and Motif versions:
X11R4     Motif 1.1
X11R5     Motif 1.2
X11R6     Motif 2.1 

Last update: 9-Apr-2009, M.Kraemer