[osgeo4w-dev] Building rgdal for OSGeo4W
Frank Warmerdam
warmerdam at pobox.com
Mon Jan 19 11:13:19 EST 2009
Roger Bivand wrote:
> Creating library rgdal.lib and object rgdal.exp
> projectit.obj : error LNK2019: unresolved external symbol _pj_open_lib
> referenced in function _PROJ4NADsInstalled
> rgdal.dll : fatal error LNK1120: 1 unresolved externals
>
> Fails on missing _pj_open_lib. I guess this is because pj_open_lib()
> isn't in the API, so isn't in proj_i.lib. I need it for reaching into
> share/proj from within R (to see if NAD binaries are installed, and to
> load epsg into a data.frame in the R workspace). Any ideas?
Roger,
I am somewhat leery about exposing pj_open_lib() as part of the public
PROJ.4 API - primarily because it raises an issue of passing "FILE *"
across DLL boundaries which can be bad if different runtimes are used
for different DLLs.
Specifically for an OSGeo4W based distribution it seems like you could
hack PROJ4NADsInstalled() to return TRUE always.
> PS. If this can be fixed, the rgdal Windows binary and the installed R
> package could be shipped as an OSGeo4W package with access to any
> drivers in the GDAL package, which would be nice.
That would be cool.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the osgeo4w-dev
mailing list