Jiba wrote:
In file included from soyapyrex.c:13:
/usr/include/freetype2/freetype/freetype.h:20:2: #error "`ft2build.h' hasn't been included yet!"
/usr/include/freetype2/freetype/freetype.h:21:2: #error "Please always

use macros to include FreeType header files."
/usr/include/freetype2/freetype/freetype.h:22:2: #error "Example:"
/usr/include/freetype2/freetype/freetype.h:23:2: #error " #include <ft2build.h>"
/usr/include/freetype2/freetype/freetype.h:24:2: #error " #include FT_FREETYPE_H"

I solved this by editing soyapyrex.c directly and doing what the
#error messages say. I don't know enough about pyrex to try to fix
this in freetype.pxd...

My freetype.h does not have these #error line, so can you explain me
what are the change ?

I don't know what the changes are in freetype.h, but the changes I made are as follows:

/* #include "freetype/freetype.h" */
#include <ft2build.h>
#include FT_FREETYPE_H

in soyapyrex.c. That is, the commented out #include is what you already had, and I inserted the two following lines (as per the #error messages' suggestion).

Obviously the real fix needs to go into freetype.pxd, but I don't know how macros interoperate with pyrex.

--
 Twisted | Christopher Armstrong: International Man of Twistery
  Radix  |          Release Manager,  Twisted Project
---------+           http://radix.twistedmatrix.com/

Attachment: signature.asc
Description: OpenPGP digital signature



Reply via email to