Re: [Tuxpaint-devel] Tuxpaint compiling from source
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
|
From: Bill K. <nb...@so...> - 2008-05-03 23:36:40
|
On Wed, Apr 30, 2008 at 10:21:14AM -0400, Francois Legault wrote:
<snip>
> SDL_Pango-0.1.2 (also tried 0.1.1)
<snip>
> When I try "make" It tell me that:
> ##########################
> bash-3.1# make
>
> ...Linking Tux Paint...
> obj/tuxpaint.o: In function `wordwrap_text_ex':
> tuxpaint.c:(.text+0x661e): undefined reference to
> `SDLPango_SetText_GivenAlignment'
> obj/fonts.o: In function `TuxPaint_Font_OpenFont':
> fonts.c:(.text+0x1902): undefined reference to
> `SDLPango_CreateContext_GivenFontDesc'
> collect2: ld returned 1 exit status
> make: *** [tuxpaint] Error 1
> bash-3.1#
> ############################
Interesting, I see this in my SDL_pango.h on Ubuntu 8.04:
/*! @file
@brief Header file of SDL_Pango
@author NAKAMURA Ken'ichi
@date 2004/08/26
$Revision: 1.3 $
*/
...
extern DECLSPEC void SDLCALL SDLPango_SetText_GivenAlignment(
SDLPango_Context *context,
const char *text,
int length,
SDLPango_Alignment alignment);
Do you have an older Pango installed, not from source? Perhaps Tux Paint
is picking that up? (e.g., in /usr/lib vs. /usr/local/lib)
Search your system for "libSDL_Pango*" :)
> If I try "make" with flag to disable PANGO support it don't work eighter.
> It tell me that:
> #############################
> bash-3.1# make NOPANGOFLAG=NO_SDLPANGO SDL_PANGO_LIB=
> ...Linking Tux Paint...
> obj/tuxpaint.o: In function `wordwrap_text_ex':
> tuxpaint.c:(.text+0x65ce): undefined reference to
> `SDLPango_SetDefaultColor'
<snip>
Ah, do a "make clean" first, so that it recompiles without Pango.
You had compiled, and it was alright, but the linking step failed.
At this rate, it's still trying to link with what you had compiled before,
WITHOUT disabling pango support in Tux Paint.
Good luck!
--
-bill!
bi...@ne...
http://www.newbreedsoftware.com/
|