Talk:Compiling on Windows using Microsoft Visual C++ 2008/2010
June 2008 SDK
The dxguid.lib that ships with this has to be replaced with an older one for OTTD to compile.AAK 04:22, 6 August 2008 (CEST)
I'm not sure but since when does only the Nov 2007 build support VC++ 2008? Older ones work fine, and for OTTD, downloading the SDK again is too much of a waste. Just that you need to add the paths manually. Though for the Aug 2007 build you must have genuine Windows (or at least appear so to M$), while for Nov 2007 you don't need to. You can disable DirectMusic (I can't remember the preprocessor macro) but then you can't play the MIDI music. Bleh, who does anyway? KraMer 23:54, 25 June 2008 (CEST)
- I found it, just remove WIN32_ENABLE_DIRECTMUSIC_SUPPORT from the preprocessor definitions in the project configuration.
I'd just like to add that if you google the August 2007 SDK's filename, you can find direct links to the .exe hosted on Microsoft's site that lets you bypass the WGA validation. AAK 04:19, 6 August 2008 (CEST)
You must also remove dxguid.lib from the linker to compile without DX SDK.
Lib and Include Folder
I'm of the opinion that you should not recommend modification to the core lib and include folders as it can confuse people. If you put new things into those folders, people often will expect that they are there everywhere. It becomes a hassle. I think it's better to have a separate include and lib directory for the Aug07 header and lib files and then mark those as additional directories in the project file. This creates a problem because not everyone will use the same directory, but it's alot better than telling people that they should be modifying their include and lib directories. Just my two cents.
3/7 (aka Three Sevenths)
- I rewrote the part, as i think you are totally right. Furthermore if the user installs a new DirectX SDK he had to do all those steps again. This is over now :). Feel free to add any suggestions --EoD 02:53, 30 March 2009 (UTC)
I am sitting on my hands because I don't want to create unwanted edits on this page. But please.. Am I allowed to add the fact that the user needs the *binary* version of OpenTTD-useful? I spent hours cursing and trying to figure out why I couldn't build OpenTTD. The instructions on this page didn't help me because I downloaded the source edition of OpenTTD-useful. 126.96.36.199 22:27, 26 October 2009 (UTC)
- You need the binary files ...-win.zip. I've changed the wiki page to link to the web frontend that more or less explains what the difference is between the two files Rubidium 17:14, 27 October 2009 (UTC)
Windows 7 SDK x64
I would like to note that the Windows SDK files must also be added to the openttd project if compiling with the Windows 7 SDK with the Release/x64 configuration/--188.8.131.52 22:56, 22 December 2009 (UTC)
Thanks to the editor(s)!
I just wanted to drop by and give thanks to the editors for this (and related) help pages. Following these instructions, getting OTTD to compile was a painless and easy process! Supercheese (talk) 00:16, 10 September 2012 (CEST)