Pejvan BEIGUI wrote:
[]
Is there anyway to have both freetype1 and 2 live peacefully on the same
system?

It would be difficult. You would have to make sure that whenever you compile a piece of code using freetype2 which will use


#include <freetype/freetype.h>

you have -I/sw/lib/freetype2/include/freetype2 *before* -I/sw/include on your compiler line. Since -I/sw/include is put there by a lot of *-config scripts, this is a non-trivial task. On a system where you store all self-installed things in the default location /usr/local, it would be completely impossible.

This is a pity, because freetype1 and freetype2 have absolutely nothing in common except this one unfortunate header file which, incidentally, is also the entry point for the whole freetype1/2 API, so it has to be included always.

Actually, newer version of freetype2, from 2.1.7 on, have the following code in all their header files that include freetype.h:

#ifdef FREETYPE_H
#error "freetype.h of FreeType 1 has been loaded!"
#error "Please fix the directory search order for header files"
#error "so that freetype.h of FreeType 2 is found first."
#endif

So they are aware of the problem, but they leave the burden of handling it on the user/porter/coder instead of fixing it.

--
Martin


------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Fink-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to