[mapserver-users] Building Mapserver with Mapscript and AGG

Jason Beverage jasonbeverage at gmail.com
Thu Jul 16 13:44:13 EDT 2009


Hi Andy,

I tried modifying both the Makefile.in.Linux as well as the regular
makefile.  I can see -fPIC on the command line, so it appears to be doing
what I want, but I still get the same error in both cases.

Jason

On Thu, Jul 16, 2009 at 1:32 PM, Andy Colson <andy at squeakycode.net> wrote:

> Jason Beverage wrote:
>
>> Hi Nick,
>>
>> I've also tried AGG 2.5 and get the same result.  I can build it just
>> fine, its just that the Python bindings don't work correctly.
>>
>> Thanks,
>>
>> Jason
>>
>> On Thu, Jul 16, 2009 at 1:14 PM, Nikolai Nikolov <nnikolov at gypsii.com<mailto:
>> nnikolov at gypsii.com>> wrote:
>>
>>    Hi Jason,
>>
>>
>>    Mapserver 5.2.0 and later versions build successfully with AGG 2.5
>>    !!!  So I would suggest, as the best option for you, to get AGG 2.5
>>    and then build AGG and Mapserver.
>>
>>
>>    Best regards,
>>
>>    Nick
>>
>>
>>
>>  ------------------------------------------------------------------------
>>
>>    *From:* mapserver-users-bounces at lists.osgeo.org
>>    <mailto:mapserver-users-bounces at lists.osgeo.org>
>>    [mailto:mapserver-users-bounces at lists.osgeo.org
>>    <mailto:mapserver-users-bounces at lists.osgeo.org>] *On Behalf Of
>>    *Jason Beverage
>>    *Sent:* 16 July 2009 18:08
>>    *To:* mapserver-users at lists.osgeo.org
>>    <mailto:mapserver-users at lists.osgeo.org>
>>    *Subject:* [mapserver-users] Building Mapserver with Mapscript and AGG
>>
>>
>>    Hi all,
>>
>>    I'm trying to build Mapserver 5.4.1 against AGG 2.4 with Python
>>    Mapscript on Centos 5 and I'm having some trouble.
>>
>>    I followed the instructions on
>>    http://mapserver.org/installation/unix.html and modified the
>>    Makefile.in.Linux of AGG to include the -fPIC option to support
>>    mapscript.  AGG seems to build libagg.a just fine in the src directory.
>>
>>    When I build mapserver against that version of AGG, it compiles fine
>>    and so do the python bindings.  However, when I install and try to
>>    use mapscript in python, I get an error when I try to import the
>>    mapscript module:
>>    ImportError: /usr/lib/python2.4/site-packages/_mapscript.so:
>>    undefined symbol: _ZN3agg12g_sqrt_tableE
>>
>>    This appears to be an error due to the -fPIC option not being
>>    specified in the AGG build, which I've done.
>>
>>    Are there any other steps that must be done to successfully compile
>>    Mapserver against AGG to get the python bindings to work?
>>
>>    Thanks,
>>
>>    Jason
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
>
> When you do a make, if you scroll back up into the output do you see -fpic
> on the command line?
>
> You say you modified Makefile.in.Linux?  Do you use the automake stuff?
>
> I didnt, I used the normal Makefile, which includes src/Makefile.  I
> modified src/Makefile and changed:
>
> CXXFLAGS= $(AGGCXXFLAGS) -I../include -L./
>
> to
>
> CXXFLAGS= $(AGGCXXFLAGS) -fPIC -I../include -L./
>
> and then just did:
>
> make
>
>
>
> -Andy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090716/03b3a65b/attachment-0001.html


More information about the mapserver-users mailing list