Re: [Tuxpaint-devel] Several bugfixes for Tux Paint
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
From: Bill K. <nb...@so...> - 2010-02-25 07:07:32
|
On Thu, Feb 25, 2010 at 01:52:39AM +0100, Volker Grabsch wrote: > Dear Tux Paint developers, > > when I tried to cross-compile the current CVS version of Tux Paint, > I ran into several problems. > > Attached are my attempts to fix them. The patches should be > self-explaining. Patches applied in CVS (except the font_thread_abort one; I simply made that var an extern, so we can continue checking it from the main Tux Paint thread). Thanks! > I hope they are useful to you, and I hope I fixed the issues > in the intended way. > > When all patches are applied, cross compiling to win32 almost > works. It fails with the following linking error: > > -------------------------------------------------------------- > obj/tuxpaint.o:tuxpaint.c:(.text+0xadf6): undefined reference to `_getline' > obj/tuxpaint.o:tuxpaint.c:(.text+0x10a6c): undefined reference to `_load_user_fonts' > collect2: ld returned 1 exit status > make: *** [tuxpaint] Error 1 > -------------------------------------------------------------- > > I'm not sure about the first error message, but the second one > clearly indicates a programming error: tuxpaint.c uses a function > load_user_fonts() which is internal (static) of fonts.c. So this > function needs either to be avoided or to be exposed by fonts.c/h. Hrm. This is very much Albert C.'s department. If he doesn't speak up soon, and you don't figure it out, ping us again and I'll try to take a look at it myself. In the meantime, I'm tired from a long day, so time to sign off. :) Thanks again! -bill! |