Hi Chris and Puneet,

Yes, the binary works as defined in your example, Chris.

If I remove the check_lib function and force the compile, everything
now works through to and including the 'demo transform'. Problem
dodged, if not sorted.

Matt

On Mon, Nov 28, 2011 at 12:28 AM, chm <[email protected]> wrote:
> Hi Matt-
>
> I'm back to PDL access and was wondering how this
> went.  Given that PGPLOT was the original 2D plotting
> environment for PDL, I would prefer that it not be
> dropped because of a build issue.
>
> Did try running the proj executable to see if the
> proj install is actually working?
>
> Also, if there is something funny with the Devel::CheckLib
> detection on macosx, you should still be able to force
> the build.  If you do, do the tests pass?
>
> In the meantime, I've cc'd a couple of developers
> who I know are mac users and may be able to help
> with the debugging further.
>
> Cheers,
> Chris
>
> On 11/24/2011 8: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.
>>
>> 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
>>
>>
>> ...just freezes the system.
>>
>> Okay, unless someone speaks up for wanting Proj in SciPDL, I'm going
>> onto the next library.
>>
>> Cheers,
>>
>> matt
>>
>> On Wed, Nov 23, 2011 at 10:45 PM, Puneet Kishor<[email protected]>
>> wrote:
>>>
>>> Hi Matt, Chris,
>>>
>>> The supporting files for Proj.4 are usually kept at
>>> $PREFIX/share/proj. So, since I used macports to install Proj.4,
>>> and macports stuffs everything under /opt/local, my Proj.4
>>> definitions are under /opt/local/share/proj
>>>
>>> punkish@mumbai /opt/local/share/proj$ls FL                  WI
>>> epsg.orig           nad27               nzgd2kgrid0005.gsb  stlrnc
>>> GL27                WO                  esri                nad83
>>> other.extra         stpaul IGNF                alaska
>>> esri.extra          ntf_r93.gsb         proj_def.dat        world
>>> MD                  conus               hawaii
>>> ntv1_can.dat        prvi TN                  epsg
>>> nad.lst             null                stgeorge
>>>
>>>
>>> All of the above files are available at the Proj.4 download site.
>>> Hope this helps.
>>>
>>>
>>> On Nov 23, 2011, at 3:27 PM, Chris Marshall wrote:
>>>
>>>> In addition to the library files and executables for PROJ4, one
>>>> also needs to have the datum files which have the definitions of
>>>> the various coordinate systems for proj.exe and the library
>>>> routines to use.  If you don't have them installed, then you will
>>>> not be able to convert coordinate projections.  You'll either
>>>> need to set an environment variable or get an additional package
>>>> with those files. I don't know what or where that would be for
>>>> the Mac.
>>>>
>>>> --Chris
>>>>
>>>> On Wed, Nov 23, 2011 at 3:58 PM, Matthew Kenworthy
>>>> <[email protected]>  wrote:
>>>>>
>>>>> I've compiled and installed proj4 on Lion Mac OS X, but
>>>>> although I've defined the paths for LIB and INCLUDE in
>>>>> perldl.conf, but the perl Makefile.PL
>>>>>
>>>>> Will forcibly try and build PDL::GIS::Proj on this system
>>>>>
>>>>> PDL::GIS::Proj: Found /usr/local/lib/libproj.a Trying check for
>>>>> projUV... YES PROJ4 library found but cannot initialize
>>>>> projection, won't build
>>>>>
>>>>> I can't see what's causing the build to skip, any suggestions
>>>>> as to what to try?
>>>>>
>>>>> Many thanks,
>>>>>
>>>>> Matt
>>>>>
>>>>>
>>>>> -- Matthew Kenworthy / Assistant Professor / Leiden
>>>>> Observatory Niels Bohrweg 2 (#463) / P.O. Box 9513 / 2300 RA
>>>>> Leiden / NL
>>>>>
>>>>> _______________________________________________ Perldl mailing
>>>>> list [email protected]
>>>>> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
>>>>>
>>>>
>>>> _______________________________________________ Perldl mailing
>>>> list [email protected]
>>>> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
>>>
>>>
>>
>>
>>
>
>



-- 
Matthew Kenworthy / Assistant Professor / Leiden Observatory
Niels Bohrweg 2 (#463) / P.O. Box 9513 / 2300 RA Leiden / NL

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

Reply via email to