starting up

Hello,
The best wishes for the new year to all of you!
I am completely new to this part of the game. I have worked with Python and
Matlab and the matplotlib appears to be an excellent tool for my demands, but
I cannot get the thing working. I have spend two days to try to find my own
way out of it, but that didn't work, so I will ask your help.
I have a SuSE Linux 9.2 i386 installation. I have changed the prefix and
exec-prefix in setupext.py to read '/usr' and start the build routine to get:
maarten@...460...:~/Documents/Downloads/matplotlib-0.70.1> python setup.py
build
sh: pkg-config: command not found
sh: pkg-config: command not found
sh: pkg-config: command not found
sh: pkg-config: command not found
running build
running build_py
creating build
creating build/lib.linux-i686-2.3
copying lib/pylab.py -> build/lib.linux-i686-2.3
creating build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/patches.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/numerix.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/_image.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/colors.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/transforms.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/finance.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/dates.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/cm.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/windowing.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/pyparsing.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/collections.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/na_imports.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/legend.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/text.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/afm.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/mlab.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/matlab.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/figure.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/table.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/_transforms.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/nc_imports.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/font_manager.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/image.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/backend_bases.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/cbook.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/_pylab_helpers.py ->
build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/pylab.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/_mathtext_data.py ->
build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/mathtext.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/ticker.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/axes.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/axis.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/__init__.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/artist.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/_contour.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/lines.py -> build/lib.linux-i686-2.3/matplotlib
creating build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_cairo.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_template.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_agg.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_gdk.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_gtk.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_wxagg.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_svg.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_tkagg.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_gtkagg.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/__init__.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_fltkagg.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_gd.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_paint.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_ps.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_wx.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/tkagg.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_gtkcairo.py ->
build/lib.linux-i686-2.3/matplotlib/backends
running build_ext
building 'matplotlib._nc_transforms' extension
creating build/temp.linux-i686-2.3
creating build/temp.linux-i686-2.3/src
creating build/temp.linux-i686-2.3/CXX
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=i586 -mcpu=i686
-fmessage-length=0 -Wall -fPIC -Isrc -I. -I/usr/include/python2.3 -c
CXX/IndirectPythonInterface.cxx -o
build/temp.linux-i686-2.3/CXX/IndirectPythonInterface.o -DNUMERIC=1
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=i586 -mcpu=i686
-fmessage-length=0 -Wall -fPIC -Isrc -I. -I/usr/include/python2.3 -c
CXX/cxxsupport.cxx -o build/temp.linux-i686-2.3/CXX/cxxsupport.o -DNUMERIC=1
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=i586 -mcpu=i686
-fmessage-length=0 -Wall -fPIC -Isrc -I. -I/usr/include/python2.3 -c
src/_nc_transforms.cpp -o build/temp.linux-i686-2.3/src/_nc_transforms.o
-DNUMERIC=1
In file included from /usr/include/python2.3/Python.h:8,
                 from CXX/Objects.hxx:9,
                 from CXX/Extensions.hxx:18,
                 from src/_transforms.h:10,
                 from src/_nc_transforms.cpp:2:
/usr/include/python2.3/pyconfig.h:850:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/g++/i586-suse-linux/bits/os_defines.h:39,
                 from /usr/include/g++/i586-suse-linux/bits/c++config.h:35,
                 from /usr/include/g++/functional:53,
                 from src/_nc_transforms.cpp:1:
