Red Hat Motif 2.1 for Linux

 in
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 ftp://ftp.fnal.gov/. 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/libXm.so: undefined reference to 'XpEndJob'
/usr/X11R6/lib/libXm.so: undefined reference to
XpSelectInput
/usr/X11R6/lib/libXm.so: undefined reference to
XpGetPdmStartParams

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

Conclusion

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.

Listings

Resources

John Kacur (jkacur@acm.org) 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.

______________________

Comments

Comment viewing options

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

f.exec

Harry's picture

Hi,

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 ?

Thanks,
Harry

White Paper
Linux Management with Red Hat Satellite: Measuring Business Impact and ROI

Linux has become a key foundation for supporting today's rapidly growing IT environments. Linux is being used to deploy business applications and databases, trading on its reputation as a low-cost operating environment. For many IT organizations, Linux is a mainstay for deploying Web servers and has evolved from handling basic file, print, and utility workloads to running mission-critical applications and databases, physically, virtually, and in the cloud. As Linux grows in importance in terms of value to the business, managing Linux environments to high standards of service quality — availability, security, and performance — becomes an essential requirement for business success.

Learn More

Sponsored by Red Hat

White Paper
Private PaaS for the Agile Enterprise

If you already use virtualized infrastructure, you are well on your way to leveraging the power of the cloud. Virtualization offers the promise of limitless resources, but how do you manage that scalability when your DevOps team doesn’t scale? In today’s hypercompetitive markets, fast results can make a difference between leading the pack vs. obsolescence. Organizations need more benefits from cloud computing than just raw resources. They need agility, flexibility, convenience, ROI, and control.

Stackato private Platform-as-a-Service technology from ActiveState extends your private cloud infrastructure by creating a private PaaS to provide on-demand availability, flexibility, control, and ultimately, faster time-to-market for your enterprise.

Learn More

Sponsored by ActiveState