Monday, January 3, 2011

Help diagnose diseases

Find a School





================================================================================================================================== I understand the issue with SDK's. Honestly this get worse as the bat file have arguments to get 32 bit and 64 bit builds then there is a mix of issues that get added when you add the DDK, or you add framework libraries. (then add the Intel compiler to the mix we have a need to read many bat files in some order) I am of a neutral opinion on how well the bat file will work over all. I agree that the current logic is bloated in the MSVC tool chain. I think even with the registry the current official scripts could be done better. Not that I know what is best. But here are some thoughts to consider. Given the bat files we have to do more than one run on the bat files to get the correct environment. My experience that bat file work OK most of the time, but not all the time. The bat file doesn't necessary match the default environment used by the IDE. You can use different compiler with different SDK's. The main issue is if you use the ATL/MFC. Here the C++ ABI will often have issue. Raw win32 will normally work without issue (nice C API). If you look at some variable that seem to support currently in Scones MSVS tool chain Select usage of MFC/ATL paths Select version of compiler Using a clean "bat like path"( ideally portable) or use the settings in the IDE ( that might have been modified by the user, so it has increased risk of being non-portable) Controlling what the emitter will add or not add, such as manifest files, libs, and def files. ( You have my tweak for automatic calling of MT for manifest embedding with 2005 and above) It might be useful to spec out functional abilities this rewrite should support, so expectations are clear in the design. Going back to SDK's the SDK are often drops that add something, this can be a New API library (such as media library), or headers fixes for the windows API, or tweaks to an existing library such as MFC/ATL. From what I can tell, they are linear normally, but the names are not always clear (marketing). For example you asked about "Windows 2003 SP2 sdk and Windows sdk" (I think you mean platform sdk). This depend on which version of windows sdk. The latest SDK is newer than 2003 SP2. Given if you have a older drop saved ( like I have ) the difference could be as simple as new API in win32 for 2003 server sp2 update. ( I recall the release notes say there was another change from the previous drop) Given the latest drop of the Platform SDK all the fixes in windows 2003 sp2 SDK would be included, plus new corrections. In general, today MS seems to ship the new platform SDK's with the new compiler versions they make. I should have some time in the next few days to look over and test with vc6 to 2008 (or so I hope). I will try to update you with anything I find. If I have something wrong or incomplete hopefully someone will correct. Jason -----Original Message----- From: David Cournapeau [mailto: dav ... @ar.media.kyoto-u.ac.jp ] Sent: Wednesday, October 08, 2008 8:37 AM To: de ... @scons.tigris.org Subject: Re: [scons-dev] Updates on vs_revamp Kenny, Jason L wrote: That is not an issue for me.. I can read python and I know how to tweak anything that is broken. I was planning to review and suggest improvements by making fixes and sending the group some diff. with t I think the pure compiler part is pretty solid now (except I did not find a way to make it fail when the user requests one particular version which is not available), at least while staying on win32 with 32 bits compilers. I have a pretty hard time with the SDK, though. Part of it is that I don't anything about windows .bat programming, part is that it is quite convoluted, and part of it is the scons model for environments, since the .bat files seem to depend on many variables correctly set; the sheer amount of sdk and co really confuses me, too. Am I right that you can't use the Windows SDK with several compilers at the same time (the version seems to be harcoded in the sdk) ? What are the differences between Windows 2003 SP2 sdk and Windows sdk; in particular, are they independant of the compilers, or should you use 2003 sdk with VS 2005 and Windows SDk 2008 with VS 2008 ? cheers, David --------------------------------------------------------------------- To unsubscribe, e-mail: dev- ... @scons.tigris.org For additional commands, e-mail: dev- ... @scons.tigris.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev- ... @scons.tigris.org For additional commands, e-mail: dev- ... @scons.tigris.org