Visual studio will only rebuild the files if the file has changed its
timestamp. Copying a file like SDL_config.h.default to SDL_config.h does
NOT change the date/time stamp, so doing this step every time will NOT cause
it to rebuild everything unless the actual .default file is newer (which is
what we want).
Just change the IF EXISTS section to just copy the file every time and it
will work the way we need it to work.
Just use this line in the pre-build step:
copy /Y $(ProjectDir)…\include\SDL_config_windows.h
$(ProjectDir)…\include\SDL_config.h
Sam, I can make the changes to all of the vcproj files and send you a patch
if you want.
KenFrom: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Sam Lantinga
Sent: Thursday, January 27, 2011 2:25 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3
Does Visual Studio do dependency checking based on timestamp or file
contents? If it’s the former, then that would cause everything to be
rebuilt every time.
Is there a way to do “copy if changed” in batch scripts?
On Thu, Jan 27, 2011 at 12:19 PM, Ken Rogoway <@Ken_Rogoway> wrote:
Delete the file /Include/SDL_config.h
Then build again.
Really, the pre-build step should NOT check to see if the file exists. It
should just copy the darn thing every time. This would eliminate this
annoying bug.
Ken
From: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Mason Wheeler
Sent: Thursday, January 27, 2011 2:14 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3
I’m getting this same problem in VS 2008. Any status update on getting the
patch ready?
Mason
From: @Ken_Rogoway (Ken Rogoway)
Subject: Re: [SDL] Compile errors with latest SDL 1.3
Ah, I figured out why it built before, but didn’t build now. The Pre-Build
step checks to see if SDL_config.h exists. If it already exists it doesn’t
bother to copy over the .default file. This means that anytime that the
.default file changes you need to manually delete the SDL_config.h file
prior to building with Visual Studio (2005, 2008 or 2010).
Since this may affect other people I figured it would be good to post on the
newsgroup.
Sam, I’ll send you the patch for the VS2005 vcproj file with the new files
added.
Ken
From: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Sam Lantinga
Sent: Monday, January 24, 2011 11:26 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3
I don’t have Visual Studio 2005, so I won’t be able to maintain those
projects.
In the 2008 and 2010 projects there’s a custom build rule to copy
SDL_config.h.default to SDL_config.h, which then includes
SDL_config_windows.h correctly.
In the latest changeset, you’ll need to add src/core/windows/* to the
project as well.
Feel free to send me a patch for 2005, once you have everything worked out.
Thanks!
On Mon, Jan 24, 2011 at 7:20 PM, Ken Rogoway <@Ken_Rogoway> wrote:
It appears that SDL_VIDEO_DRIVER_WINDOWS is not defined for the SDL_VS2005
project. That appears to be causing the “win” structure errors.
The errors regarding Threading are because SDL_THREAD_WINDOWS is not
defined.
Both of these are defined in SDL_config_windows.h, but that doesn’t seem to
be included anymore, at least with the SDL VS 2005 build.
Ken
From: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Sam Lantinga
Sent: Monday, January 24, 2011 7:51 PM
To: SDL Development List
Subject: Re: [SDL] Compile errors with latest SDL 1.3
I just built the current snapshot on Windows with no problems, are you still
having issues? If so, please enter a bug in bugzilla for it.
http://bugzilla.libsdl.org/
Thanks!
On Mon, Jan 24, 2011 at 11:34 AM, Ken Rogoway wrote:
SDL_windowswindow.c
c:\code\sdl_1.3\src\video\windows\sdl_windowswindow.c(552) : error C2039:
‘win’ : is not a member of ‘’
c:\code\sdl_1.3\include\sdl_syswm.h(167) : see declaration of
‘’
SDL_windowsevents.c
c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(116) : error C2039:
‘win’ : is not a member of ‘’
c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of
‘’
c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(117) : error C2039:
‘win’ : is not a member of ‘’
c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of
‘’
c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(118) : error C2039:
‘win’ : is not a member of ‘’
c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of
‘’
c:\code\sdl_1.3\src\video\windows\sdl_windowsevents.c(119) : error C2039:
‘win’ : is not a member of ‘’
c:\code\sdl_1.3\include\sdl_syswm.h(120) : see declaration of
‘’
SDL_thread.c
c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error :
Need thread implementation for this platform
SDL_systhread.c
c:\code\sdl_1.3\src\thread\sdl_thread_c.h(43) : fatal error C1189: #error :
Need thread implementation for this platform
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
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
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