[Gdal-dev] Re: Compiling GDAL SWIG wrappers

Ari Jolma ari.jolma at tkk.fi
Thu Oct 6 14:06:36 EDT 2005


Frank Warmerdam kirjoitti:

>On 10/6/05, Matt Foster <Matthew.Foster at noaa.gov> wrote:
>  
>
>>Frank,
>>
>>I'm trying to compile GDAL with --with-perl, so I can get the Perl
>>bindings (mainly to OGR), and the compile is failing.  It's complaining
>>that SWIG_NewPointerObj is undeclared in gdal_wrapper.cpp.  I'm assuming
>>that means something's amiss in my SWIG install, but I'm not sure what.
>>The baseline system (RHEL 3) has SWIG 1.1, but I also have SWIG 1.3.19
>>available in /usr/local.
>>
>>Any clue what might be fouled up?
>>    
>>
>
>Matt,
>
>I believe that the swig bindings for GDAL/OGR require at least
>SWIG 1.3.25 if you are rebuilding the wrappers.  However, my
>understanding was that the GDAL 1.3.1 release included pre-built
>wrappers in which case this should not be a problem.
>
>I not really sure what the solution to your problem is, so I am
>ccing this to the list so Kevin, Ari or others can comment.
>  
>

AFAIK this is correct. I have swig 1.3.25 which I installed myself 
because the version in fedora 3 or 4 was not new enough. This version 
complains only about DISOWN, which is not very fatal. The latest gdal 
tarball has wrappers and swig shouldn't be needed. SWIG_NewPointerObj is 
a C macro, which expands to  SWIG_Perl_NewPointerObj which is a function 
defined in the wrapper itself. Is your gdal_wrapper.cpp ok?

Ari

>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
>
>_______________________________________________
>Gdal-dev mailing list
>Gdal-dev at lists.maptools.org
>http://lists.maptools.org/mailman/listinfo/gdal-dev
>  
>


-- 
Prof. Ari Jolma
Kartografia ja Geoinformatiikka / Cartography and Geoinformatics
Teknillinen Korkeakoulu / Helsinki University of Technology
POBox 1200, 02015 TKK, Finland
Email: ari.jolma at tkk.fi URL: http://www.tkk.fi/~jolma




More information about the Gdal-dev mailing list