[comp.windows.x] X11R4 tape-2 clients help...

dave@TACKY.CS.OLEMISS.EDU (David E. Johnson) (09/04/90)

I am new to X11 and I have compiled X11R4 tape-1 completely and have it
installed and running.  I am now working with tape-2 trying to get the
contrib/clients compiled.  It seems that most of them are looking in the
wrong place for the include files.  I have change the includes from
	#include <X11/Paned.h>
	#include <X11/AsciiText.h>
to
	#include <X11/Xaw/Paned.h>
	#include <X11/Xaw/AsciiText.h>

for example and the compilation succeeds.  I have also had to define
XAW_BC in a few of the sources to get other necessary declarations done.

I obtained this source from an Internet site (not sure which).  Do I have
an out-of-date source "tape"?  Or did I install the core tape incorrectly?

I appreciate any help possible.

Thanks

dave

moore@srl.mew.mei.co.jp (W. Phillip Moore) (09/05/90)

In article <9009032103.AA20616@tacky.cs.olemiss.edu> dave@TACKY.CS.OLEMISS.EDU (David E. Johnson) writes:

   I am new to X11 and I have compiled X11R4 tape-1 completely and have it
   installed and running.  I am now working with tape-2 trying to get the
   contrib/clients compiled.  It seems that most of them are looking in the
   wrong place for the include files.  I have change the includes from
	   #include <X11/Paned.h>
	   #include <X11/AsciiText.h>
   to
	   #include <X11/Xaw/Paned.h>
	   #include <X11/Xaw/AsciiText.h>

   for example and the compilation succeeds.  I have also had to define
   XAW_BC in a few of the sources to get other necessary declarations done.

This is because many of the client programs are written for R3 and haven't
been updated.  You can have your default imake invocation (xmkmf) create
Makefiles which use -DXAW_BC by setting:

/*
 * 2.  InstallOldHeaderFiles - set the following to YES until you have 
 * converted your Xaw programs to use the new naming scheme.
 */
#ifndef InstallOldHeaderFiles
#define InstallOldHeaderFiles YES	/* set to YES for compat with R3 Xaw */
#endif

in the file mit/config/site.def, and then recompiling/installing the mit
core X11 source.  If you don't do this, you will have change every
sourcefile by hand OR alter the Makefiles to compile with -DXAW_BC
everytime you build an R3 client.

Then when you xmkmf for each client, you shouldn't have to anything special
to get find your header files (assuming the source isn't hosed, which is
the case for a few clients).

W. Phillip Moore					   Phone: 06-908-1431
LSI Research Group					     FAX: 06-906-7251
Semiconductor Research Laboratory		  E-mail: moore@mew.mei.co.jp
       Matsushita Electric Works, Ltd.	1048 Kadoma, Osaka 571, Japan

klute@heike.informatik.uni-dortmund.de (Rainer Klute) (09/05/90)

In article <9009032103.AA20616@tacky.cs.olemiss.edu>,
dave@TACKY.CS.OLEMISS.EDU (David E. Johnson) writes:
|> I am new to X11 and I have compiled X11R4 tape-1 completely and have it
|> installed and running.  I am now working with tape-2 trying to get the
|> contrib/clients compiled.  It seems that most of them are looking in
the
|> wrong place for the include files.  I have change the includes from
|> 	#include <X11/Paned.h>
|> 	#include <X11/AsciiText.h>
|> to
|> 	#include <X11/Xaw/Paned.h>
|> 	#include <X11/Xaw/AsciiText.h>
|> 
|> for example and the compilation succeeds.  I have also had to define
|> XAW_BC in a few of the sources to get other necessary declarations
done.
|> 
|> I obtained this source from an Internet site (not sure which).  Do I
have
|> an out-of-date source "tape"?  Or did I install the core tape
incorrectly?

You installed right. Several of the tape-2 clients were written for X11R3
and not for R4, hence the wrong place of the include files. Since X11R4
(including tape-2) was released a lot of tape-2 clients were not only
upgraded to X11R4 but have also undergone bug fixing and further
development. Before you compile a client from tape-2 you should make sure
that there isn't any newer version.

--
  Dipl.-Inform. Rainer Klute      klute@unido.informatik.uni-dortmund.de
  Univ. Dortmund, IRB             klute@unido.uucp, klute@unido.bitnet
  Postfach 500500         |)|/    Tel.: +49 231 755-4663
D-4600 Dortmund 50        |\|\    Fax : +49 231 755-2386