[Matplotlib-users] Compiling on AIX 5.3

2007-04-12 Thread Langella Raphael
I'm trying to compile matplotlib under AIX 5.3 (I've installed
ActivePython), here is what I get:

/usr/local/python2.5/config/ld_so_aix cc_r
-bI:/usr/local/python2.5/config/python.exp
build/temp.aix-5.3-2.5/src/agg.o
build/temp.aix-5.3-2.5/agg23/src/agg_trans_affine.o
build/temp.aix-5.3-2.5/agg23/src/agg_path_storage.o
build/temp.aix-5.3-2.5/agg23/src/agg_bezier_arc.o
build/temp.aix-5.3-2.5/agg23/src/agg_vcgen_dash.o
build/temp.aix-5.3-2.5/agg23/src/agg_vcgen_stroke.o
build/temp.aix-5.3-2.5/agg23/src/agg_rasterizer_scanline_aa.o
build/temp.aix-5.3-2.5/agg23/src/agg_curves.o -lstdc++ -lm -o
build/lib.aix-5.3-2.5/matplotlib/_agg.so
ld: 0706-006 Cannot find or open library file: -l stdc++
ld:open(): No such file or directory
building 'matplotlib._na_transforms' extension
creating build/temp.aix-5.3-2.5/CXX
cc_r -DNDEBUG -O -Isrc -I. -I/opt/freeware/include
-I/Produits/publics/powerpc.AIX.5.3/include
-I/Produits/publics/powerpc.AIX.5.3/gcc/3.1/include -I.
-I/usr/local/include/python2.5 -c src/_na_transforms.cpp -o
build/temp.aix-5.3-2.5/src/_na_transforms.o -DNUMARRAY=1
./CXX/Objects.hxx, line 1436.100: 1540-0140 (S) The text  is
unexpected.  SeqBaseT::iterator may be undeclared, ambiguous, or may
require typename qualification.

I've got libstd++.a and libstdc++.la in
/Produits/publics/powerpc.AIX.5.3/gcc/3.1/include


Setting CXX to g++ doesn't help :
g++ cc_r -bI:/usr/local/lib/python2.5/config/python.exp
build/temp.aix-5.3-2.5/src/agg.o
build/temp.aix-5.3-2.5/agg23/src/agg_trans_affine.o
build/temp.aix-5.3-2.5/agg23/src/agg_path_storage.o
build/temp.aix-5.3-2.5/agg23/src/agg_bezier_arc.o
build/temp.aix-5.3-2.5/agg23/src/agg_vcgen_dash.o
build/temp.aix-5.3-2.5/agg23/src/agg_vcgen_stroke.o
build/temp.aix-5.3-2.5/agg23/src/agg_rasterizer_scanline_aa.o
build/temp.aix-5.3-2.5/agg23/src/agg_curves.o -lstdc++ -lm -o
build/lib.aix-5.3-2.5/matplotlib/_agg.so
g++: cc_r: No such file or directory
error: command 'g++' failed with exit status 1

Is there any other way to select the c++ compiler? Because setting the
CXX variable doesn't seem to work.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Compiling on AIX 5.3

2007-04-12 Thread Langella Raphael
I've found a way to configure my compiler. After setting CC=gcc I was
able to complete the compilation. But when I test it :

python anim.py

The import of the numpy version of the _transforms module,
_ns_transforms, failed.  This is is either because numpy was unavailable
when matplotlib was compiled, because a dependency of _ns_transforms
could not be satisfied, or because the build flag for this module was
turned off in setup.py.  If it appears that _ns_transforms was not
built, make sure you have a working copy of numpy and then re-install
matplotlib. Otherwise, the following traceback gives more details:

Traceback (most recent call last):
  File anim.py, line 19, in module
import pylab as p
  File /Produits/tmp/rla/AIX/lib/python2.5/site-packages/pylab.py,
line 1, in module
from matplotlib.pylab import *
  File
/Produits/tmp/rla/AIX/lib/python2.5/site-packages/matplotlib/pylab.py,
line 203, in module
from axes import Axes, PolarAxes
  File
/Produits/tmp/rla/AIX/lib/python2.5/site-packages/matplotlib/axes.py,
line 14, in module
import artist
  File
/Produits/tmp/rla/AIX/lib/python2.5/site-packages/matplotlib/artist.py
, line 4, in module
from transforms import identity_transform
  File
/Produits/tmp/rla/AIX/lib/python2.5/site-packages/matplotlib/transforms
.py, line 223, in module
from _transforms import Value, Point, Interval, Bbox, Affine
  File
/Produits/tmp/rla/AIX/lib/python2.5/site-packages/matplotlib/_transform
s.py, line 17, in module
from matplotlib._ns_transforms import *
ImportError: No module named _ns_transforms

Of course, I have numpy installed and tested.

During the compilation, I get this error (using gcc-4.1.1):

/usr/local/lib/python2.5/config/ld_so_aix cc_r
-bI:/usr/local/lib/python2.5/config/python.exp
build/temp.aix-5.3-2.5/src/_na_transforms.o
build/temp.aix-5.3-2.5/src/mplutils.o
build/temp.aix-5.3-2.5/CXX/IndirectPythonInterface.o
build/temp.aix-5.3-2.5/CXX/cxx_extensions.o
build/temp.aix-5.3-2.5/CXX/cxxsupport.o
build/temp.aix-5.3-2.5/CXX/cxxextensions.o -L/usr/local/lib
-L/opt/freeware/lib -L/Produits/publics/powerpc.AIX.5.3/lib
-L/Produits/publics/powerpc.AIX.5.3/gcc/3.1/lib
-L/Produits/publics/powerpc.AIX.5.2/zlib/1.1.4/lib
-L/Produits/tmp/JL/AIX-5.2/TestInstall/lib -lstdc++ -lm -o
build/lib.aix-5.3-2.5/matplotlib/_na_transforms.so
ld: 0711-317 ERROR: Undefined symbol: _ZTISt9exception
ld: 0711-317 ERROR: Undefined symbol: ._Unwind_Resume
ld: 0711-317 ERROR: Undefined symbol:
._ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_
ld: 0711-317 ERROR: Undefined symbol:
._ZSt18_Rb_tree_decrementPSt18_Rb_tree_node_base
ld: 0711-317 ERROR: Undefined symbol:
._ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base
ld: 0711-317 ERROR: Undefined symbol: _ZNSs4_Rep20_S_empty_rep_storageE
ld: 0711-317 ERROR: Undefined symbol:
._ZN9__gnu_cxx18__exchange_and_addEPVii
ld: 0711-317 ERROR: Undefined symbol: _ZTISt11logic_error
ld: 0711-317 ERROR: Undefined symbol: .__cxa_guard_acquire
ld: 0711-317 ERROR: Undefined symbol: .__cxa_guard_release
ld: 0711-317 ERROR: Undefined symbol: .__cxa_guard_abort
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information. building 'matplotlib._ns_transforms' extension

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users