From: <jc...@fe...> - 2002-12-05 19:32:32
|
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=20 but not run, see bellow), I made [jcard@feup] touch x01c.c=20 [jcard@feup] make x01c =20 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 =20 -I../../libltdl -g -O2 -c `test -f x01c.c || echo './'`x01c.c /bin/sh ../../libtool --mode=3Dlink gcc -g -O2 -o x01c x01c.o=20 =2E./../src/libplplot.la=20 gcc -g -O2 -o .libs/x01c x01c.o ../../src/.libs/libplplot.so -lm -ldl=20 -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=20 another in src, modify a source file, "make" to compile it, and in the=20 other xterm make/execute a given example. Of course, we (:-) only need to solve the drivers.db file problem, and=20 after that make sure that the drivers are found. Joao. |