/usr/include/features.h:132:1: warning: this is the location of the previous
definition
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=i586 -mcpu=i686
-fmessage-length=0 -Wall -fPIC -Isrc -I. -I/usr/include/python2.3 -c
CXX/cxxextensions.c -o build/temp.linux-i686-2.3/CXX/cxxextensions.o
-DNUMERIC=1
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=i586 -mcpu=i686
-fmessage-length=0 -Wall -fPIC -Isrc -I. -I/usr/include/python2.3 -c
src/mplutils.cpp-o build/temp.linux-i686-2.3/src/mplutils.o -DNUMERIC=1
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=i586 -mcpu=i686
-fmessage-length=0 -Wall -fPIC -Isrc -I. -I/usr/include/python2.3 -c
CXX/cxx_extensions.cxx -o build/temp.linux-i686-2.3/CXX/cxx_extensions.o
-DNUMERIC=1
g++ -pthread -shared build/temp.linux-i686-2.3/src/_nc_transforms.o
build/temp.linux-i686-2.3/src/mplutils.o
build/temp.linux-i686-2.3/CXX/cxx_extensions.obuild/temp.linux-i686-2.3/CXX/cxxsupport.o
build/temp.linux-i686-2.3/CXX/IndirectPythonInterface.o
build/temp.linux-i686-2.3/CXX/cxxextensions.o -lstdc++ -lm -o
build/lib.linux-i686-2.3/matplotlib/_nc_transforms.so
building 'matplotlib.backends._gtkagg' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=i586 -mcpu=i686
-fmessage-length=0 -Wall -fPIC -I/usr/include -I/usr/include -Isrc
-Iagg22/include -I. -I/usr/include -I/usr/include -I/usr/include/freetype2
-I/usr/include/freetype2 -Isrc/freetype2 -Iagg22/include/freetype2
-I./freetype2 -I/usr/include/freetype2 -I/usr/include/freetype2
-I/usr/include -I/usr/include -I/usr/include/python2.3 -c src/_gtkagg.cpp -o
build/temp.linux-i686-2.3/src/_gtkagg.o
src/_gtkagg.cpp:8:23: pygobject.h: Onbekend bestand of map
src/_gtkagg.cpp:9:25: pygtk/pygtk.h: Onbekend bestand of map
In file included from /usr/include/python2.3/Python.h:8,
                 from CXX/Objects.hxx:9,
                 from CXX/Extensions.hxx:18,
                 from src/_backend_agg.h:8,
                 from src/_gtkagg.cpp:11:
/usr/include/python2.3/pyconfig.h:850:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/string.h:26,
                 from /usr/include/g++/cstring:51,
                 from src/_gtkagg.cpp:1:
