Hi
I was compiling IM on debian lenny with the following options:
./configure --with-quantum-depth=8 --prefix=/usr
Previously I installed the necessary header files for freetype, jpeg and so on. configure tells that freetype is available (see output below) and installation worked fine without errors. But when I create an image from text with the following command:
convert -font "/test.ttf" label:"ABCD" "test.png", I get always the message:
convert: delegate library support not built-in `/test.ttf' (Freetype) @ annotate.c/RenderFreetype/1737.
I know there are similar threads here and I searched a lot the web but nothing helped. I also set LDFLAGS='-L/usr/local/lib -R/usr/local/lib' as suggested in the manual installation section here.
I used the default deb-packages (libfreetype6 / libfreetype6-dev) as well as the latest manually compiled version of freetype.
Do you have any ideas why freetype support is broken or what I can change/check to get it to work?
Output of config.log:
configure:37122: checking for FreeType 2.0
configure:37124: result:
configure:37138: checking for freetype-config
configure:37154: found /usr/local/bin/freetype-config
configure:37165: result: freetype-config
configure:37184: checking for FT_Init_FreeType in -lfreetype
configure:37219: gcc -std=gnu99 -o conftest -fopenmp -g -O2 -Wall -W -pthread -I/usr/local/include/freetype2 -I/usr/local/include -L/usr/local/lib -R/usr/local/lib -L/usr/local/lib -lfreetype -lz conftest.c -lfreetype -lz -lbz2 -lm -lgomp -ldl -lpthread >&5
gcc: unrecognized option '-R/usr/local/lib'
configure:37226: $? = 0
configure:37247: result: yes
configure:37271: checking ft2build.h usability
configure:37288: gcc -std=gnu99 -c -fopenmp -g -O2 -Wall -W -pthread -I/usr/local/include/freetype2 -I/usr/local/include conftest.c >&5
configure:37295: $? = 0
configure:37309: result: yes
configure:37313: checking ft2build.h presence
configure:37328: gcc -std=gnu99 -E -I/usr/local/include/freetype2 -I/usr/local/include conftest.c
configure:37335: $? = 0
configure:37349: result: yes
configure:37382: checking for ft2build.h
configure:37389: result: yes
configure:37400: checking for freetype/freetype.h
configure:37421: gcc -std=gnu99 -c -fopenmp -g -O2 -Wall -W -pthread -I/usr/local/include/freetype2 -I/usr/local/include conftest.c >&5
configure:37428: $? = 0
configure:37443: result: yes
configure:37459: checking if FreeType package is complete
configure:37481: result: yes
No freetype support after compiling
-
- Posts: 11
- Joined: 2009-03-27T06:18:58-07:00
- Authentication code: 8675309
Re: No freetype support after compiling
Verify Freetype support with this command:
- identify -list format
-
- Posts: 11
- Joined: 2009-03-27T06:18:58-07:00
- Authentication code: 8675309
Re: No freetype support after compiling
identify shows no read mode:
OTF* TTF --- Open Type font
:
TTC* TTF --- TrueType font collection
TTF* TTF --- TrueType font
Could it have to do with the fact that I'm not installing in the default location?
I also run a test with the default IM package of debian (whitch is 6.3.7.9.). There it works with a breeze. But if anyhow possible I would prefer to use a later version...
OTF* TTF --- Open Type font
:
TTC* TTF --- TrueType font collection
TTF* TTF --- TrueType font
Could it have to do with the fact that I'm not installing in the default location?
I also run a test with the default IM package of debian (whitch is 6.3.7.9.). There it works with a breeze. But if anyhow possible I would prefer to use a later version...
Re: No freetype support after compiling
If the configure script validates a particular delegate library and you recompiled / reinstalled ImageMagick, that format should be able to be read and / or written. Do you have more than one version of ImageMagick on your system? Perhaps ImageMagick is picking up the wrong location of the loadable modules. Try a 'make clean' on the ImageMagick directory and then 'make;make install'. Does that fix the problem?
-
- Posts: 11
- Joined: 2009-03-27T06:18:58-07:00
- Authentication code: 8675309
Re: No freetype support after compiling
I always used make uninstall / make distclean before running ./configure. I also checked carefully that only one version of freetype is installed...
Anyway - I tried now installing in the default location (/usr/local/bin) and voilà... it works!
It seems that there are some path that are not correctly handled when using the --with-prefix option.
I thought I had some other problems when installing in the default directory but I can't remember currently - so it's ok now for me...
Thanks for help!
Anyway - I tried now installing in the default location (/usr/local/bin) and voilà... it works!
It seems that there are some path that are not correctly handled when using the --with-prefix option.
I thought I had some other problems when installing in the default directory but I can't remember currently - so it's ok now for me...
Thanks for help!