Re: [UMN_MAPSERVER-USERS] Python mapscript and AGG

2007-10-05 Thread Umberto Nicoletti
On my Ubuntu 7.04 using the distro supplied agg ( 2.4+20060719-3 ) and
latest mapserver from svn python mapscript builds and loads fine.

There is probably something wrong with you setup: maybe an old agg
version around. This command will report all agg libraries in your
system:

bash# find / -iname *libagg*

on mine it says:

/usr/lib/pkgconfig/libagg.pc
/usr/lib/libaggfontfreetype_pic.a
/usr/lib/libaggplatformsdl_pic.a
/usr/lib/libagg_pic.a
/usr/lib/libagg.a
/usr/lib/libaggplatformX11_pic.a
/usr/lib/libaggplatformX11.a
/usr/lib/libaggplatformsdl.a
/usr/lib/libaggfontfreetype.a

Note the _pic libraries.
Regards,
Umberto


On 10/4/07, James Lindstorff [EMAIL PROTECTED] wrote:
 Tried changing the makefile in AGG so it's compiled with

 -O3 -I/usr/X11R6/include -L/usr/X11R6/lib -fPIC

 But the effect seems to be the same.

 Mapserver configuration is :

 MapServer is now configured for

  -- Compiler Info -
   C compiler:gcc -O2 -fPIC -Wall
   C++ compiler:  g++ -O2 -fPIC -Wall
   Debug:
   Generic NINT:
   Threading support: -DUSE_THREAD

  -- Renderer Settings -
   zlib support:  -DUSE_ZLIB
   png support:
   jpeg support:
   iconv support: -DUSE_ICONV
   AGG support:   -DUSE_AGG
   AGG Freetype support:  agg_font_freetype.o
   Ming(flash) support:
   PDFLib support:

  -- Data Format Drivers ---
   native tiff support:
   PostGIS support:
   Proj.4 support:-DUSE_PROJ
   EPPL7 support: -DUSE_EPPL
   ArcSDE support:
   OGR support:
   GDAL support:  -DUSE_GDAL
   GEOS support:
   Oracle Spatial support:
   FastCGI support:

  -- OGC Services --
   WMS Server:-DUSE_WMS_SVR
   WMS Client:-DUSE_WMS_LYR
   WFS Server:
   WFS Client:-DUSE_WMS_LYR
   WCS Server:
   SOS Server:

  -- MapScript -
   PHP MapScript: no


 /james


 -Original Message-
 From: UMN MapServer Users List [mailto:[EMAIL PROTECTED] On
 Behalf Of Howard Butler
 Sent: 4. oktober 2007 16:37
 To: MAPSERVER-USERS@LISTS.UMN.EDU
 Subject: Re: [UMN_MAPSERVER-USERS] Python mapscript and AGG

 James,

 If I recall correctly, this issue is related to AGG not being built
 with -fPIC.

 Howard

 On Oct 4, 2007, at 8:10 AM, James Lindstorff wrote:

  Having just compiled and tried out mapserver 5.0 with AGG support
  in CGI
  mode (WMS) and being very impressed with the rendering quality I
  turned to
  the Python mapscript I use for producing maps for our production
  environment. Here though I ran into a bit of trouble. I get the
  following
  error when doing import mapscript:
 
  Python 2.4.4 (#2, Apr 25 2007, 22:41:41)
  [GCC 4.1.3 20070423 (prerelease) (Debian 4.1.2-4)] on linux2
  Type help, copyright, credits or license for more information.
  import mapscript
  Traceback (most recent call last):
File stdin, line 1, in ?
File /usr/lib/python2.4/site-packages/mapscript.py, line 7, in ?
  import _mapscript
  ImportError: /usr/lib/python2.4/site-packages/_mapscript.so: undefined
  symbol: _ZN3agg12g_sqrt_tableE



[UMN_MAPSERVER-USERS] Python mapscript and AGG

2007-10-04 Thread James Lindstorff
Having just compiled and tried out mapserver 5.0 with AGG support in CGI
mode (WMS) and being very impressed with the rendering quality I turned to
the Python mapscript I use for producing maps for our production
environment. Here though I ran into a bit of trouble. I get the following
error when doing import mapscript:

Python 2.4.4 (#2, Apr 25 2007, 22:41:41)
[GCC 4.1.3 20070423 (prerelease) (Debian 4.1.2-4)] on linux2
Type help, copyright, credits or license for more information.
 import mapscript
Traceback (most recent call last):
  File stdin, line 1, in ?
  File /usr/lib/python2.4/site-packages/mapscript.py, line 7, in ?
import _mapscript
ImportError: /usr/lib/python2.4/site-packages/_mapscript.so: undefined
symbol: _ZN3agg12g_sqrt_tableE


[UMN_MAPSERVER-USERS] Python mapscript and AGG

2007-10-04 Thread James Lindstorff
Having just compiled and tried out mapserver 5.0 with AGG support in CGI
mode (WMS) and being very impressed with the rendering quality I turned to
the Python mapscript I use for producing maps for our production
environment. Here though I ran into a bit of trouble. I get the following
error when doing import mapscript:

ImportError: /usr/lib/python2.4/site-packages/_mapscript.so: undefined
symbol: _ZN3agg12g_sqrt_tableE

I'm having AGG version 2.5 running Debian 64 bit.


Anyone having similar problems and a possible solution?


Re: [UMN_MAPSERVER-USERS] Python mapscript and AGG

2007-10-04 Thread Umberto Nicoletti
Could you describe the exact steps you used to build python mapscript
and the version of swig?

Umberto

On 10/4/07, James Lindstorff [EMAIL PROTECTED] wrote:
 Having just compiled and tried out mapserver 5.0 with AGG support in CGI
 mode (WMS) and being very impressed with the rendering quality I turned to
 the Python mapscript I use for producing maps for our production
 environment. Here though I ran into a bit of trouble. I get the following
 error when doing import mapscript:

 ImportError: /usr/lib/python2.4/site-packages/_mapscript.so: undefined
 symbol: _ZN3agg12g_sqrt_tableE

 I'm having AGG version 2.5 running Debian 64 bit.


 Anyone having similar problems and a possible solution?



Re: [UMN_MAPSERVER-USERS] Python mapscript and AGG

2007-10-04 Thread James Lindstorff
From mapscript/python directory I did the following:

SWIG Version 1.3.31

swig -python -shadow -modern -o mapscript_wrap.c ../mapscript.i

python setup.py install --force


/james


Re: [UMN_MAPSERVER-USERS] Python mapscript and AGG

2007-10-04 Thread James Lindstorff
From mapscript/python directory I did the following:

SWIG Version 1.3.31

swig -python -shadow -modern -o mapscript_wrap.c ../mapscript.i

python setup.py install --force


/james

-Original Message-
From: Umberto Nicoletti [mailto:[EMAIL PROTECTED] 
Sent: 4. oktober 2007 15:54
To: James Lindstorff
Cc: MAPSERVER-USERS@lists.umn.edu
Subject: Re: [UMN_MAPSERVER-USERS] Python mapscript and AGG

Could you describe the exact steps you used to build python mapscript
and the version of swig?

Umberto

On 10/4/07, James Lindstorff [EMAIL PROTECTED] wrote:
 Having just compiled and tried out mapserver 5.0 with AGG support in
CGI
 mode (WMS) and being very impressed with the rendering quality I
turned to
 the Python mapscript I use for producing maps for our production
 environment. Here though I ran into a bit of trouble. I get the
following
 error when doing import mapscript:

 ImportError: /usr/lib/python2.4/site-packages/_mapscript.so: undefined
 symbol: _ZN3agg12g_sqrt_tableE

 I'm having AGG version 2.5 running Debian 64 bit.


 Anyone having similar problems and a possible solution?



Re: [UMN_MAPSERVER-USERS] Python mapscript and AGG

2007-10-04 Thread Umberto Nicoletti
 Python 2.4.4 (#2, Apr 25 2007, 22:41:41)
 [GCC 4.1.3 20070423 (prerelease) (Debian 4.1.2-4)] on linux2
 Type help, copyright, credits or license for more information.
  import mapscript
 Traceback (most recent call last):
   File stdin, line 1, in ?
   File /usr/lib/python2.4/site-packages/mapscript.py, line 7, in ?
 import _mapscript
 ImportError: /usr/lib/python2.4/site-packages/_mapscript.so: undefined
 symbol: _ZN3agg12g_sqrt_tableE


This is using mapscript.
Building means:

python setup.py build
python setup.py install

version of swig (type swig -version on a console)?

Umberto


Re: [UMN_MAPSERVER-USERS] Python mapscript and AGG

2007-10-04 Thread James Lindstorff
From mapscript/python directory I did the following:

SWIG Version 1.3.31

swig -python -shadow -modern -o mapscript_wrap.c ../mapscript.i

python setup.py install --force


/james

-Original Message-
From: Umberto Nicoletti [mailto:[EMAIL PROTECTED] 
Sent: 4. oktober 2007 16:19
To: James Lindstorff
Cc: MAPSERVER-USERS@lists.umn.edu
Subject: Re: [UMN_MAPSERVER-USERS] Python mapscript and AGG

 Python 2.4.4 (#2, Apr 25 2007, 22:41:41)
 [GCC 4.1.3 20070423 (prerelease) (Debian 4.1.2-4)] on linux2
 Type help, copyright, credits or license for more information.
  import mapscript
 Traceback (most recent call last):
   File stdin, line 1, in ?
   File /usr/lib/python2.4/site-packages/mapscript.py, line 7, in ?
 import _mapscript
 ImportError: /usr/lib/python2.4/site-packages/_mapscript.so: undefined
 symbol: _ZN3agg12g_sqrt_tableE


This is using mapscript.
Building means:

python setup.py build
python setup.py install

version of swig (type swig -version on a console)?

Umberto


Re: [UMN_MAPSERVER-USERS] Python mapscript and AGG

2007-10-04 Thread Howard Butler

James,

If I recall correctly, this issue is related to AGG not being built  
with -fPIC.


Howard

On Oct 4, 2007, at 8:10 AM, James Lindstorff wrote:

Having just compiled and tried out mapserver 5.0 with AGG support  
in CGI
mode (WMS) and being very impressed with the rendering quality I  
turned to

the Python mapscript I use for producing maps for our production
environment. Here though I ran into a bit of trouble. I get the  
following

error when doing import mapscript:

Python 2.4.4 (#2, Apr 25 2007, 22:41:41)
[GCC 4.1.3 20070423 (prerelease) (Debian 4.1.2-4)] on linux2
Type help, copyright, credits or license for more information.

import mapscript

Traceback (most recent call last):
  File stdin, line 1, in ?
  File /usr/lib/python2.4/site-packages/mapscript.py, line 7, in ?
import _mapscript
ImportError: /usr/lib/python2.4/site-packages/_mapscript.so: undefined
symbol: _ZN3agg12g_sqrt_tableE


Re: [UMN_MAPSERVER-USERS] Python mapscript and AGG

2007-10-04 Thread James Lindstorff
Tried changing the makefile in AGG so it's compiled with 

-O3 -I/usr/X11R6/include -L/usr/X11R6/lib -fPIC

But the effect seems to be the same.

Mapserver configuration is :

MapServer is now configured for

 -- Compiler Info -
  C compiler:gcc -O2 -fPIC -Wall
  C++ compiler:  g++ -O2 -fPIC -Wall
  Debug:
  Generic NINT:
  Threading support: -DUSE_THREAD

 -- Renderer Settings -
  zlib support:  -DUSE_ZLIB
  png support:
  jpeg support:
  iconv support: -DUSE_ICONV
  AGG support:   -DUSE_AGG
  AGG Freetype support:  agg_font_freetype.o
  Ming(flash) support:
  PDFLib support:

 -- Data Format Drivers ---
  native tiff support:
  PostGIS support:
  Proj.4 support:-DUSE_PROJ
  EPPL7 support: -DUSE_EPPL
  ArcSDE support:
  OGR support:
  GDAL support:  -DUSE_GDAL
  GEOS support:
  Oracle Spatial support:
  FastCGI support:

 -- OGC Services --
  WMS Server:-DUSE_WMS_SVR
  WMS Client:-DUSE_WMS_LYR
  WFS Server:
  WFS Client:-DUSE_WMS_LYR
  WCS Server:
  SOS Server:

 -- MapScript -
  PHP MapScript: no


/james


-Original Message-
From: UMN MapServer Users List [mailto:[EMAIL PROTECTED] On
Behalf Of Howard Butler
Sent: 4. oktober 2007 16:37
To: MAPSERVER-USERS@LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] Python mapscript and AGG

James,

If I recall correctly, this issue is related to AGG not being built  
with -fPIC.

Howard

On Oct 4, 2007, at 8:10 AM, James Lindstorff wrote:

 Having just compiled and tried out mapserver 5.0 with AGG support  
 in CGI
 mode (WMS) and being very impressed with the rendering quality I  
 turned to
 the Python mapscript I use for producing maps for our production
 environment. Here though I ran into a bit of trouble. I get the  
 following
 error when doing import mapscript:

 Python 2.4.4 (#2, Apr 25 2007, 22:41:41)
 [GCC 4.1.3 20070423 (prerelease) (Debian 4.1.2-4)] on linux2
 Type help, copyright, credits or license for more information.
 import mapscript
 Traceback (most recent call last):
   File stdin, line 1, in ?
   File /usr/lib/python2.4/site-packages/mapscript.py, line 7, in ?
 import _mapscript
 ImportError: /usr/lib/python2.4/site-packages/_mapscript.so: undefined
 symbol: _ZN3agg12g_sqrt_tableE