-
Notifications
You must be signed in to change notification settings - Fork 5
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
tcl.gd doesn't properly detect if gd has jpeg/png/gif support in linux/docker #4
Comments
It uses libgd, not any of those libraries. Check the contents of the installed gd.h to see if it references GD_GIF, GD_PNG, or GD_JPEG |
This appears related to the deprecation of gdlib-config and the wrapper script placed in this repository. The pkg-config mechanism is not working right. It think the names of the defines might need be the standard GD_PNG -> HAVE_LIBPNG. In the generic/tclgd.c |
The png-config actually does nothing as CFLAGS is empty. In either case I would expect a modern define to be HAVE_LIBPNG instead of GD_PNG.
|
That's only true for GIF, and it's always included, so the |
As for the other file formats, upstream has declared in libgd/libgd#345 that all format-specific functions will at least be stubbed for linking purpose, so the official feature detection method is to call gdSupportsFileType at runtime. |
The official libgd way is to call gdSupportsFileType() at run time. This always ensures correct results, as the underlying library can change configuration independently of this extension. Also fixed `GD features` command, to return a list of supported extensions. Closes flightaware#4.
hammu tcl.gd % GD create_from_jpeg
GD library not built with JPEG support
while evaluating GD create_from_jpeg
hammu tcl.gd % GD create_from_gif
GD library not built with GIF support
while evaluating GD create_from_gif
hammu tcl.gd % GD create_from_png
GD library not built with PNG support
while evaluating GD create_from_png
yet:
The text was updated successfully, but these errors were encountered: