freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft] Error when trying to use Freetype library


From: Fredrik Karlbom
Subject: [ft] Error when trying to use Freetype library
Date: Mon, 24 Oct 2005 12:14:17 +0200

Hello,
I'm not sure that this is the proper place to ask but I do it anyway as 
I desparately need some help. I'm trying to compile and test Freetype 
on a embedded system, an ARM-processor running ThreadX but my problem 
is on the compile-stage. My dev-box is running a cygwin-based shell and 
after some problems I succeded (with the help of this great "story" 
http://www.gamedev.net/community/forums/topic.asp?topic_id=277879 ) 
compiling freetype2 by first making a file named 'lib' in the freetype-
dir containing:


#!/bin/sh
builds/unix/libtool --mode=finish $@


After making that one I call 'sh configure' and compile with 'make'. 
This gives me a nice libfreetype in my objs/.libs/ directory.

After that I follow this tutorial 
http://freetype.sourceforge.net/freetype2/docs/tutorial/step1.html and 
include the following in my code:


#include <ft2build.h>
#include FT_FREETYPE_H

...

FT_Library  library;
FT_Error error;

...

error = FT_Init_FreeType( &library );
if ( error )
{
  ...
}


I also change the neccisary changes in the makefile and the resulting 
call to gcc is (I sorted out some other includes to other libs that I 
have succeded to include before adding freetype):


/usr/bin/arm-elf-gcc -o 
image.elf ./objs/appconf_api.o ./objs/root.o    -mbig-endian -
nostartfiles \
 -
T ../../../../src/bsp/platforms/CPM4_R01/image.ld ../../../../lib/arm9/3
2b/gnu/bsp/CPM4_R01/reset.o ../../../../lib/arm9/32b/gnu/bsp/CPM4_R01/me
mcpy.o ../../../../lib/32b/gnu/crt0.o \
 -Wl,--start-group ../../../freetype/objs/.libs/libfreetype.a -
L ../../../../lib/32b/gnu -lc -lgcc -lm -lstdc++  -Wl,--end-group \
 -Wl,-Map,image.map


This returns the following error:


./objs/root.o(.text+0x14c): In function `applicationStart':
/src/apps/testfont/32b/../root.c:199: undefined reference to 
`FT_Init_FreeType' make: *** [image.elf] Error 1


It looks like I havn't succeeded to include freetype properly, but the 
path is right. It might also be some error with the #include 
FT_FREETYPE_H not resulting in including the right files. I would 
appreciate some help if anyone has any suggestions.

 
 


 
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]