From: Chris <rea...@po...> - 2004-10-01 23:04:49
|
Hi John, I let gentoo/portage decide where all the applications are built to and it overrides the default configure settings to put things into /usr rather than /usr/local - i think the rational is that if I am letting portage/gentoo handle the management of a package then it should be ok in /usr. That way anything that I build that there is not an ebuild for goes into /usr/local. Anyway - I checked that the output of 'pkg-config --cflags-only-I pygtk-2.0' it is - '-I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include' And pygtk-2.2.0 is/was installed into /usr and there were no problems so I don't think that that is the cause of the problem. I actually don't even have a /usr/local/include directory - I have never manually installed a programme which keeps its headers available! Cheers Chris On Friday 01 October 2004 14:51, you wrote: > >>>>> "Chris" == Chris <rea...@po...> writes: > > Chris> pygtk was built from source (I use gentoo and the ebuild > Chris> does nothing out of the ordinary). > > Chris> I just re-emerged pygtk-2.3.97 and got the same result. I > Chris> have attached the full output from python setup.py build in > Chris> both cases - if you want to sent it to the pygtk people > Chris> that would be great. > > One thing that puzzles me. If you installed pygtk-2.3.97 from src, > normally it would go to /usr/local rather than /usr, unless you > specified a --prefix (did you?). > > The error message suggests that matplotlib is using /usr rather than > /usr/local for pygtk > Chris> file included from src/_gtkagg.cpp:8: > Chris> /usr/include/pygtk-2.0/pygobject.h:140: error: expected `, 'or > `...' before "typename" > > > Do you have a /usr/local/include/pygtk-2.0 directory? If so, it may > be that your PKG_CONFIG_PATH may need to be updated to see the new > install. See man pkg-config for help on this environment variable. > You want to make sure that matplotlib sees the right pygtk; matplotlib > uses 'pkg-config --cflags-only-I pygtk-2.0', so you can debug your > setup by making sure this command is returning the right path to pygtk-2.0. > > JDH |