You need to have the SDL library 'libSDL'. Make sure that you add a link
in /usr/lib so that you have libSDL.so
You will also need the SDL-ttf library and similarly a simply named link.
You will also need a link named times.ttf in the directory that you are
running the program from (or in the path). The link has to be named
times.ttf, but it can point to any ttf font file. I use ubuntu and there
are free truetype fonts in /usr/share/fonts/..... Choose one to link to.
Also, I realised after sending the patch that the change to
call_list.txt is only needed for the RenderXXX_Shaded function, which I
added into SDL. If you only want to use RenderXXX_Solid then the
signature needs changing (the final p -> i) but the resultant signature
already exists in call_list.txt
Summary,
a) to make SDL work consistently requires a change in the signature of
RenderTEXT_Solid in SDL.pir and the changes in Font.pir
b) to allow for unicode, SDL.pir needs to have an extra RenderUTF_Solid
added, and the default in Font.pir needs to be changed.
Richard
Parrot wrote:
#798: [BUG] and [PATCH] SDL Font color is wrong
----------------------+-----------------------------------------------------
Reporter: richardh | Type: bug
Status: new | Priority: normal
Milestone: | Component: library
Version: 1.3.0 | Severity: high
Keywords: | Lang:
Patch: | Platform: unix
----------------------+-----------------------------------------------------
Comment(by jkeenan):
Replying to [ticket:798 richardh]:
> <parrot>/example/sdl/blue_font.pir is rarely blue and changes each time
it is run.
>
I tried to reproduce the bug, but got this output:
{{{
$ ./parrot examples/sdl/blue_font.pir
libSDL not found!
current instr.: 'parrot;SDL;_init_video' pc 129
(runtime/parrot/library/SDL.pir:110)
called from Sub 'parrot;SDL;_sdl_init' pc 7
(runtime/parrot/library/SDL.pir:63)
called from Sub 'parrot;SDL::App;_initialize' pc 0
(runtime/parrot/library/SDL/App.pir:70)
called from Sub 'main' pc 0 (examples/sdl/blue_font.pir:25)
}}}
I presume this means I'm missing certain libraries. Would you know what
Debian packages I would need to install to get past this?
Thank you very much.[[BR]]
kid51
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets