GraphApp for Motif (Unix/Linux)

What do I need to have before I can use GraphApp with Unix?

You need to be running Unix or Linux and have X Windows installed.

To use the Motif version you must also have Motif (or Lesstif) installed. If Motif is not installed you will not be able to use this version of GraphApp - see the section on the Athena version.

What files should I download?

Fetch the GraphApp.Motif.tar.gz file. Use the following commands to extract the files:
     mkdir graphapp                      # make a directory for it
     mv GraphApp.Motif.tar.gz graphapp   # move the tar file there
     cd graphapp                         # go into the directory
     gunzip GraphApp.Motif.tar.gz        # unzip the file
     tar xf GraphApp.Motif.tar           # untar the file
  
This will produce a directory called something like GraphApp_Motif_Src_2_45 which will contain several .c and .h files, as well as the COPYLIB.TXT file and a Makefile.

How do I make the library?

If using Linux, you will need to ensure you are using the special Linux Makefile supplied with this distribution of GraphApp. There is also a Solaris Makefile. You may need to edit one or other of these Makefiles to produce a Makefile which works for you.

Having made any changes to the Makefile that need to be made, you should now type:

     make pizza
  
to see if all is going well.

What if I get this error ...?

The file dialog boxes don't display file names correctly.

This problem happens with Solaris. Try putting -lc before or after the -lucb in the Makefile. The problem occurs because of conflicts with functions of the same name in the ucb library and the standard C library.

The readdir() function doesn't work properly.

Same problem as above. This problem happens with old versions of GraphApp running on Solaris machines. Try putting -lc before or after the -lucb in the Makefile. The problem occurs because of conflicts with functions of the same name in the ucb library and the standard C library.

The latest version of GraphApp replaces the Motif file selection dialog with a custom-made dialog which avoids this problem by auto-configuring itself the first time it is used.

I still have problems. What should I do?

You can mail Loki to see if he has any advice. Ensure you tell him exactly what is going wrong. Remember that if you don't have Motif installed on your system you will not be able to use this version of GraphApp.