/usr/include/features.h:132:1: warning: this is the location of the previous
definition
src/_gtkagg.cpp: In member function `Py::Object
_gtkagg_module::agg_to_gtk_drawable(const Py::Tuple&)':
src/_gtkagg.cpp:35: error: `PyGObject' undeclared (first use this function)
src/_gtkagg.cpp:35: error: (Each undeclared identifier is reported only once
for each function it appears in.)
src/_gtkagg.cpp:35: error: `py_drawable' undeclared (first use this function)
src/_gtkagg.cpp:35: error: syntax error before `;' token
src/_gtkagg.cpp:39: error: `GdkDrawable' undeclared (first use this function)
src/_gtkagg.cpp:39: error: `drawable' undeclared (first use this function)
src/_gtkagg.cpp:39: error: `GDK_DRAWABLE' undeclared (first use this function)
src/_gtkagg.cpp:40: error: `GdkGC' undeclared (first use this function)
src/_gtkagg.cpp:40: error: `gc' undeclared (first use this function)
src/_gtkagg.cpp:40: error: `gdk_gc_new' undeclared (first use this function)
src/_gtkagg.cpp:48: error: `GDK_RGB_DITHER_NORMAL' undeclared (first use this
function)
src/_gtkagg.cpp:50: error: `gdk_draw_rgb_32_image' undeclared (first use this
function)
src/_gtkagg.cpp: In function `void init_gtkagg()':
src/_gtkagg.cpp:62: error: `init_pygobject' undeclared (first use this
function)
src/_gtkagg.cpp:63: error: `init_pygtk' undeclared (first use this function)
error: command 'gcc' failed with exit status 1

There are two lines in Dutch, meaning 'unknown file or directory' some 20
lines from the bottom, for pygobject.h and pygtk/pygtk.h, both in gtkagg.cpp.

Could someone please give me a hand?

Regards,

Maarten de Vries

Hi Maarten

Try

python setup.py build_ext --include-dir=<directory where you will find
pygobject.h>:<directory where you will find pygtk>

If this works finish the build with python setup.py build.

hope this helps,

Cheers,
Cory.

···

On Thu, 2005-01-06 at 12:08, Maarten de Vries wrote:

Hello,
The best wishes for the new year to all of you!
I am completely new to this part of the game. I have worked with Python and
Matlab and the matplotlib appears to be an excellent tool for my demands, but
I cannot get the thing working. I have spend two days to try to find my own
way out of it, but that didn't work, so I will ask your help.
I have a SuSE Linux 9.2 i386 installation. I have changed the prefix and
exec-prefix in setupext.py to read '/usr' and start the build routine to get:
maarten@...460...:~/Documents/Downloads/matplotlib-0.70.1> python setup.py
build
sh: pkg-config: command not found
sh: pkg-config: command not found
sh: pkg-config: command not found
sh: pkg-config: command not found
running build
running build_py
creating build
creating build/lib.linux-i686-2.3
copying lib/pylab.py -> build/lib.linux-i686-2.3
creating build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/patches.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/numerix.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/_image.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/colors.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/transforms.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/finance.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/dates.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/cm.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/windowing.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/pyparsing.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/collections.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/na_imports.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/legend.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/text.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/afm.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/mlab.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/matlab.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/figure.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/table.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/_transforms.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/nc_imports.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/font_manager.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/image.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/backend_bases.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/cbook.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/_pylab_helpers.py ->
build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/pylab.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/_mathtext_data.py ->
build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/mathtext.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/ticker.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/axes.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/axis.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/__init__.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/artist.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/_contour.py -> build/lib.linux-i686-2.3/matplotlib
copying lib/matplotlib/lines.py -> build/lib.linux-i686-2.3/matplotlib
creating build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_cairo.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_template.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_agg.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_gdk.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_gtk.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_wxagg.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_svg.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_tkagg.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_gtkagg.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/__init__.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_fltkagg.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_gd.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_paint.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_ps.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_wx.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/tkagg.py ->
build/lib.linux-i686-2.3/matplotlib/backends
copying lib/matplotlib/backends/backend_gtkcairo.py ->
build/lib.linux-i686-2.3/matplotlib/backends
running build_ext
building 'matplotlib._nc_transforms' extension
creating build/temp.linux-i686-2.3
creating build/temp.linux-i686-2.3/src
creating build/temp.linux-i686-2.3/CXX
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=i586 -mcpu=i686
-fmessage-length=0 -Wall -fPIC -Isrc -I. -I/usr/include/python2.3 -c
CXX/IndirectPythonInterface.cxx -o
build/temp.linux-i686-2.3/CXX/IndirectPythonInterface.o -DNUMERIC=1
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=i586 -mcpu=i686
-fmessage-length=0 -Wall -fPIC -Isrc -I. -I/usr/include/python2.3 -c
CXX/cxxsupport.cxx -o build/temp.linux-i686-2.3/CXX/cxxsupport.o -DNUMERIC=1
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=i586 -mcpu=i686
-fmessage-length=0 -Wall -fPIC -Isrc -I. -I/usr/include/python2.3 -c
src/_nc_transforms.cpp -o build/temp.linux-i686-2.3/src/_nc_transforms.o
-DNUMERIC=1
In file included from /usr/include/python2.3/Python.h:8,
                 from CXX/Objects.hxx:9,
                 from CXX/Extensions.hxx:18,
                 from src/_transforms.h:10,
                 from src/_nc_transforms.cpp:2:
/usr/include/python2.3/pyconfig.h:850:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/g++/i586-suse-linux/bits/os_defines.h:39,
                 from /usr/include/g++/i586-suse-linux/bits/c++config.h:35,
                 from /usr/include/g++/functional:53,
                 from src/_nc_transforms.cpp:1:
/usr/include/features.h:132:1: warning: this is the location of the previous
definition
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=i586 -mcpu=i686
-fmessage-length=0 -Wall -fPIC -Isrc -I. -I/usr/include/python2.3 -c
CXX/cxxextensions.c -o build/temp.linux-i686-2.3/CXX/cxxextensions.o
-DNUMERIC=1
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=i586 -mcpu=i686
-fmessage-length=0 -Wall -fPIC -Isrc -I. -I/usr/include/python2.3 -c
src/mplutils.cpp-o build/temp.linux-i686-2.3/src/mplutils.o -DNUMERIC=1
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=i586 -mcpu=i686
-fmessage-length=0 -Wall -fPIC -Isrc -I. -I/usr/include/python2.3 -c
CXX/cxx_extensions.cxx -o build/temp.linux-i686-2.3/CXX/cxx_extensions.o
-DNUMERIC=1
g++ -pthread -shared build/temp.linux-i686-2.3/src/_nc_transforms.o
build/temp.linux-i686-2.3/src/mplutils.o
build/temp.linux-i686-2.3/CXX/cxx_extensions.obuild/temp.linux-i686-2.3/CXX/cxxsupport.o
build/temp.linux-i686-2.3/CXX/IndirectPythonInterface.o
build/temp.linux-i686-2.3/CXX/cxxextensions.o -lstdc++ -lm -o
build/lib.linux-i686-2.3/matplotlib/_nc_transforms.so
building 'matplotlib.backends._gtkagg' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=i586 -mcpu=i686
-fmessage-length=0 -Wall -fPIC -I/usr/include -I/usr/include -Isrc
-Iagg22/include -I. -I/usr/include -I/usr/include -I/usr/include/freetype2
-I/usr/include/freetype2 -Isrc/freetype2 -Iagg22/include/freetype2
-I./freetype2 -I/usr/include/freetype2 -I/usr/include/freetype2
-I/usr/include -I/usr/include -I/usr/include/python2.3 -c src/_gtkagg.cpp -o
build/temp.linux-i686-2.3/src/_gtkagg.o
src/_gtkagg.cpp:8:23: pygobject.h: Onbekend bestand of map
src/_gtkagg.cpp:9:25: pygtk/pygtk.h: Onbekend bestand of map
In file included from /usr/include/python2.3/Python.h:8,
                 from CXX/Objects.hxx:9,
                 from CXX/Extensions.hxx:18,
                 from src/_backend_agg.h:8,
                 from src/_gtkagg.cpp:11:
/usr/include/python2.3/pyconfig.h:850:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/string.h:26,
                 from /usr/include/g++/cstring:51,
                 from src/_gtkagg.cpp:1:
/usr/include/features.h:132:1: warning: this is the location of the previous
definition
src/_gtkagg.cpp: In member function `Py::Object
_gtkagg_module::agg_to_gtk_drawable(const Py::Tuple&)':
src/_gtkagg.cpp:35: error: `PyGObject' undeclared (first use this function)
src/_gtkagg.cpp:35: error: (Each undeclared identifier is reported only once
for each function it appears in.)
src/_gtkagg.cpp:35: error: `py_drawable' undeclared (first use this function)
src/_gtkagg.cpp:35: error: syntax error before `;' token
src/_gtkagg.cpp:39: error: `GdkDrawable' undeclared (first use this function)
src/_gtkagg.cpp:39: error: `drawable' undeclared (first use this function)
src/_gtkagg.cpp:39: error: `GDK_DRAWABLE' undeclared (first use this function)
src/_gtkagg.cpp:40: error: `GdkGC' undeclared (first use this function)
src/_gtkagg.cpp:40: error: `gc' undeclared (first use this function)
src/_gtkagg.cpp:40: error: `gdk_gc_new' undeclared (first use this function)
src/_gtkagg.cpp:48: error: `GDK_RGB_DITHER_NORMAL' undeclared (first use this
function)
src/_gtkagg.cpp:50: error: `gdk_draw_rgb_32_image' undeclared (first use this
function)
src/_gtkagg.cpp: In function `void init_gtkagg()':
src/_gtkagg.cpp:62: error: `init_pygobject' undeclared (first use this
function)
src/_gtkagg.cpp:63: error: `init_pygtk' undeclared (first use this function)
error: command 'gcc' failed with exit status 1

