Compilation du package matplotlib pour python (UBUNTU)

Compilation du package matplotlib pour python (UBUNTU) - C++ - Programmation

Marsh Posté le 26-10-2008 à 22:49:11    

Bonjour a tous, (J ai deja poste ce message dans la section Python, mais je ne sais pas si c etait le bon endroit etant donne que c est un probleme de link avec g++ apparement :()
 
Je ne trouve pas de section consacree a Python, alors je poste ici...
 
J essaye de compiler le package matplotlib, mais comme vous pouvez vous en douter, j ai un probleme... :(
 
Je ne parviens pas a dechiffrer le message d erreur de ld....
 
Est ce que quelqu un pourrait me guider ?
 
J'ai telecharge les sources et j utilise gcc g++ 3.4. La version de python que j utilise est python 2.5.1. Je n utilise pas la version de python de Ubuntu mais ma propre version necessaire pour rester consistent avec les programme que j utilise.
 
 
Merci :)
 
 
 
guiriec@Mars:/FGST/Tools/Python-lib/Python-2.5.1/matplotlib-0.98.3$ pythonGE setup.py build
============================================================================
BUILDING MATPLOTLIB
            matplotlib: 0.98.3
                python: 2.5.1 (r251:54863, Jul  3 2007, 11:00:59)  [GCC
                        3.4.6 20060404 (Red Hat 3.4.6-8)]
              platform: linux2
 
REQUIRED DEPENDENCIES
                 numpy: 1.2.0
             freetype2: 9.16.3
 
OPTIONAL BACKEND DEPENDENCIES
                libpng: 1.2.15beta5
               Tkinter: no
                        * Using default library and include directories for
                        * Tcl and Tk because a Tk window failed to open.
                        * You may need to define DISPLAY for Tk to work so
                        * that setup can determine where your libraries are
                        * located. Tkinter present, but header files are not
                        * found. You may need to install development
                        * packages.
              wxPython: no
                        * wxPython not found
                  Gtk+: no
                        * Building for Gtk+ requires pygtk; you must be able
                        * to "import gtk" in your build/install environment
                    Qt: no
                   Qt4: no
                 Cairo: no
 
OPTIONAL DATE/TIMEZONE DEPENDENCIES
              datetime: present, version unknown
              dateutil: matplotlib will provide
                  pytz: matplotlib will provide
 
OPTIONAL USETEX DEPENDENCIES
                dvipng: 1.9
           ghostscript: 8.61
                 latex: 3.141592
               pdftops: 3.00
 
EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
             configobj: matplotlib will provide
      enthought.traits: no
 
[Edit setup.cfg to suppress the above messages]
============================================================================
running build
running build_py
copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.linux-i686-2.5/matplotlib/mpl-data
copying lib/matplotlib/mpl-data/matplotlib.conf -> build/lib.linux-i686-2.5/matplotlib/mpl-data
running build_ext
building 'matplotlib.backends._backend_agg' extension
creating build/temp.linux-i686-2.5
creating build/temp.linux-i686-2.5/agg24
creating build/temp.linux-i686-2.5/agg24/src
creating build/temp.linux-i686-2.5/src
creating build/temp.linux-i686-2.5/CXX
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -I/usr/local/include -I/usr/include -I. -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -Isrc -Iagg24/include -I. -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/FGST/GLAST_EXT/rhel4_gcc34/python/2.5.1/include/python2.5 -c agg24/src/agg_trans_affine.cpp -o build/temp.linux-i686-2.5/agg24/src/agg_trans_affine.o
cc1plus: attention : l'option de la ligne de commande "-Wstrict-prototypes" est valide pour C/ObjC mais pas pour C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -I/usr/local/include -I/usr/include -I. -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -Isrc -Iagg24/include -I. -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/FGST/GLAST_EXT/rhel4_gcc34/python/2.5.1/include/python2.5 -c agg24/src/agg_bezier_arc.cpp -o build/temp.linux-i686-2.5/agg24/src/agg_bezier_arc.o
cc1plus: attention : l'option de la ligne de commande "-Wstrict-prototypes" est valide pour C/ObjC mais pas pour C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -I/usr/local/include -I/usr/include -I. -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -Isrc -Iagg24/include -I. -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/FGST/GLAST_EXT/rhel4_gcc34/python/2.5.1/include/python2.5 -c agg24/src/agg_curves.cpp -o build/temp.linux-i686-2.5/agg24/src/agg_curves.o
cc1plus: attention : l'option de la ligne de commande "-Wstrict-prototypes" est valide pour C/ObjC mais pas pour C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -I/usr/local/include -I/usr/include -I. -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -Isrc -Iagg24/include -I. -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/FGST/GLAST_EXT/rhel4_gcc34/python/2.5.1/include/python2.5 -c agg24/src/agg_vcgen_dash.cpp -o build/temp.linux-i686-2.5/agg24/src/agg_vcgen_dash.o
cc1plus: attention : l'option de la ligne de commande "-Wstrict-prototypes" est valide pour C/ObjC mais pas pour C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -I/usr/local/include -I/usr/include -I. -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -Isrc -Iagg24/include -I. -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/FGST/GLAST_EXT/rhel4_gcc34/python/2.5.1/include/python2.5 -c agg24/src/agg_vcgen_stroke.cpp -o build/temp.linux-i686-2.5/agg24/src/agg_vcgen_stroke.o
cc1plus: attention : l'option de la ligne de commande "-Wstrict-prototypes" est valide pour C/ObjC mais pas pour C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -I/usr/local/include -I/usr/include -I. -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -Isrc -Iagg24/include -I. -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/FGST/GLAST_EXT/rhel4_gcc34/python/2.5.1/include/python2.5 -c agg24/src/agg_image_filters.cpp -o build/temp.linux-i686-2.5/agg24/src/agg_image_filters.o
cc1plus: attention : l'option de la ligne de commande "-Wstrict-prototypes" est valide pour C/ObjC mais pas pour C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -I/usr/local/include -I/usr/include -I. -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -Isrc -Iagg24/include -I. -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/FGST/GLAST_EXT/rhel4_gcc34/python/2.5.1/include/python2.5 -c src/_image.cpp -o build/temp.linux-i686-2.5/src/_image.o
cc1plus: attention : l'option de la ligne de commande "-Wstrict-prototypes" est valide pour C/ObjC mais pas pour C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -I/usr/local/include -I/usr/include -I. -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -Isrc -Iagg24/include -I. -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/FGST/GLAST_EXT/rhel4_gcc34/python/2.5.1/include/python2.5 -c src/ft2font.cpp -o build/temp.linux-i686-2.5/src/ft2font.o
cc1plus: attention : l'option de la ligne de commande "-Wstrict-prototypes" est valide pour C/ObjC mais pas pour C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -I/usr/local/include -I/usr/include -I. -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -Isrc -Iagg24/include -I. -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/FGST/GLAST_EXT/rhel4_gcc34/python/2.5.1/include/python2.5 -c src/mplutils.cpp -o build/temp.linux-i686-2.5/src/mplutils.o
cc1plus: attention : l'option de la ligne de commande "-Wstrict-prototypes" est valide pour C/ObjC mais pas pour C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -I/usr/local/include -I/usr/include -I. -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -Isrc -Iagg24/include -I. -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/FGST/GLAST_EXT/rhel4_gcc34/python/2.5.1/include/python2.5 -c CXX/IndirectPythonInterface.cxx -o build/temp.linux-i686-2.5/CXX/IndirectPythonInterface.o
cc1plus: attention : l'option de la ligne de commande "-Wstrict-prototypes" est valide pour C/ObjC mais pas pour C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -I/usr/local/include -I/usr/include -I. -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -Isrc -Iagg24/include -I. -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/FGST/GLAST_EXT/rhel4_gcc34/python/2.5.1/include/python2.5 -c CXX/cxx_extensions.cxx -o build/temp.linux-i686-2.5/CXX/cxx_extensions.o
cc1plus: attention : l'option de la ligne de commande "-Wstrict-prototypes" est valide pour C/ObjC mais pas pour C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -I/usr/local/include -I/usr/include -I. -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -Isrc -Iagg24/include -I. -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/FGST/GLAST_EXT/rhel4_gcc34/python/2.5.1/include/python2.5 -c CXX/cxxsupport.cxx -o build/temp.linux-i686-2.5/CXX/cxxsupport.o
cc1plus: attention : l'option de la ligne de commande "-Wstrict-prototypes" est valide pour C/ObjC mais pas pour C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -I/usr/local/include -I/usr/include -I. -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -Isrc -Iagg24/include -I. -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/FGST/GLAST_EXT/rhel4_gcc34/python/2.5.1/include/python2.5 -c CXX/cxxextensions.c -o build/temp.linux-i686-2.5/CXX/cxxextensions.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -I/usr/local/include -I/usr/include -I. -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -Isrc -Iagg24/include -I. -I/FGST/Tools/Python-lib/Python-2.5.1/numpy-1.2.0/lib/python/numpy/core/include -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/FGST/GLAST_EXT/rhel4_gcc34/python/2.5.1/include/python2.5 -c src/backend_agg.cpp -o build/temp.linux-i686-2.5/src/backend_agg.o
cc1plus: attention : l'option de la ligne de commande "-Wstrict-prototypes" est valide pour C/ObjC mais pas pour C++
g++ -pthread -shared build/temp.linux-i686-2.5/agg24/src/agg_trans_affine.o build/temp.linux-i686-2.5/agg24/src/agg_bezier_arc.o build/temp.linux-i686-2.5/agg24/src/agg_curves.o build/temp.linux-i686-2.5/agg24/src/agg_vcgen_dash.o build/temp.linux-i686-2.5/agg24/src/agg_vcgen_stroke.o build/temp.linux-i686-2.5/agg24/src/agg_image_filters.o build/temp.linux-i686-2.5/src/_image.o build/temp.linux-i686-2.5/src/ft2font.o build/temp.linux-i686-2.5/src/mplutils.o build/temp.linux-i686-2.5/CXX/IndirectPythonInterface.o build/temp.linux-i686-2.5/CXX/cxx_extensions.o build/temp.linux-i686-2.5/CXX/cxxsupport.o build/temp.linux-i686-2.5/CXX/cxxextensions.o build/temp.linux-i686-2.5/src/backend_agg.o -L/usr/local/lib -L/usr/lib -L/usr/lib64 -L/usr/local/lib -L/usr/lib -L/usr/lib64 -lstdc++ -lm -lfreetype -lz -lz -lstdc++ -lm -o build/lib.linux-i686-2.5/matplotlib/backends/_backend_agg.so
`.L26981' referenced in section `.rodata' of build/temp.linux-i686-2.5/src/backend_agg.o: defined in discarded section `.gnu.linkonce.t._ZN3agg18rasterizer_sl_clipINS_12ras_conv_intEE7line_toINS_19rasterizer_cells_aaINS_7cell_aaEEEEEvRT_ii' of build/temp.linux-i686-2.5/src/backend_agg.o
`.L26982' referenced in section `.rodata' of build/temp.linux-i686-2.5/src/backend_agg.o: defined in discarded section `.gnu.linkonce.t._ZN3agg18rasterizer_sl_clipINS_12ras_conv_intEE7line_toINS_19rasterizer_cells_aaINS_7cell_aaEEEEEvRT_ii' of build/temp.linux-i686-2.5/src/backend_agg.o
`.L26992' referenced in section `.rodata' of build/temp.linux-i686-2.5/src/backend_agg.o: defined in discarded section `.gnu.linkonce.t._ZN3agg18rasterizer_sl_clipINS_12ras_conv_intEE7line_toINS_19rasterizer_cells_aaINS_7cell_aaEEEEEvRT_ii' of build/temp.linux-i686-2.5/src/backend_agg.o
`.L27002' referenced in section `.rodata' of build/temp.linux-i686-2.5/src/backend_agg.o: defined in discarded section `.gnu.linkonce.t._ZN3agg18rasterizer_sl_clipINS_12ras_conv_intEE7line_toINS_19rasterizer_cells_aaINS_7cell_aaEEEEEvRT_ii' of build/temp.linux-i686-2.5/src/backend_agg.o
`.L27003' referenced in section `.rodata' of build/temp.linux-i686-2.5/src/backend_agg.o: defined in discarded section `.gnu.linkonce.t._ZN3agg18rasterizer_sl_clipINS_12ras_conv_intEE7line_toINS_19rasterizer_cells_aaINS_7cell_aaEEEEEvRT_ii' of build/temp.linux-i686-2.5/src/backend_agg.o
`.L26980' referenced in section `.rodata' of build/temp.linux-i686-2.5/src/backend_agg.o: defined in discarded section `.gnu.linkonce.t._ZN3agg18rasterizer_sl_clipINS_12ras_conv_intEE7line_toINS_19rasterizer_cells_aaINS_7cell_aaEEEEEvRT_ii' of build/temp.linux-i686-2.5/src/backend_agg.o
`.L27013' referenced in section `.rodata' of build/temp.linux-i686-2.5/src/backend_agg.o: defined in discarded section `.gnu.linkonce.t._ZN3agg18rasterizer_sl_clipINS_12ras_conv_intEE7line_toINS_19rasterizer_cells_aaINS_7cell_aaEEEEEvRT_ii' of build/temp.linux-i686-2.5/src/backend_agg.o
`.L27032' referenced in section `.rodata' of build/temp.linux-i686-2.5/src/backend_agg.o: defined in discarded section `.gnu.linkonce.t._ZN3agg18rasterizer_sl_clipINS_12ras_conv_intEE7line_toINS_19rasterizer_cells_aaINS_7cell_aaEEEEEvRT_ii' of build/temp.linux-i686-2.5/src/backend_agg.o
`.L27042' referenced in section `.rodata' of build/temp.linux-i686-2.5/src/backend_agg.o: defined in discarded section `.gnu.linkonce.t._ZN3agg18rasterizer_sl_clipINS_12ras_conv_intEE7line_toINS_19rasterizer_cells_aaINS_7cell_aaEEEEEvRT_ii' of build/temp.linux-i686-2.5/src/backend_agg.o
`.L27061' referenced in section `.rodata' of build/temp.linux-i686-2.5/src/backend_agg.o: defined in discarded section `.gnu.linkonce.t._ZN3agg18rasterizer_sl_clipINS_12ras_conv_intEE7line_toINS_19rasterizer_cells_aaINS_7cell_aaEEEEEvRT_ii' of build/temp.linux-i686-2.5/src/backend_agg.o
collect2: ld a retourné 1 code d'état d'exécution
error: command 'g++' failed with exit status 1

Reply

Marsh Posté le 26-10-2008 à 22:49:11   

Reply

Marsh Posté le 27-10-2008 à 21:43:01    

upup :(

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed