From: <jc...@fe...> - 2003-02-20 15:39:24
|
On Thursday 20 February 2003 11:17, Rafael Laboissiere wrote: | Update of /cvsroot/plplot/plplot/src | In directory sc8-pr-cvs1:/tmp/cvs-serv5695 | | Modified Files: | =09plcore.c | Log Message: | | Joao has continuously complained that with the current PLplot in CVS | it is not possible to use the library without doing make install. He | is right. One of the reasons for this is that the driver modules are | looked for only under the absolute path DATA_DIR, which is actually a | installation path. | | I changed the code of plInitiDispatchTable in plcore.c to load the | drivers from the directory pointed by the env var PLPLOT_DRV_DIR. If | this env var is not defined, it uses the default DATA_DIR. This is a | interim solution that will allow test of PLplot (at least the access | to driver modules) without a full install. | | There is also the problems of data files and fonts. Some of these | used to be accessed in the past via the PLPLOT_LIB environment | variable. This has to be sorted out and I would like to find a | better global solution for this problem of dual access (devel vs. | install locations). In my sources, I use a PLplot global variable called build_tree that=20 says if the program being run was invoked inside the build tree(*); if=20 it was , then the path of the searched file in the build tree is used,=20 else the usual search path is used. This works fine for most drivers,=20 fonts and map files. The tk driver is an exception, as it needs to find plserver, and tcl/tk=20 also needs its auto_path to be setup; in my sources this is also=20 working fine.=20 However, I don't like the (tk) solution, as it is not general. There is also the problem of having a global variable, build_tree, which=20 is ugly. Joao *-build_tree is set getting the current working dir, getcwd(), and=20 comparing with BUILD_TREE, which is setup at configure time and is=20 defined in config.h=20 | | Another change in the code was the inclusion of some tests and | plabort calls. | | | | | ------------------------------------------------------- | This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. | The most comprehensive and flexible code editor you can use. | Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day | Trial. www.slickedit.com/sourceforge | _______________________________________________ | Plplot-cvs mailing list | Plp...@li... | https://lists.sourceforge.net/lists/listinfo/plplot-cvs |