[freespace2] Build errors with gcc 4.0 on Debian Sid

Adam Mercer ramercer at gmail.com
Wed Nov 2 13:46:56 EST 2005


On 02/11/05, Taylor Richards <mtrs at bellsouth.net> wrote:
> It works fine with GCC 4, you are probably just using a newer version of
> OpenAL than is supported at the moment.  If you are using a CVS version
> of OpenAL (1.1) then you'll have to make these changes:

I'm using 0.2005080600-2.1 from Sid, which looks like a recent CVS

> Change line 590 from:
> void *ds_sound_context = NULL;
> to
> ALCcontext *ds_sound_context = NULL;
>
> Change line 1555 from:
> AL_play_position = alIsExtensionPresent(
> (ALubyte*)"AL_LOKI_play_position" );
> to:
> AL_play_position = alIsExtensionPresent( (ALchar*)"AL_LOKI_play_position" );

I also had to change line 1486 from

ALCubyte *initStr = (ubyte *)"\'( (sampling-rate 44100 ))";

to

ALchar *initStr = (char *)"\'( (sampling-rate 44100 ))";

> and that should get it compiling again.  There are reportedly some sound
> problems using OpenAL 1.1 for Linux though so be aware of that.  I don't
> plan on making it fully 1.1 compatible until the Linux version is
> actually up to the 1.1 spec.  The basic code is fine and works ok with
> the OS X and Windows versions of OpenAL 1.1 but the Linux version of
> OpenAL 1.1 appears to cause the sound issues currently.

Thanks a lot for the help.

Cheers

Adam



More information about the freespace2 mailing list