[Gdal-dev] Unable to load PROJ.4 library in GDAL

Ari Jolma ari.jolma at tkk.fi
Thu May 3 14:38:16 EDT 2007


Roger André kirjoitti:
> I'm having problems with the GDAL installation I have running in 
> Cygwin on Windows XP.  It appears that GDAL is unable to find some of 
> the proj libraries that it needs.  I ran the following command:
> gdalwarp -s_srs "EPSG:32651" -t_srs "EPSG:4326" input.tif output.tif
>
> it gave this error when it ran:
>
> ERROR 6: Unable to load PROJ.4 library (libproj.dll), creation of
> OGRCoordinateTransformation failed.
>


Roger,

If your proj4 DLL has another name use the command

set PROJSO=<name of the proj4 DLL>

in the DOS prompt (if that's appropriate in Cygwin) and add the 
directory in which the DLL is into the path. You can get pre-compiled 
proj4 DLL from several sources FWTools for example.

Regards,

Ari


> I did a search and found posts saying that I should download and 
> install proj from source, then compile GDAL with static linking to 
> proj using the
> "--with-static-proj4" configure flag.  I downloaded and installed 
> proj-4.5.0 from source yesterday, but am unsure what path to give the 
> "--with-static-proj" option. 
>
> Can someone give me a few pointers about what I should look for?
>
> Thanks,
>
> Roger
> ------------------------------------------------------------------------
>
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev





More information about the Gdal-dev mailing list