There are two lines in Dutch, meaning 'unknown file or directory' some 20
lines from the bottom, for pygobject.h and pygtk/pygtk.h, both in gtkagg.cpp.

Could someone please give me a hand?

Regards,

Maarten de Vries

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
))))))))))))))))))))))))))))))))))))))))))))
Cory Davis
Meteorology
School of GeoSciences
University of Edinburgh
King's Buildings
EDINBURGH EH9 3JZ

ph: +44(0)131 6505092
fax +44(0)131 6505780
cdavis@...372...
cory@...374...
http://www.geos.ed.ac.uk/contacts/homes/cdavis
))))))))))))))))))))))))))))))))))))))))))))

Maarten de Vries wrote:

Hello,
The best wishes for the new year to all of you!
I am completely new to this part of the game. I have worked with Python and Matlab and the matplotlib appears to be an excellent tool for my demands, but I cannot get the thing working. I have spend two days to try to find my own way out of it, but that didn't work, so I will ask your help.
I have a SuSE Linux 9.2 i386 installation. I have changed the prefix and exec-prefix in setupext.py to read '/usr' and start the build routine to get:
maarten@...460...:~/Documents/Downloads/matplotlib-0.70.1> python setup.py build
sh: pkg-config: command not found

<snipped further output>

I'd install pkg-config before going any further. I believe it will find dependencies automatically without relying on you to enter them. Unfortunately, I have no idea how to install it on SuSE.

Your later errors indicate problems finding the GTK header files, which I think pkg-config will help with. (At least once you install them, too!)

Cheers!
Andrew