Build failed on XP

Hi All,

build SDL failed on Visual 2005 because “SDL_revision.h” not found.

Regard
Xavier

Grab the SDL snapshot from http://www.libsdl.org/tmp/
or you can just put this in SDL_revision.h:
#define SDL_REVISION 0On Sun, Jun 28, 2009 at 5:32 AM, Xavier BERTAUX wrote:

Hi All,

build SDL failed on Visual 2005 because “SDL_revision.h” not found.

Regard
Xavier


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

Hey,

this has come up a few times on the list already.

The following post says “Create a file named SDL_revision.h with content #define SDL_REVISION 0”

http://lists.libsdl.org/htdig.cgi/sdl-libsdl.org/2009-May/070432.html

That should fix the problem.

Pat> ----- Original Message -----

From: Xavier BERTAUX
To: sdl at lists.libsdl.org
Sent: Sunday, June 28, 2009 7:32:54 AM
Subject: [SDL] build failed on XP

Hi All,

build SDL failed on Visual 2005 because “SDL_revision.h” not found.

Regard
Xavier


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

The following post says “Create a file named SDL_revision.h with content #define SDL_REVISION 0”

Does anyone know if it’s possible to script this in the Visual C project
file, so it generates SDL_revision.h if it’s missing?

–ryan.

I don’t have time to test this right now, but it might work to put something like

IF NOT EXISTS SDL_revision.h echo “#define SDL_REVISION 0” >SDL_revision.h

in the pre-build event in project properties. If not, it should be possible to put it in a .BAT script and execute that from the pre-build event.–
Jukka-Pekka Manninen
Tools Programmer
?

-----Original Message-----
From: sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org]
On Behalf Of Ryan C. Gordon
Sent: 29. kes?kuuta 2009 10:03
To: A list for developers using the SDL library. (includes SDL-announce)
Subject: Re: [SDL] build failed on XP

The following post says “Create a file named SDL_revision.h with content
#define SDL_REVISION 0”

Does anyone know if it’s possible to script this in the Visual C project
file, so it generates SDL_revision.h if it’s missing?

–ryan.


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

The following post says "Create a file named SDL_revision.h with content
#define SDL_REVISION 0"
Does anyone know if it’s possible to script this in the Visual C project
file, so it generates SDL_revision.h if it’s missing?

–ryan.
Well, it probably is, but I don’t understand why the repository lacks
the file in the first place…

Stefan

Well, it probably is, but I don’t understand why the repository lacks
the file in the first place…

Because SDL_REVISION is the current revision number of the Subversion
repository. We can’t store it in the repository, unless we wanted to
commit a changed SDL_revision.h with every change we make.

(and if we commit it separately, it would change the revision number,
which means we would need to commit it again, which would change the
revision number, etc.)

Official builds of SDL have this file with the correct value, and Unix
systems that don’t have it will generate it at build time.

–ryan.

If the file does in fact belong in the repository with the correct
revision number in it, then a script can be written to write out that
file whenever someone checks in, avoiding this issue and automating
the process.

-David CarriggOn Jun 29, 2009, at 10:50 AM, “Ryan C. Gordon” wrote:

Well, it probably is, but I don’t understand why the repository lacks
the file in the first place…

Because SDL_REVISION is the current revision number of the
Subversion repository. We can’t store it in the repository, unless
we wanted to commit a changed SDL_revision.h with every change we
make.

(and if we commit it separately, it would change the revision
number, which means we would need to commit it again, which would
change the revision number, etc.)

Official builds of SDL have this file with the correct value, and
Unix systems that don’t have it will generate it at build time.

–ryan.


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

I believe subversion can handle this without any additional scripts,
see “keyword substitution” ->
http://svnbook.red-bean.com/nightly/en/svn-book.htmlOn Mon, Jun 29, 2009 at 7:01 PM, David Carrigg wrote:

If the file does in fact belong in the repository with the correct revision
number in it, then a script can be written to write out that file whenever
someone checks in, avoiding this issue and automating the process.

-David Carrigg

I believe subversion can handle this without any additional scripts,
see “keyword substitution” ->
http://svnbook.red-bean.com/nightly/en/svn-book.html

From that section:

"Where’s $GlobalRev$?

New users are often confused by how the $Rev$ keyword works. Since the
repository has a single, globally increasing revision number, many
people assume that it is this number that is reflected by the $Rev$
keyword’s value. But $Rev$ expands to show the last revision in which
the file changed, not the last revision to which it was updated.
Understanding this clears the confusion, but frustration often
remains?without the support of a Subversion keyword to do so, how can
you automatically get the global revision number into your files?

To do this, you need external processing. Subversion ships with a tool
called svnversion, which was designed for just this purpose. It crawls
your working copy and generates as output the revision(s) it finds. You
can use this program, plus some additional tooling, to embed that
revision information into your files. For more information on
svnversion, see the section called ?svnversion?."

…so we’re back at Square One. :frowning:

–ryan.

…so we’re back at Square One. ?:frowning:

http://tomayko.com/writings/that-dilbert-cartoon

I need to grow a (better) beard (see the profile picture in the bottom
link). ;-)On Tue, Jun 30, 2009 at 12:31 AM, Ryan C. Gordon wrote: