Title: Signature.html
Yes, sounds like you got the code, and I need to go outside this group to a Cygwin forum/NG or Linux under Win. Recently, I was working with a fellow associated with this effort who knows Linux very well. He had some slight difficulty with the Makefiles, but finally got it running on my ancient (and recently resurreced in a very old Linux) machine. It came down to a few lines of the Makefile.  See my post about Cygwin 1.7 or 1.6.

If you are further interested, for the moment anyway here's the makefile we finally used. The g++ line was the big change.  Also attached. The attachment may not make it or possibly get hung up with the moderator.

CC = g++
CFLAGS =  -c
BIN = wolf
OBJ = wolf.o calstars.o fclasses.o global.o \
      novas.o novascon.o readeph0.o solarsys.o \
      swedate.o swejpl.o swemmoon.o swemplan.o \
      sweph.o swephlib.o cgi-draw.o imatrix.o \
      cnstl.o \
     

wolf: $(OBJ)
    g++ -o wolf $(OBJ) -lm ./fits/cfitsio/libcfitsio.a # -lnsl -lsocket
wolf.o: wolf.c
    $(CC) $(CFLAGS) wolf.c
calstars.o: calstars.c
    $(CC) $(CFLAGS) calstars.c
fclasses.o: fclasses.c
    $(CC) $(CFLAGS) fclasses.c
global.o: global.c
    $(CC) $(CFLAGS) global.c
imatrix.o: imatrix.c
    $(CC) $(CFLAGS) imatrix.c
cnstl.o: cnstl.c
    $(CC) $(CFLAGS) cnstl.c
cgi-draw.o: cgi-draw.c
    $(CC) $(CFLAGS) cgi-draw.c
novas.o: novas.c
    $(CC) $(CFLAGS) novas.c
novascon.o: novascon.c
    $(CC) $(CFLAGS) novascon.c
readeph0.o: readeph0.c
    $(CC) $(CFLAGS) readeph0.c
solarsys.o: solarsys.c
    $(CC) $(CFLAGS) solarsys.c
swedate.o: swedate.c
    $(CC) $(CFLAGS) swedate.c
swejpl.o: swejpl.c
    $(CC) $(CFLAGS) swejpl.c
swemmoon.o: swemmoon.c
    $(CC) $(CFLAGS) swemmoon.c
swemplan.o: swemplan.c
    $(CC) $(CFLAGS) swemplan.c
sweph.o: sweph.c
    $(CC) $(CFLAGS) sweph.c
swephlib.o: swephlib.c
    $(CC) $(CFLAGS) swephlib.c

clean:
    rm -f wolf *.o core


See my post to Marc about the header file and graphics use.

greg whittier wrote:
On Fri, Mar 20, 2009 at 1:41 PM, Wayne Watson <sierra_mtnv...@sbcglobal.net> wrote:
Yes, I'm sure I'll need help. I just posted a message minutes before yours mentioning I'm willing to try Cygwin. The C program, wolf, is the public domain  If trying to compile the program under Win is what you had in mind, then I can send you all the necessary files in a zip file. If not, then I'll be back to ask questions about what might be going wrong either here or in some Cygwin newsgroup.  I distantly recall there is one.

I actually found the code http://nightskylive.net/software/ from googling.  A quick "make" under msys/mingw didn't complete as I'd hoped, so you'll have to put in some work, but it doesn't look insurmountable.  I think this is pretty far afield from the python-tutor group though.  Maybe you could try the community that uses WOLF or the cygwin group?


_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

--


           Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

             (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time)


                Life is one damn thing after another."
                     -- Mark Twain 
CC = g++
CFLAGS =  -c
BIN = wolf
OBJ = wolf.o calstars.o fclasses.o global.o \
      novas.o novascon.o readeph0.o solarsys.o \
      swedate.o swejpl.o swemmoon.o swemplan.o \
      sweph.o swephlib.o cgi-draw.o imatrix.o \
      cnstl.o \
      

wolf: $(OBJ)
        g++ -o wolf $(OBJ) -lm ./fits/cfitsio/libcfitsio.a # -lnsl -lsocket
wolf.o: wolf.c
        $(CC) $(CFLAGS) wolf.c
calstars.o: calstars.c
        $(CC) $(CFLAGS) calstars.c
fclasses.o: fclasses.c
        $(CC) $(CFLAGS) fclasses.c
global.o: global.c
        $(CC) $(CFLAGS) global.c
imatrix.o: imatrix.c
        $(CC) $(CFLAGS) imatrix.c
cnstl.o: cnstl.c
        $(CC) $(CFLAGS) cnstl.c
cgi-draw.o: cgi-draw.c
        $(CC) $(CFLAGS) cgi-draw.c
novas.o: novas.c
        $(CC) $(CFLAGS) novas.c
novascon.o: novascon.c
        $(CC) $(CFLAGS) novascon.c
readeph0.o: readeph0.c
        $(CC) $(CFLAGS) readeph0.c
solarsys.o: solarsys.c
        $(CC) $(CFLAGS) solarsys.c
swedate.o: swedate.c
        $(CC) $(CFLAGS) swedate.c
swejpl.o: swejpl.c
        $(CC) $(CFLAGS) swejpl.c
swemmoon.o: swemmoon.c
        $(CC) $(CFLAGS) swemmoon.c
swemplan.o: swemplan.c
        $(CC) $(CFLAGS) swemplan.c
sweph.o: sweph.c
        $(CC) $(CFLAGS) sweph.c
swephlib.o: swephlib.c
        $(CC) $(CFLAGS) swephlib.c

clean:
        rm -f wolf *.o core
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to