chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] Missing link flags in SDL egg for Chicken


From: Agrest
Subject: [Chicken-users] Missing link flags in SDL egg for Chicken
Date: Mon, 4 Feb 2013 01:58:24 +0300

Hello!

I've found the bug in the SDL egg. 

If the egg is installed via ``chicken-install``, any program segfaults
on (ttf-init). However, it works when the SDL egg is installed using
the Makefile supplied.

My system is Ubuntu 12.04.

I've found it is because the arguments to compiler are different.
Makefile links to ``SDL_ttf``, ``SDL_image``, ``SDL_gfx``, ``SDL_net``,
while ``sdl.setup`` doesn't.

Changing the line 18 in ``sdl.setup`` from:
        (compile -s -O3 -d1 sdl.scm -j sdl -lSDL ,sdl-cflags ,sdl-lflags)
to the following:
        (compile -s -O3 -d1 sdl.scm -j sdl -lSDL_ttf -lSDL_image -lSDL_gfx 
-lSDL_net -lSDL ,sdl-cflags ,sdl-lflags)
fixes the problem when installing via chicken-install.

At least if I do ``chicken-install -r sdl``, then do this change
and do ``chicken-install``, it works.

Could someone please change the egg's sdl.setup file?


-- 
Best regards,
Agrest




reply via email to

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