How do I run both OpenWindows and MIT X11R5?


	OpenWindows 2.0 is compatible with X11R3 plus some extensions,
	OpenWindows 3.0 is compatible with X11R4, and  OpenWindows 3.3 
	is completely standard X11R5 with Display Postscript extensions
	added and many Sun hardware-specific performance improvements.

	To get X11R5(or R4) applications to run under Openwindows you will
	need to set the appropriate LD_LIBRARY_PATH. 

        Assuming you installed the MIT libraries in
        /usr/lib and the OpenWindows libraries are in
        /usr/openwin/lib, set the following before you start the
        windowing system:

        MIT X11R4 environment

                set path = (/usr/bin/X11 $path)
                setenv LD_LIBRARY_PATH /usr/lib

   	OpenWindows

                set path = (/usr/openwin/bin /usr/openwin/demo $path)
                setenv LD_LIBRARY_PATH /usr/openwin/lib

        You can also run clients from one environment under a different
        server on a one command at a time basis.  This example runs a

     	OpenWindows client under the MIT server:

                (setenv LD_LIBRARY_PATH /usr/openwin/lib; x_soundtool)


	A better way to handle this(in the long run) is to re-compile 
	the X server clients to include a "hard" coded shared library
	search path. You will need to link the clients with -L
	option.  For example, if your X11 libraries are installed
	in /usr/local/lib/X11 you will link your application by

		   cc -o app app.c -L/usr/local/lib/X11 -lX11 -lXext

	By doing this to all applications you can eliminate the need
	to set the LD_LIBRARY_PATH. 

	For applications that you do not have source for you should
	write a shell script wrapper similar to the following:

	#!/bin/sh
	LD_LIBRARY_PATH=/usr/local/lib/X11; export LD_LIBRARY_PATH
	/usr/local/bin/X11/xterm.bin $*
	

	Note: Source code for the Xview toolkit and MIT X11R5 are
	      available from prep.ai.mit.edu. 


        The OpenWindows server has the ability to display PostScript that
        several of the OpenWindows applications require to run.  Sun's
        AnswerBook is an example that requires PostScript.  These clients
        will not run under the MIT server.   

	You can get a limited PostScript preview capability under 
	either server with GNU Ghostscript, a GNU "copyleft" package
	available from various ftp sites.  

	Two enhanced versions of Ghostscript are also available,
        CSPreview and Ghostview, they both offer fancier preview capabilities.
        These programs are currently available via anonymous ftp:

        Ghostscript is on prep.ai.mit.edu (18.71.0.38) in /pub/gnu
        GSPreview   is on ftp.x.org (18.24.0.12) in /contrib
        Ghostview   is on prep.ai.mit.edu (128.105.2.196) in /pub/gnu


Go to the index previous next