From: Alan W. I. <ir...@be...> - 2002-12-05 20:05:29
|
I believe make x01c is just using ordinary default rules for make so it isn't finding everything that it needs. You should be using make check instead. First remove everything created by make x01c in examples/c so as not to confuse issues. Second try make check in that directory. Everything should work--- at least it did for me! Of course the first time it will compile all examples in that directory, but the second and subsequent times it should only compile the example you touched. Alan email: ir...@be... phone: 250-727-2902=09FAX: 250-721-7715 snail-mail: Dr. Alan W. Irwin Department of Physics and Astronomy, University of Victoria, P.O. Box 3055, Victoria, British Columbia, Canada, V8W 3P6 __________________________ Linux-powered astrophysics __________________________ On Thu, 5 Dec 2002, [iso-8859-1] Jo=E3o Cardoso wrote: > On Thursday 05 December 2002 17:56, Alan W. Irwin wrote: > | On Thu, 5 Dec 2002, Alan W. Irwin wrote: > | > You might want to flesh out the idea a little more. For example, > | > there might be a way to use the machinery of autotools support for > | > tests so that "make check" compiles all the plplot/examples/x??c > | > programmes in place. > | > | To answer my own comment, I just discovered Autobook section 7.7 > | which tells how to do this. It is so simple that I couldn't resist > | trying a proof of concept in examples/c/Makefile.am. That worked > | immediately so I have just committed it. > | > | Joao, please try "make check" and tell me if that satisfies your > | developer needs for convenience and speed for the C examples? If so, > | then one of us should follow up with the appropriate stanzas in > | Makefile.am in f77, c++, and tk. > | > | After "make check", I tried a number of examples including x08c and > | x20c, and the only one I found which fails to work is x14c. I assume > | that is related to the -dev tk problem. > | > | Alan > > In examples/c, after I made a "make check", which worked (i.e., compile > but not run, see bellow), I made > > [jcard@feup] touch x01c.c > [jcard@feup] make x01c > source=3D'x01c.c' object=3D'x01c.o' libtool=3Dno \ > depfile=3D'.deps/x01c.Po' tmpdepfile=3D'.deps/x01c.TPo' \ > depmode=3Dgcc3 /bin/sh ../../depcomp \ > gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include > -I../../libltdl -g -O2 -c `test -f x01c.c || echo './'`x01c.c > /bin/sh ../../libtool --mode=3Dlink gcc -g -O2 -o x01c x01c.o > ../../src/libplplot.la > gcc -g -O2 -o .libs/x01c x01c.o ../../src/.libs/libplplot.so -lm -ldl > -Wl,--rpath -Wl,/usr/local/lib > creating x01c > [jcard@feup] ./x01c > > *** PLPLOT ERROR *** > Can't open drivers/drivers.db > Program aborted > > So, this seems sufficient to me; I can have a xterm in examples/c and > another in src, modify a source file, "make" to compile it, and in the > other xterm make/execute a given example. > Of course, we (:-) only need to solve the drivers.db file problem, and > after that make sure that the drivers are found. > > Joao. > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Plplot-devel mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-devel > |