Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PIL does not compile with freetype2 support #413

Closed
GeoRW opened this issue Jul 9, 2015 · 2 comments
Closed

PIL does not compile with freetype2 support #413

GeoRW opened this issue Jul 9, 2015 · 2 comments

Comments

@GeoRW
Copy link

GeoRW commented Jul 9, 2015

PIL is not compiled with freetype2 support with current recipe:

--------------------------------------------------------------------
PIL 1.1.7 SETUP SUMMARY
--------------------------------------------------------------------
version       1.1.7
platform      linux3 2.7.2 (default, Jul  9 2015, 09:27:04)
              [GCC 4.8.4]
--------------------------------------------------------------------
*** TKINTER support not available
--- JPEG support available
--- ZLIB (PNG/ZIP) support available
*** FREETYPE2 support not available
*** LITTLECMS support not available
--------------------------------------------------------------------

Changing the CFLAGS path solved the issue for me:

  • export CFLAGS="$CFLAGS -I$JNI_PATH/png -I$JNI_PATH/jpeg -I$JNI_PATH/freetype/include/freetype"
  • export CFLAGS="$CFLAGS -I$JNI_PATH/png -I$JNI_PATH/jpeg -I$JNI_PATH/freetype"
--------------------------------------------------------------------
PIL 1.1.7 SETUP SUMMARY
--------------------------------------------------------------------
version       1.1.7
platform      linux3 2.7.2 (default, Jul  9 2015, 09:56:49)
              [GCC 4.8.4]
--------------------------------------------------------------------
*** TKINTER support not available
--- JPEG support available
--- ZLIB (PNG/ZIP) support available
--- FREETYPE2 support available
*** LITTLECMS support not available
--------------------------------------------------------------------

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@GeoRW
Copy link
Author

GeoRW commented Jul 10, 2015

Actually, it compiles with FREETYPE2 support, when I upgrade freetype library in src/jni/freetype to 2.4.0. Then it works with the original recipe.
However I needed to go few months of commits back as there's another problem with manipulating images -> they get screwed up by PIL. I suspect, it's due to changes in jpeg library. I will try to figure out which commit caused this.

@inclement
Copy link
Member

Closing as out of date, the PIL and now pillow recipes have changed since then and may no longer have the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants