[comp.unix.sysv386] How to make xfig under ISC 2.0.2 or 2.2?

dmocsny@minerva.che.uc.edu (Daniel Mocsny) (05/13/91)

Hello.

I thought I was getting better at installing UNIX software under
ISC 386/ix. Then I tried to install xfig.2.0 patch level 9 or
whatever is floating around on the various archive sites.

I'm under the impression that I have to do something with imake.
First of all, I have never seen any documentation on this, but
I gather that it's a program that "automatically" generates
makefiles. The automatically-generated Makefile that comes with
xfig looks like it's for make'ing under SunOS. I found imake in
/usr/bin/X11 where it's supposed to be, but before I go wrecking
the system here I thought I would ask if anyone else has any
advice for installing xfig under ISC UNIX.

The docs that came with xfig are *very* terse. No advice at all
on how to build it. I guess this imake program must be so wonderful
that nobody needs to document anything anymore :-)

Thanks for the help, and sorry about another stupid question... :-|

E-mail or post. If this isn't old news, I'll post a summary...


--
Dan Mocsny				
Internet: dmocsny@minerva.che.uc.edu

fangchin@elaine54.Stanford.EDU (Chin Fang) (05/13/91)

In article <8435@uceng.UC.EDU> dmocsny@minerva.che.uc.edu (Daniel Mocsny) writes:
>Hello.
>
>[he wants to build xfig]

>I'm under the impression that I have to do something with imake.

Not necessary unless you are building a BIG X pkg like entire X11R4.
Typically if you just want to build a client, using the Makefile that
comes with the pkg is very convenient.  Just hack it in the obvious
ways.  Provided that you know where your includes/libs are.

Makefiles generated by imake are usually very long and contain
much info that you don't really need.  Ignore these and use the
one you really care.  Heck them to fit your system's arrangement.

Don't worry about the warning in the Makefile as to "don't edit
below this line" etc.  Heck it mercelessly!  Do whatever necessary
to get it built.

>First of all, I have never seen any documentation on this, but

Yes.  You should have it as imake.n, a man page that comes with 
X11R4 distribution.

>I gather that it's a program that "automatically" generates
>makefiles. The automatically-generated Makefile that comes with

You can say so.  The best way is to read imake tutorial in the doc/
directory in the MIT X11R4 distribution tape # 1.  That's how I got
started.  It may take a while and some practice to learn it.

>xfig looks like it's for make'ing under SunOS. I found imake in
>/usr/bin/X11 where it's supposed to be, but before I go wrecking
>the system here I thought I would ask if anyone else has any
>advice for installing xfig under ISC UNIX.

Like I said above, just heck the Makefile. Go thru it and then
the only thing you need to do is to type make.  Change the -DSUN
and friends to whatever is right for your system.

>The docs that came with xfig are *very* terse. No advice at all
>on how to build it. I guess this imake program must be so wonderful
>that nobody needs to document anything anymore :-)

Generally that's the case for user contributed clients.  But once 
you have gone thru a few.  You can do it very quickly. Don't be discouraged.

>Thanks for the help, and sorry about another stupid question... :-|

Not at all.  We all have stupid questions.  Who dares to claim that s/he 
knows everything?

Try to get to your school's on line X11R4 src tree.  Get in mit/, then
contrib/ then clients, and then xfig.  Study other clients with more
clear install instructions.  Then do a few times trial and error.
I think this is the only way you can learn how to heck.  Hope you can
get it up and running soon.

Personlly I think idraw from Stanford's Interviews toolkit will beat 
every x draw program however.  But Interviews is such a hog! 

Regards,      

Chin Fang
Mechanical Engineering Department
Stanford University
fangchin@leland.stanford.edu

randyt@sierra.wildernet.com (Randy Terbush) (05/16/91)

In <8435@uceng.UC.EDU> dmocsny@minerva.che.uc.edu (Daniel Mocsny) writes:

>I thought I was getting better at installing UNIX software under
>ISC 386/ix. Then I tried to install xfig.2.0 patch level 9 or
>whatever is floating around on the various archive sites.

>I'm under the impression that I have to do something with imake.

Chin Fangs response is correct in the case of most X software.
However, in the case of xfig, you will want to use 'xmkmf' to create
the Makefile for your system.  xfig is one of the cleanest compiling X
programs I have seen for ISC 2.2.  Just type 'xmkmf' and then type
'make'.  It will compile error free.

Now if someone could just show me how to get xfig to work with my 2
button mouse!

-- 
Randy Terbush ------------------ Mammoth Lakes, CA - Voice +1 619 934 0340
INET: randyt@wildernet.com ------------- UUCP: sierra.wildernet.com!randyt
Sierra CAD --------------------------- UNIX Workstation Design and Support