[Freeciv-Dev] Re: (PR#4195) new SDL on solaris issues
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Sat, May 10, 2003 at 03:55:45AM -0700, Per I. Mathisen wrote:
>
> On Fri, 9 May 2003, Rafa³ Bursig wrote:
> > And you will get it untill you upgrade your system to freetype >= 2.1.3
> > ( current stable is 2.1.4 )
> > but if you still wantuse old freetype lib then chage FT_OPEN_STREAM ->
> > ft_open_stream.
> > I put FT_OPEN_STREAM to code becouse newest freetype libs are better
> > and have many bugs fixed.
> >
> > Other problem is that IMHO freetype developers scrue compatibility to
> > older freetype version by changing this parm in headers. If you change
> > FT_OPEN_STREAM -> ft_open_stream you could compile with older ( < 2.1.3
> > ) version but newers give you the same error "`ft_open_stream'
> > undeclared (first use in this function)".
>
> Try
>
> #ifndef FT_OPEN_STREAM
> #define FT_OPEN_STREAM ft_open_stream
> #endif
>
> AFAIK this is a bug in some versions of freetype.
It compiles. But dumps core now:
$ ./civ -a
2: Using Video Output: x11
Speicherzugriffsfehler (core dumped)
(gdb) bt
#0 0x401fae27 in strlen () from /lib/libc.so.6
#1 0x080d04c7 in real_mystrdup (str=0x0, called_as=0x0, line=0, file=0x0) at
mem.c:118
#2 0x080ab29e in load_font (ptsize=0) at gui_string.c:391
#3 0x080aa9f4 in create_string16 (pInTextString=0x0, ptsize=20) at
gui_string.c:117
#4 0x080866da in ui_init () at gui_main.c:530
#5 0x0804ddcc in main (argc=1, argv=0xbffff2c4) at civclient.c:205
#6 0x401981c4 in __libc_start_main () from /lib/libc.so.6
Doing "cd data; ln -s theme/tahoma.ttf stdfont.ttf" fixes this. After
downloading ftp://ftp.freeciv.org/pub/freeciv/incoming/DELUXE.tar.bz2
I now get:
(gdb) bt
#0 0x080816d6 in create_surf_with_format (pSpf=0xff00, iWidth=30, iHeight=30,
iFlags=0) at graphics.c:240
#1 0x08081402 in crop_rect_from_surface (pSource=0x1e, pRect=0x1e) at
graphics.c:136
#2 0x0808dfc8 in refresh_widget_background (pWidget=0x855ea10) at
gui_stuff.c:4586
#3 0x08096f88 in redraw_order_widgets () at menu.c:236
#4 0x08099128 in update_menus () at menu.c:1084
#5 0x0804ea50 in set_client_state (newstate=CLIENT_GAME_RUNNING_STATE) at
civclient.c:695
#6 0x0805cae4 in handle_game_state (packet=0x82bd178) at packhand.c:276
#7 0x0804e588 in handle_packet_input (packet=0x82bd178, type=0) at
civclient.c:329
#8 0x08051d79 in input_from_server (fd=10) at clinet.c:330
#9 0x08086325 in gui_main_loop () at gui_main.c:374
#10 0x080869e3 in ui_main (argc=0, argv=0x0) at gui_main.c:645
#11 0x0804df20 in main (argc=0, argv=0xbffff150) at civclient.c:238
#12 0x401981c4 in __libc_start_main () from /lib/libc.so.6
after the choose-nation dialog.
The choose-nation dialog has drawing errors. See attached file.
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
"- Amiga Y2K fixes (a bit late, wouldn't you say?)"
-- Linus Torvalds about linux 2.4.0 at 4 Jan 2001
|
|