No freetype support after compiling
Posted: 2009-03-27T07:03:09-07:00
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
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