Matt,

On Nov 24, 2011, at 7:15 AM, Matthew Kenworthy wrote:

> Thanks Puneet! I downloaded the extra files and installed them but the
> Makefile.PL in the build directory still errors out with the same
> complaint.
> 

So, we can assume that you first build Proj.4 itself? Looking at my own notes 
from a long time ago (see 
http://sourceforge.net/apps/mediawiki/pdl/index.php?title=Installing_PDL_on_Mac_OS_X#WITH_PROJ)

----
WITH_PROJ
Whether or not to build the PDL::GIS::Proj module
   WITH_PROJ => undef,
   PROJ_LIBS => undef,
   PROJ_INC => undef,


I wanted WITH_PROJ on, so I left the above to undef. PDL built against my PROJ 
library successfully. To build PROJ.4 4.7.0, I downloaded the latest code from 
the OSGeo web site. Once again, the configure, make, make install dance worked 
flawlessly.
   $ ./configure
   $ make
   $ sudo make install
----

I don't see anything special required per those notes.


> I've tracked it down to the call of check_lib() in
> Lib/GIS/Proj/Makefile.PL line 150 - it's unable to verify this
> particular function in the libproj library:
> 
> 
>       PDL::GIS::Proj: Found /usr/local/lib/libproj.a
>     Trying check for projUV...
>               YES
> header=>proj_api.h, LIBS=>-L/usr/local/lib -lproj -lm,
> INC=>-I/usr/local/include/, function=>'projPJ mypj =
> pj_init_plus("+proj=eqc +lon_0=0"); if (! mypj) return 1; else return
> 0;'
> PROJ4 library found but cannot initialize projection, won't build
> 
> 
> ....and
> 
> proj +proj=eqc +lon_0=0 +a=100
> 

So the problem is with the PDL::GIS::Proj module, not with Proj.4. Looking at 
the Proj.4 docs (see http://trac.osgeo.org/proj/wiki/ProjAPI) it seems that the 
particular function that is freezing is now obsolete.

----
Obsolete Functions
        XY pj_fwd( LP lp, PJ *P );
        LP pj_inv( XY xy, PJ *P );
        projPJ pj_init(int argc, char **argv);
----

I am assuming the problem is that P::G::P is trying to invoke an obsolete 
function.

Hope this helps.

Puneet.
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to