Red Hat Motif 2.1 for Linux

Motif has become a standard in the UNIX world and is the basis for the common desktop environment (CDE).
Compiling Programs

Last but not least, you can use your Motif libraries to compile programs which are dynamically linked, which should make the binaries smaller and quicker.

An example I suggest trying is NEdit. This is a nice WYSIWYG (what you see is what you get) editor available from If you don't have Motif, you can still use the statically linked version of this editor, or try to compile it with Lesstif. Compiling this program on my system gave me errors of this type:

/usr/X11R6/lib/ undefined reference to 'XpEndJob'
/usr/X11R6/lib/ undefined reference to
/usr/X11R6/lib/ undefined reference to

The libXp library comes in XFree86-devel, so the Makefiles which come with NEdit must be modified to include -lXp. You can examine the Makefiles which come with the demo programs (see Figure 3) to give you clues to other libraries which are not properly linked.

Figure 3. Motif Widgets Provided in the Demo Programs


Motif isn't a necessity for the average Linux user, but it does provide you with a clean interface and a standard GUI model for the UNIX environment. It is especially nice for programmers who want to use their Linux boxes to write software that will easily port to proprietary UNIX systems.



John Kacur ( has a B.A. in Fine Arts. After two years studying Russian in the Ukraine and two more years teaching English in Germany, John returned to Canada to pursue a second degree in Computer Science.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.


Harry's picture


in the file .mwmrc, I use AltPrint window f.exec "/cri/xdump". xdump is a executable script with the following content: rsh susr2_32 /ccis/cri/xdump

The content of xdump on the remote node:
sudo mount /dev/sdc1 /media/NANO
xwd -display :0 -root -out /media/NANO/screendump.xwd
sudo umount /media/NANO

Directly executing xdump from the command line on the local node works fine, but executing xdump by pressing the printscreen gives permission denied

Do you have any idea what is wrong ?