[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Compiling without SDL_gfx



Hey Evan,

unfortunately that documentation is outdated since I rewrote most of
the Pygame2 build system. To disable building SDL_gfx, you need to
manually set an environment variable named "WITH_SDL_GFX" to 0 in your
shell. If you are unsure about how to do this, just open the file
'cfg.py' in your favourite editor and change line 41 to:

build['SDL_GFX'] = False

That will override the check for environment variables.

Looking at it, it isn't as user friendly as one would expect, so I'll
probably fix that up tomorrow morning, and update the docs while I'm
at it. :)

Cheers,
Vicent Martí
http://www.bellverde.org



On Fri, Aug 7, 2009 at 10:53 PM, Evan Kroske<e.kroske@xxxxxxxxx> wrote:
> When I try to change the pygame(2) makefile to keep it from linking to
> SDL_gfx, it doesn't work. The README file contains this example on how to
> disable SDL_gfx:
>
>> WITH_SDL_GFX=[yes|no|1|True]    Example: make -DWITH_SDL_GFX=1
>>
>>     Build and install the pygame2.sdlgfx module. This wraps the
>>     SDL_gfx library.
>
> If I try to run that command, make tells me "invalid option -- 'D'". Anybody
> got an explanation? Thanks.
>
> --
> Evan Kroske
> http://welcome2obscurity.blogspot.com/
> The code, comments, and challenges of a novice
> software developer desperate for attention.
>