I'm not worried about freetype, but I would really like aggdraw to install properly so I can use it with RDKit, computational chemistry software.
ar...@aryeh-laptop:~/Desktop/aggdraw-1.2a3-20060212$ python setup.py install running install running build running build_ext building 'aggdraw' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DHAVE_FREETYPE2 -Iagg2/include -Iagg2/font_freetype -I/usr/lib/include -I/usr/lib/include/freetype2 -I/usr/include/python2.6 -c aggdraw.cxx -o build/temp.linux-x86_64-2.6/aggdraw.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ In file included from aggdraw.cxx:69: agg2/font_freetype/agg_font_freetype.h:23:22: error: ft2build.h: No such file or directory agg2/font_freetype/agg_font_freetype.h:24:10: error: #include expects "FILENAME" or <FILENAME> In file included from agg2/font_freetype/agg_font_freetype.h:28, from aggdraw.cxx:69: agg2/include/agg_scanline_storage_bin.h: In member function ‘unsigned int agg::scanline_storage_bin::byte_size() const’: agg2/include/agg_scanline_storage_bin.h:247: warning: unused variable ‘sp’ In file included from aggdraw.cxx:69: agg2/font_freetype/agg_font_freetype.h: At global scope: agg2/font_freetype/agg_font_freetype.h:60: error: ‘FT_Encoding’ has not been declared agg2/font_freetype/agg_font_freetype.h:81: error: ‘FT_Encoding’ does not name a type agg2/font_freetype/agg_font_freetype.h:119: error: ‘FT_Encoding’ does not name a type agg2/font_freetype/agg_font_freetype.h:123: error: ‘FT_Matrix’ does not name a type agg2/font_freetype/agg_font_freetype.h:127: error: ‘FT_Library’ does not name a type agg2/font_freetype/agg_font_freetype.h:128: error: ISO C++ forbids declaration of ‘FT_Face’ with no type agg2/font_freetype/agg_font_freetype.h:128: error: expected ‘;’ before ‘*’ token agg2/font_freetype/agg_font_freetype.h:133: error: ‘FT_Face’ does not name a type aggdraw.cxx:179: error: ‘FT_Face’ does not name a type aggdraw.cxx: In member function ‘void draw_adaptor<PixFmt>::drawtext(float*, PyObject*, FontObject*)’: aggdraw.cxx:362: error: ‘FT_Face’ was not declared in this scope aggdraw.cxx:362: error: expected ‘;’ before ‘face’ aggdraw.cxx:363: error: ‘face’ was not declared in this scope aggdraw.cxx:367: error: ‘face’ was not declared in this scope aggdraw.cxx: In function ‘void draw_setup(DrawObject*)’: aggdraw.cxx:457: warning: deprecated conversion from string constant to ‘char*’ aggdraw.cxx:460: warning: deprecated conversion from string constant to ‘char*’ aggdraw.cxx:463: warning: deprecated conversion from string constant to ‘char*’ aggdraw.cxx:466: warning: deprecated conversion from string constant to ‘char*’ aggdraw.cxx: In function ‘PyObject* draw_new(PyObject*, PyObject*)’: aggdraw.cxx:572: warning: deprecated conversion from string constant to ‘char*’ aggdraw.cxx: In function ‘agg::rgba8 getcolor(PyObject*, int)’: aggdraw.cxx:778: warning: deprecated conversion from string constant to ‘char*’ aggdraw.cxx: In function ‘PyObject* draw_textsize(DrawObject*, PyObject*)’: aggdraw.cxx:1074: error: ‘FT_Face’ was not declared in this scope aggdraw.cxx:1074: error: expected ‘;’ before ‘face’ aggdraw.cxx:1075: error: ‘face’ was not declared in this scope aggdraw.cxx:1084: error: ‘face’ was not declared in this scope aggdraw.cxx:1084: error: ‘FT_Get_Char_Index’ was not declared in this scope aggdraw.cxx:1086: error: ‘FT_LOAD_DEFAULT’ was not declared in this scope aggdraw.cxx:1086: error: ‘FT_Load_Glyph’ was not declared in this scope aggdraw.cxx:1092: error: ‘face’ was not declared in this scope aggdraw.cxx: In function ‘PyObject* draw_flush(DrawObject*, PyObject*)’: aggdraw.cxx:1239: warning: deprecated conversion from string constant to ‘char*’ aggdraw.cxx:1239: warning: deprecated conversion from string constant to ‘char*’ aggdraw.cxx: In function ‘PyObject* pen_new(PyObject*, PyObject*, PyObject*)’: aggdraw.cxx:1331: warning: deprecated conversion from string constant to ‘char*’ aggdraw.cxx:1331: warning: deprecated conversion from string constant to ‘char*’ aggdraw.cxx:1331: warning: deprecated conversion from string constant to ‘char*’ aggdraw.cxx: In function ‘PyObject* brush_new(PyObject*, PyObject*, PyObject*)’: aggdraw.cxx:1362: warning: deprecated conversion from string constant to ‘char*’ aggdraw.cxx:1362: warning: deprecated conversion from string constant to ‘char*’ aggdraw.cxx: In function ‘PyObject* font_new(PyObject*, PyObject*, PyObject*)’: aggdraw.cxx:1393: warning: deprecated conversion from string constant to ‘char*’ aggdraw.cxx:1393: warning: deprecated conversion from string constant to ‘char*’ aggdraw.cxx:1393: warning: deprecated conversion from string constant to ‘char*’ aggdraw.cxx:1393: warning: deprecated conversion from string constant to ‘char*’ aggdraw.cxx:1410: error: ‘font_load’ was not declared in this scope aggdraw.cxx: At global scope: aggdraw.cxx:1427: error: ‘FT_Face’ does not name a type aggdraw.cxx: In function ‘PyObject* font_getattr(FontObject*, char*)’: aggdraw.cxx:1448: error: ‘FT_Face’ was not declared in this scope aggdraw.cxx:1448: error: expected ‘;’ before ‘face’ aggdraw.cxx:1450: error: ‘face’ was not declared in this scope aggdraw.cxx:1450: error: ‘font_load’ was not declared in this scope aggdraw.cxx:1458: error: ‘face’ was not declared in this scope aggdraw.cxx:1458: error: ‘font_load’ was not declared in this scope aggdraw.cxx:1466: error: ‘face’ was not declared in this scope aggdraw.cxx:1466: error: ‘font_load’ was not declared in this scope aggdraw.cxx:1474: error: ‘face’ was not declared in this scope aggdraw.cxx:1474: error: ‘font_load’ was not declared in this scope In file included from agg2/font_freetype/agg_font_freetype.h:35, from aggdraw.cxx:69: agg2/include/agg_font_cache_manager.h: In member function ‘void agg::font_cache_manager<FontEngine>::init_embedded_adaptors(const agg::glyph_cache*, double, double) [with FontEngine = agg::font_engine_freetype_int32]’: aggdraw.cxx:381: instantiated from ‘void draw_adaptor<PixFmt>::drawtext(float*, PyObject*, FontObject*) [with PixFmt = agg::pixel_formats_rgba32<agg::order_rgba32>]’ aggdraw.cxx:1940: instantiated from here agg2/include/agg_font_cache_manager.h:306: warning: enumeration value ‘glyph_data_invalid’ not handled in switch error: command 'gcc' failed with exit status 1 Any idea what is going wrong here?
_______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig