nanogui: freetype problem
Subject:
Re: [nanogui] freetype problem
From:
Takács ####@####.####
Date:
21 Apr 2004 12:01:21 +0100
Message-Id: <200404211301.07745.takacs.aron@infracont.hu>
> Did you set INCFT2LIB and LIBFT2LIB? INCFTLIB and LIBFTLIB will be ignored
> (they are for FreeType 1, you're using FreeType 2).
I have modified the config file as follows:
####################################################################
# TrueType font support thru FreeType
####################################################################
HAVE_FREETYPE_2_SUPPORT = Y
INCFT2LIB = /opt/arm-linux/include
LIBFT2LIB = /opt/arm-linux/lib/libfreetype.so
FREETYPE_FONT_DIR = "/opt/arm-linux/include/microwin/fonts"
And I got the following error:
Linking /home/roni/microwindows-0.90/src/bin/nano-X ...
/opt/arm-linux/lib/libfreetype.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [/home/roni/microwindows-0.90/src/bin/nano-X] Error 1
make: *** [subdir-nanox] Error 2
I have also tried with libfreetype.a:
####################################################################
# TrueType font support thru FreeType
####################################################################
HAVE_FREETYPE_2_SUPPORT = Y
INCFT2LIB = /opt/arm-linux/include
LIBFT2LIB = /opt/arm-linux/lib/libfreetype.a
FREETYPE_FONT_DIR = "/opt/arm-linux/include/microwin/fonts"
And the result is:
Linking /home/roni/microwindows-0.90/src/bin/nano-X ...
/opt/arm-linux/bin/../lib/gcc-lib/arm-linux/3.2.2/../../../../arm-linux/bin/ld: /opt/arm-linux/lib/libfreetype.a(ftinit.o)
(.debug_info+0x18): R_ARM_PC24 relocation against SEC_MERGE section
collect2: ld returned 1 exit status
make[1]: *** [/home/roni/microwindows-0.90/src/bin/nano-X] Error 1
make: *** [subdir-nanox] Error 2
Thank you for your reply!
Regards!
Áron Takács