分类: LINUX
2009-11-08 21:30:50
gtkunixprintmodule.c:35:22: error: pycairo.h: No such file or directory gtkunixprintmodule.c:36: error: parse error before '*' token gtkunixprintmodule.c:36: warning: type defaults to 'int' in declaration of 'Pycairo_CAPI' gtkunixprintmodule.c:36: warning: data definition has no type or storage class gtkunixprintmodule.c: In function 'initgtkunixprint': gtkunixprintmodule.c:51: error: 'Pycairo_IMPORT' undeclared (first use in this function) gtkunixprintmodule.c:51: error: (Each undeclared identifier is reported only once gtkunixprintmodule.c:51: error: for each function it appears in.) make[2]: *** [gtkunixprint_la-gtkunixprintmodule.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
网上搜了搜,有人说是导出环境变量PKG_CONFIG_PATH,增加路径/usr/lib/pkconfig,这个没管用
后来的解决办法是把pycairo从1.4降低到1.2.6