From: Ryan K. <rya...@gm...> - 2005-10-27 18:40:52
|
You might get all the development packages you will ever need in one step if you install gnome-devel - but it is a huge package with a lot of dependencies that could take a while to install. But it might keep you from hunting for individual packages needed by mpl backends. Ryan On 10/27/05, Ryan Krauss <rya...@gm...> wrote: > You will also need the packages tk8.4 and tk8.4-dev for the Tk backend > (your version numbers might be slightly less if you are on Hoary). > > Ryan > > On 10/27/05, Christian Meesters <mee...@un...> wrote: > > Hi Ryan, > > > > Thanks, but I too run into problems: > > Doing python setup.py build is fine until: > > <snip> > > src/_na_backend_gdk.c:12:25: error: pygtk/pygtk.h: No such file or > > directory > > src/_na_backend_gdk.c: In function 'pixbuf_get_pixels_array': > > src/_na_backend_gdk.c:31: error: 'PyGObject' undeclared (first use in > > this function) > > src/_na_backend_gdk.c:31: error: (Each undeclared identifier is reporte= d > > only once > > src/_na_backend_gdk.c:31: error: for each function it appears in.) > > src/_na_backend_gdk.c:31: error: 'py_pixbuf' undeclared (first use in > > this function) > > src/_na_backend_gdk.c:32: error: 'GdkPixbuf' undeclared (first use in > > this function) > > src/_na_backend_gdk.c:32: error: 'gdk_pixbuf' undeclared (first use in > > this function) > > src/_na_backend_gdk.c:40: warning: implicit declaration of function > > 'GDK_PIXBUF' > > src/_na_backend_gdk.c:46: warning: implicit declaration of function > > 'gdk_pixbuf_get_height' > > src/_na_backend_gdk.c:47: warning: implicit declaration of function > > 'gdk_pixbuf_get_width' > > src/_na_backend_gdk.c:48: warning: implicit declaration of function > > 'gdk_pixbuf_get_has_alpha' > > src/_na_backend_gdk.c:52: warning: implicit declaration of function > > 'gdk_pixbuf_get_pixels' > > src/_na_backend_gdk.c:52: warning: cast to pointer from integer of > > different size > > src/_na_backend_gdk.c:56: warning: implicit declaration of function > > 'gdk_pixbuf_get_rowstride' > > src/_na_backend_gdk.c: In function 'init_na_backend_gdk': > > src/_na_backend_gdk.c:84: warning: implicit declaration of function > > 'init_pygtk' > > error: command 'gcc' failed with exit status 1 > > > > Apparently the autodetection fails. Then I disabled all backends (excep= t > > for Agg, WX, WXAgg, which I want to use) and next time I tried setup.py > > build: > > > > WXAgg's accelerator requires `wx-config'. > > > > The `wx-config' executable could not be located in any directory of the > > PATH > > environment variable. If it is in some other location or has some othe= r > > name, > > set the WX_CONFIG environment variable to the full path of the > > executable. > > > > Sounds familiar, doesn't it? ;-) > > > > Now, I tried to read on and in the end I am - frankly - completely > > confused. Since I can't compile (I tried some other tweaks) ... is > > somebody able to compile installation instructions? It appears that the > > part on matplotlib's web page isn't up to date (how to build, the issue > > with the debian's package, possibly other problems yet not seen by me?)= . > > I would be willing to test everything shown to me and summarize this. > > (Alas, I don't know how to build packages myself yet and I fear I won't > > have the time to do anything quickly.) > > > > Cheers, > > Christian > > > > > > > > > |