asmon compiling probs...
paz (paz@apriori.net)
Sun, 28 Feb 1999 18:34:33 -0500 (EST)
Hi, all -
[version 0.49]
This looks simple, but I haven't hit on the right combination yet.
I started to make asmon, and got some errors pretty quickly:
[in /tmp/asmon-0.49/asmon where I'm doing the compile:]
# make
cc -c -Wall asmon.c -o asmon.o
asmon.c:14: X11/Xlib.h: No such file or directory
asmon.c:15: X11/xpm.h: No such file or directory
asmon.c:16: X11/extensions/shape.h: No such file or directory
*** Error code 1
Stop.
+x+x+x+x+x+x+x+
I hunted around for the three files and found them in:
/usr/X11R6/include/X11/Xlib.h
/usr/X11R6/include/X11/xpm.h
/usr/X11R6/include/X11/extensions/shape.h
I've futzed around with the Makefile and asmon.c, but haven't hit on the
right combo to make the compiler see these files... help?!
Here's Makefile:
# more Makefile
LIBDIR = -L/usr/X11R6/lib
LIBS = -lXpm -lXext -lX11
OBJS = asmon.o \
../wmgeneral/wmgeneral.o \
../wmgeneral/misc.o \
../wmgeneral/list.o
.c.o:
cc -c -Wall $< -o $*.o
asmon: $(OBJS)
cc -o asmon $^ $(LIBDIR) $(LIBS)
clean::
for i in $(OBJS) ; do \
rm $$i;\
done
rm asmon
+x+x+x+x+x+x+x+x+x+
asmon.c is ~500 lines long; I suppose if you're reading this you may
already have it locally. If not, drop me a note and I'll email it. Here's
the front end, where (I think) the directory references are incorrect:
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <ctype.h>
#include <sys/utsname.h>
#include <sys/wait.h>
#include <sys/param.h>
#include <sys/types.h>
#include <X11/Xlib.h>
#include <X11/xpm.h>
#include <X11/extensions/shape.h>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
the above three lines + Makefile's LIBDIR and LIBS defs don't seem to
point to my files...
[file continues another 500 lines or so...]
thanks in advance -
-- Philip.
philip zimmermann paz@apriori.net
www.apriori.net ayer, ma usa
--
WWW: http://www.afterstep.org/
FTP: ftp://ftp.afterstep.org/
MAIL: http://www.caldera.com/linuxcenter/forums/afterstep.html