Hi!
Thanks all for the answers. I have in fact an issue between Perl and
Proj4 that I can't understand. I normally compile Proj4 from source
without problems. The install tree is /usr/local, with executables in
/usr/local/bin, libraries in /usr/local/lib and headers in
/usr/local/include. I use this package as part of a larger set of GIS
related programs and I do not experience problems: packages like GDAL,
GRASS and QGIS find Proj4 without pain. At the moment I am using the
latest source: 4.6.1.
Now, when installing Geo::Proj4, for example, warning messages appear
saying that -lproj cannot be found. The problem is that Geo::Proj4
looks for FWTools by default, so Makefile.PL has to be modified
accordingly, i.e. deleting calls to FWTools and pointing to where
Proj4 is (because I want Proj4 to be used, not FWTools).
With PDL this does not work. Using the default perldl.conf file I get:
Will forcibly try and build PDL::GIS::Proj on this system
PDL::GIS::Proj: Found /usr/local/lib/libproj.so
Trying check for projUV...
YES
Building PDL::GIS::Proj. Turn off WITH_PROJ if there are any problems
Note (probably harmless): No library found for -lproj
Writing Makefile for PDL::GIS::Proj
Writing Makefile for PDL::Lib::GIS
Writing Makefile for PDL::Transform::Cartography
Will forcibly try and build PDL::Transform::Proj4 on this system
PDL::Transform::Proj4: Found /usr/local/lib/libproj.so
Building PDL::Transform::Proj4. Turn off WITH_PROJ if there are any problems
Note (probably harmless): No library found for -lproj
Writing Makefile for PDL::Transform::Proj4
Writing Makefile for PDL::Transform
And, if I modify the perldl.conf file to point to the libraries and
includes, I get
Will forcibly try and build PDL::GIS::Proj on this system
Trying check for projUV...
YES
Building PDL::GIS::Proj. Turn off WITH_PROJ if there are any problems
Note (probably harmless): No library found for -lproj
Writing Makefile for PDL::GIS::Proj
Writing Makefile for PDL::Lib::GIS
Writing Makefile for PDL::Transform::Cartography
Will forcibly try and build PDL::Transform::Proj4 on this system
Building PDL::Transform::Proj4. Turn off WITH_PROJ if there are any problems
Note (probably harmless): No library found for -lproj
Writing Makefile for PDL::Transform::Proj4
Writing Makefile for PDL::Transform
... that is, not even finding anything!
I am not sure about the origin of this problem.
Cheers,
Hernán
2008/11/15 Orion Poplawski <[EMAIL PROTECTED]>:
> Hernán De Angelis wrote:
>>
>> t/proj_transform............Undefined subroutine &main::t_proj called
>> at t/proj_transform.t line 69, <PNM> line 3.
>> # Looks like your test exited with 9 before it could output anything.
>> t/proj_transform............ Dubious, test returned 9 (wstat 2304, 0x900)
>> Failed 20/20 subtests
>
> I'm seeing similar on Fedora 10:
>
> t/proj_transform............Possible attempt to separate words with commas
> at
> /export/data1/orion/redhat/perl-PDL-2.4.4/PDL-2.4.4/blib/lib/PDL/Transform/Proj4.pm
> line 3460.
> _fwd_trans_inplace[BADCODE](): Projection initialization failed: major axis
> or radius = 0 or not given
> # Looks like your test died before it could output anything.
> Dubious, test returned 255 (wstat 65280, 0xff00)
> Failed 20/20 subtests
>
> $ perl -Mblib t/proj_transform.t
> 1..20
> _fwd_trans_inplace[BADCODE](): Projection initialization failed: major axis
> or radius = 0 or not given
> # Looks like your test died before it could output anything.
>
> With debug:
>
> DB<2> n
> main::(t/proj_transform.t:69): my $eqc = $map->map( t_proj( proj_params =>
> $eqc_opts ), $map_size );
> DB<2> n
> _fwd_trans_inplace[BADCODE](): Projection initialization failed: major axis
> or radius = 0 or not given
> at
> /export/data1/orion/redhat/perl-PDL-2.4.4/PDL-2.4.4/blib/lib/PDL/GIS/Proj.pm
> line 172
> PDL::GIS::Proj::fwd_trans_inplace('PDL=SCALAR(0x229b540)',
> 'PDL=SCALAR(0x229c080)', ' +lon_0=0 +proj=eqc ', 1) called at
> /export/data1/orion/redhat/perl-PDL-2.4.4/PDL-2.4.4/blib/lib/PDL/Transform/Proj4.pm
> line 297
>
> PDL::Transform::Proj4::__ANON__[/export/data1/orion/redhat/perl-PDL-2.4.4/PDL-2.4.4/blib/lib/PDL/Transform/Proj4.pm:299]('PDL=SCALAR(0x2294220)',
> 'HASH(0x2288628)') called at
> /export/data1/orion/redhat/perl-PDL-2.4.4/PDL-2.4.4/blib/lib/PDL/Transform.pm
> line 1189
>
> PDL::Transform::__ANON__[/export/data1/orion/redhat/perl-PDL-2.4.4/PDL-2.4.4/blib/lib/PDL/Transform.pm:1193]('PDL=SCALAR(0x229bed0)',
> 'HASH(0x229b5a0)') called at
> /export/data1/orion/redhat/perl-PDL-2.4.4/PDL-2.4.4/blib/lib/PDL/Transform.pm
> line 312
>
> PDL::Transform::apply('PDL::Transform::Composition=HASH(0x229b5d0)',
> 'PDL=SCALAR(0x229bed0)') called at
> /export/data1/orion/redhat/perl-PDL-2.4.4/PDL-2.4.4/blib/lib/PDL/Transform.pm
> line 830
> PDL::Transform::map('PDL=SCALAR(0xb54c90)',
> 'PDL::Transform::Proj4=HASH(0x2288658)', 'ARRAY(0xb54c48)') called at
> t/proj_transform.t line 69
>
> --
> Orion Poplawski
> Technical Manager 303-415-9701 x222
> NWRA/CoRA Division FAX: 303-415-9702
> 3380 Mitchell Lane [EMAIL PROTECTED]
> Boulder, CO 80301 http://www.cora.nwra.com
>
--
Hernán De Angelis
Linux user # 397217
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl