[Proj] Re: value of PROJ_LIB variable

Erich Sadlowski erich.sadlowski at gmx.de
Tue May 9 00:32:41 EDT 2006

Frank Warmerdam <warmerdam <at> pobox.com> writes:

> I am not aware of anywhere in PROJ.4 that sets this enviroment variable. But
> PROJ.4 does have a few methods of finding the support files beside this
> environment variable.
> A default build on Unix-like systems will define the PROJ_LIB macro to be the
> default install directory in pj_open_lib.c.  This is often
> /usr/local/share/proj.

Hello Frank,

Thanks for your answer!

Yes, in the meantime I found out, that the variable is set in the (generated)
Makefile and transfered to the library via the "-D" define flag.

Now I use your suggested pj_set_searchpath() and it works fine.

Again: Thanks a lot!

Best regards

More information about the Proj mailing list