Page 1 of 1

imake.tmpl not found

Posted: Sun 03 Jun 2012, 22:56
by Tman
I was trying to compile Xaw3d from: -> here <- and was puzzled about how to compile it.
Some Googling led me to these build instructions.

Unfortunately, when I got to step 4 and typed "xmkmf", I couldn't compile it, but instead, I got the following error messages:

Code: Select all

Imakefile.c:34:0: fatal error: Imake.tmpl: No such file or directory
compilation terminated.
imake: Exit code 1.
  Stop.
The only real relevant info that I managed to find from the murga forum was -> here

I was wondering if anyone knows where I can find the configuration/template files for Imake?

Actually, I later realized that I did not need Xaw3d, as the standard Xaw that comes with Slacko is sufficient, but that does not solve that problem with xmkmf and imake ( for compiling other apps that I might need to use xmkmf with ).

Posted: Wed 18 Jul 2012, 20:03
by goingnuts
I had sort of same problem in P412 so created the attached pet holding most of the stuff needed - think I originally got it from debian but cant quite remember....

Posted: Fri 20 Jul 2012, 16:59
by amigo
The needed files are from the xorg-cf-files package. The 'sources' are part of the 'util' group of X sources.

Posted: Sun 22 Jul 2012, 02:48
by Karl Godt
This imake error message is misleading . The needed files are in /usr[/X11R7]/lib/X11/config directory .

They should be part of the devx .

It needs to set the IMAKEINCLUDE global varible from man imake :
IMAKEINCLUDE
If defined, this specifies a ``-I'' include argument to pass to
the C preprocessor. E.g., ``-I/usr/X11/config''.
I have put a script into /etc/profile.d/directory called imake to export it
sample :

Code: Select all

if [ -d  /usr/lib/X11/config ];then
IMAKEINCLUDE="-I/usr/lib/X11/config"
elif ....
else
error
fi

if [ "$IMAKEINCLUDE"];then
export IMAKEINCLUDE="$IMAKEINCLUDE"
fi
or similar .

Posted: Sat 28 Jul 2012, 20:25
by Tman
Thanks everyone for the enlightening answers! I haven't been compiling anything new lately, but I just wanted to add my reply here so that no-one would feel like I was brushing them off.