./make astrology.c for X11 ?

tazmandevil

Registered
Hello :)

i have a source-code of an astrology.c programm, which i used before long times on a X-Window System on an Amiga. Now i found it again and want to compile it for XfreeR6 on Darwin (with X-Window or Gimp).... as i remember, this tool's source is maked for X11. So i thougt, it should not be very difficult to compile it now. But i get the following errors while triyng to make the binaries:

localhost:user% make
cc -O -c -o astrolog.o astrolog.c
astrolog.h:282: header file 'X11/Xlib.h' not found
astrolog.h:283: header file 'X11/Xutil.h' not found
astrolog.h:1315: undefined type, found `Display'
astrolog.h:1316: undefined type, found `GC'
astrolog.h:1317: undefined type, found `Pixmap'
astrolog.h:1318: undefined type, found `Window'
extern.h:397: undefined type, found `XSizeHints'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
make: *** [astrolog.o] Fehler 1
localhost:user%

Well, i have seen this 2 missing libraries "X11/Xlib.h" and the "X11/Xutil.h" in /usr/X11R6/include/X11?... but how i can make, that the compiler finds them?....

and the other four errors i dont understand.... i believe, they have to do, with the missing 2 libraries!

i'm glad for every help, i could get! :)

Thank you!
 
First, whenever you try to configure the program try configuring like this:

setenv CPPFLAGS -no-cpp-precomp ; ./configure --whatever-args-you-use-here

Then that will configure and whenever you try to make it, it should work, if not, then try to copy the missing *.h files to the directory that the app is compiling in and that might help, if not, I don't know what is wrong. That should get rid of a few errors and/or warnings though.

Justin
 
Back
Top