[Gdal-dev] missing libproj.so

Norman Vine nhv at cape.com
Thu Feb 12 12:09:33 EST 2004


Matt Wilkie writes:
> 
> thanks for your help Norman!
> 
> The command you gave me compiled okay (no errors) and I copied the 
> results into $prefix/bin and $prefix/lib.  However gdalwarp still 
> complains about "Unable to load PROJ.4 library (libproj.so)". Do I need 
> to symlink libproj.dll.a to libproj.so or something?

Arrgh...

Sorry I didn't realize that I had the following local change

Index: ogrct.cpp
===================================================================
RCS file: /cvsroot/osrs/gdal/ogr/ogrct.cpp,v
retrieving revision 1.23
diff -r1.23 ogrct.cpp
138c138,140
< #ifdef WIN32
---
> #if defined(__CYGWIN__)
> #  define LIBNAME      "cygproj.dll"
> #elif defined(WIN32)


Note you can set an enviroment variable to the proj DLL name

in the same file see 
LoadProjLibrary() {
....
    if( getenv("PROJSO") != NULL )
        pszLibName = getenv("PROJSO");

HTH

Norman



More information about the Gdal-dev mailing list