From: Jason G. <jas...@cr...> - 2010-09-17 02:03:54
|
On 9/16/10 8:00 PM, Eric Firing wrote: >>> I tested your patch with Ubuntu 10.10, and it failed. The problem is >>> that something is including setjmp.h before libpng.h tries to do so via >>> pngconf.h, resulting in an error as the compiler trips over the >>> following: >> > > Python.h includes pyfpe.h which includes setjmp.h. > > Eric > Ah, good catch. So we just need to include Python.h first, and then set that extra #def so that libpng doesn't try to include it? #include "Python.h" #def PNG_SKIP_SETJMP_CHECK #include <png.h> or something like that? Jason |