From: John H. <jdh...@ac...> - 2004-10-12 22:52:33
|
Humufr> Hi, like other people in these list, I can't Humufr> compile matplotlib anymore with pygtk 2.4. I have the same Humufr> error than the others. I don't know C so I understand Humufr> nothing in these message. Someone was arriving to correct Humufr> this problem please? The failure occurs at line 8 of src/_gtkagg.cpp; there is no matplotlib code on line 8 or above, so I do not believe it is a matplotlib problem. I think it is either a pygtk problem or a problem with your environment (does your pkg-config point to the proper pygtk install path?). Below is a c++ file that is identical to _gtkagg.cpp up to the failing line, which is the gobject import. After that it just prints hello world. Try compiling it with (where the python include path should point to Python.h) > g++ test.cpp `pkg-con-2.0` -I/usr/local/include/python2.3/ Are you using gcc-3.4? This seems to be a specific problem with gcc-3.4 and pygtk-2.4. It would be helpful if you post your gcc version, platform and pygtk version. Please let me know if you learn anything else. If you fail to compile the minimal example below, check your pygtk pkg-config paths and consider posting this example to the pygtk mailing list; Niklas posted and got no response, but he didn't have a minimal example which will make a world of difference in people's ability to help. Unfortunately, I don't have access to a machine with gcc-3.4 and the latest pygtk to test with. //test.cpp #include <cstring> #include <cerrno> #include <cstdio> #include <iostream> #include <cmath> #include <utility> #include <pygobject.h> int main() { std::cout << "hello gtk" << std::cout; } |