SDL_GetEnv.h not in Mecurial Repository

I was trying to compile the latest SDL_mixer against the latest SDL, both
from the Mecurial repositories.

SDL_mixer complains about not finding SDL_getenv.h

When I search the files in SDL I do find SDL_getenv.c in SDL\src\stdlib, but
there is no .h file.

Can the person responsible for either SDL or SDL_mixer please fix this
dependency. Either the file is needed and should be added to SDL, or the
file is no longer needed by SDL_mixer and the #include should be removed
from effects_internal.c

Thanks,

Ken Rogoway

I was trying to compile the latest SDL_mixer against the latest SDL, both from the Mecurial repositories.

SDL_mixer complains about not finding SDL_getenv.h

When I search the files in SDL I do find SDL_getenv.c in SDL\src\stdlib, but there is no .h file.

Can the person responsible for either SDL or SDL_mixer please fix this dependency. Either the file is needed and should be added to SDL, or the file is no longer needed by SDL_mixer and the #include should be removed from effects_internal.c

Thanks,

Ken Rogoway


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Well, not really. I compiled SDL a few days ago on Mac OS X so I know… It should be the same for Linux. I don’t know for Windows though.
These headers are required, but they are generated at compile-time. You need to have Mercurial installed.
You also need the following in your .bashrc file (in your home directory):
export PATH="$PATH:/usr/local/bin"

When you have Mercurial and that string in your .bashrc file, try recompiling and it should work.

Well, this is for Mac and Linux, but I don’t know for Windows.On June 5, 2010, at 1:20:16.00, Ken Rogoway wrote:

Well, not really. I compiled SDL a few days ago on Mac OS X so I know… It
should be the same for Linux.

I don’t know for Windows though.

These headers are required, but they are generated at compile-time. You
need to have Mercurial installed.

You also need the following in your .bashrc file (in your home directory):

export PATH="$PATH:/usr/local/bin"

When you have Mercurial and that string in your .bashrc file, try
recompiling and it should work.

Well, this is for Mac and Linux, but I don’t know for Windows.

There is no bash in Windows (yes, I know I can install it, but we have never
needed to do the steps you list above).

I have Mercurial installed. The VisualC.html says nothing other than load
the .sln and compile. This has worked for previous versions of SDL and
SDL_mixer for MANY years.

Sam, how is this handled now for Windows Visual C builds?

Ken

Sam,

I haven’t heard back from anyone on this. What is the status?From: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Ken Rogoway
Sent: Saturday, June 05, 2010 12:02 PM
To: ‘SDL Development List’; slouken at libsdl.org
Subject: Re: [SDL] SDL_GetEnv.h not in Mecurial Repository

Well, not really. I compiled SDL a few days ago on Mac OS X so I know… It
should be the same for Linux.

I don’t know for Windows though.

These headers are required, but they are generated at compile-time. You
need to have Mercurial installed.

You also need the following in your .bashrc file (in your home directory):

export PATH="$PATH:/usr/local/bin"

When you have Mercurial and that string in your .bashrc file, try
recompiling and it should work.

Well, this is for Mac and Linux, but I don’t know for Windows.

There is no bash in Windows (yes, I know I can install it, but we have never
needed to do the steps you list above).

I have Mercurial installed. The VisualC.html says nothing other than load
the .sln and compile. This has worked for previous versions of SDL and
SDL_mixer for MANY years.

Sam, how is this handled now for Windows Visual C builds?

Ken

This is fixed in the repository, thanks!

You can just delete the line, it’s not necessary anymore. :)On Fri, Jun 4, 2010 at 2:20 PM, Ken Rogoway wrote:

I was trying to compile the latest SDL_mixer against the latest SDL, both
from the Mecurial repositories.

SDL_mixer complains about ?not finding SDL_getenv.h

When I search the files in SDL I do find SDL_getenv.c in SDL\src\stdlib, but
there is no .h file.

Can the person responsible for either SDL or SDL_mixer please fix this
dependency.? Either the file is needed and should be added to SDL, or the
file is no longer needed by SDL_mixer and the #include should be removed
from effects_internal.c

Thanks,

Ken Rogoway


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC