Compiling OpenTTD for Windows
Moderator: OpenTTD Developers
-
- Engineer
- Posts: 8
- Joined: 06 Jul 2014 23:48
Compiling OpenTTD for Windows
Hi,
is there anybody, who knows all the way to successfully compile OpenTTD 1.4.1 for Windows 32bit?
I followed this: https://wiki.openttd.org/Compiling_on_W ... _2008/2010 , but ended with a lot of errors and unable to compile it.
Thanx
is there anybody, who knows all the way to successfully compile OpenTTD 1.4.1 for Windows 32bit?
I followed this: https://wiki.openttd.org/Compiling_on_W ... _2008/2010 , but ended with a lot of errors and unable to compile it.
Thanx
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Compiling OpenTTD for Windows
I read your error "description" but ended also with a lot of errors: error: no description of the actual problem and errors encountered.
What exactly did you do? which OpenTTD version? Die you patch it? If so: did you try without patch before? Did that work? What *exactly*, word-by-word did you see? Paste the full output here, don't be shy. What did you expect to see instead? How does that output differ?
What exactly did you do? which OpenTTD version? Die you patch it? If so: did you try without patch before? Did that work? What *exactly*, word-by-word did you see? Paste the full output here, don't be shy. What did you expect to see instead? How does that output differ?
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: Compiling OpenTTD for Windows
Unless you have a specific need to compile it yourself, there's already a pre-compiled version: http://binaries.openttd.org/releases/1. ... -win32.exe
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
- Digitalfox
- Chief Executive
- Posts: 708
- Joined: 28 Oct 2004 04:42
- Location: Catch the Fox if you can... Almost 20 years and counting!
Re: Compiling OpenTTD for Windows
Ah ah made me laughplanetmaker wrote:I read your error "description" but ended also with a lot of errors: error: no description of the actual problem and errors encountered.
-
- Engineer
- Posts: 8
- Joined: 06 Jul 2014 23:48
Re: Compiling OpenTTD for Windows
I dowloaded and installed Visual C++ 2010 Express.Installed without SQL server.
Instalation of Microsoft® DirectX SDK - August 2007 or earlier (only needed for DirectX Music, otherwise can be skipped. More later on.), ended with errors: Microsoft XAudio2 - This pre-release version of XAudio2 has expired; please upgrade to the latest version. (2 messageboxes)
Downloaded http://binaries.openttd.org/extra/opent ... .1-win.zip and unpacked to C:\useful\
Downloaded http://binaries.openttd.org/releases/1. ... source.zip and upacked to C:\source
Opened openttd_vs100.sln in Visual.
Next, I should "Go to Tools -> Options, then to Projects and Solutions -> VC++ Directories. Add the following lines:"
But I can't find way to add it to VS2010.
If you try to compile it, it fails, log contains i.e. c:\source\src\language.h(17): fatal error C1083: Cannot open include file: 'unicode/coll.h': No such file or directory.
My goal is to be able to make some changes, but for start I need to be able to compile source as is. I developed some apps in C#: It is more simple to change runable code, than solve compilation problems and set up project by tutorial, that could be out of date.
Instalation of Microsoft® DirectX SDK - August 2007 or earlier (only needed for DirectX Music, otherwise can be skipped. More later on.), ended with errors: Microsoft XAudio2 - This pre-release version of XAudio2 has expired; please upgrade to the latest version. (2 messageboxes)
Downloaded http://binaries.openttd.org/extra/opent ... .1-win.zip and unpacked to C:\useful\
Downloaded http://binaries.openttd.org/releases/1. ... source.zip and upacked to C:\source
Opened openttd_vs100.sln in Visual.
Next, I should "Go to Tools -> Options, then to Projects and Solutions -> VC++ Directories. Add the following lines:"
But I can't find way to add it to VS2010.
If you try to compile it, it fails, log contains i.e. c:\source\src\language.h(17): fatal error C1083: Cannot open include file: 'unicode/coll.h': No such file or directory.
My goal is to be able to make some changes, but for start I need to be able to compile source as is. I developed some apps in C#: It is more simple to change runable code, than solve compilation problems and set up project by tutorial, that could be out of date.
-
- Engineer
- Posts: 8
- Joined: 06 Jul 2014 23:48
Re: Compiling OpenTTD for Windows
I can give you remote desktop access, I have it on virtual PC to make it "clean". Maybe it would be better than try to describe it.
- Digitalfox
- Chief Executive
- Posts: 708
- Joined: 28 Oct 2004 04:42
- Location: Catch the Fox if you can... Almost 20 years and counting!
-
- Engineer
- Posts: 8
- Joined: 06 Jul 2014 23:48
Re: Compiling OpenTTD for Windows
Thanx, I'll try it. It looks like newer tutorial
Re: Compiling OpenTTD for Windows
this error means it didn't find your unpacked useful.zip
- Digitalfox
- Chief Executive
- Posts: 708
- Joined: 28 Oct 2004 04:42
- Location: Catch the Fox if you can... Almost 20 years and counting!
Re: Compiling OpenTTD for Windows
Yep and I remember that when I first started to compile in VS2010 2 or 3 years a go it happen to me, I remember being something that 2010 wiki didn't explain properly (at least for someone who wasn't compiling for a while or never even before, it should make things even more helpful), my bad I should had then edited the Wiki :\Eddi wrote:this error means it didn't find your unpacked useful.zip
But now I'm in VS 2013, so a bit different!
-
- Engineer
- Posts: 8
- Joined: 06 Jul 2014 23:48
Re: Compiling OpenTTD for Windows
So, new problem.
VS 2013
warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolSet may be set to an invalid version number.
error MSB6006: CL.exe exited with code -1073741515.
Trying to google it...
VS 2013
warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolSet may be set to an invalid version number.
error MSB6006: CL.exe exited with code -1073741515.
Trying to google it...
-
- Engineer
- Posts: 8
- Joined: 06 Jul 2014 23:48
Re: Compiling OpenTTD for Windows
So, can you describe a successfull way to compile it in VS 2013?Digitalfox wrote:Yep and I remember that when I first started to compile in VS2010 2 or 3 years a go it happen to me, I remember being something that 2010 wiki didn't explain properly (at least for someone who wasn't compiling for a while or never even before, it should make things even more helpful), my bad I should had then edited the Wiki :\Eddi wrote:this error means it didn't find your unpacked useful.zip
But now I'm in VS 2013, so a bit different!
- Digitalfox
- Chief Executive
- Posts: 708
- Joined: 28 Oct 2004 04:42
- Location: Catch the Fox if you can... Almost 20 years and counting!
Re: Compiling OpenTTD for Windows
Ok, first I only compile nightly builds.BlackyJack wrote:So, can you describe a successfull way to compile it in VS 2013?Digitalfox wrote:Yep and I remember that when I first started to compile in VS2010 2 or 3 years a go it happen to me, I remember being something that 2010 wiki didn't explain properly (at least for someone who wasn't compiling for a while or never even before, it should make things even more helpful), my bad I should had then edited the Wiki :\Eddi wrote:this error means it didn't find your unpacked useful.zip
But now I'm in VS 2013, so a bit different!
So if you're compiling any 1.4.* versions I can't help you with errors.
Second I don't apply patch's.
Third that wiki page I gave you works if you follow it, but I don't install the SDK (I don't play with sound).
Fourth have you looked at this:
http://helgeklein.com/blog/2010/01/visu ... -variable/
-
- Engineer
- Posts: 8
- Joined: 06 Jul 2014 23:48
Re: Compiling OpenTTD for Windows
Ok, last try on clean Win 7. Which version of VS is working for you?
- Digitalfox
- Chief Executive
- Posts: 708
- Joined: 28 Oct 2004 04:42
- Location: Catch the Fox if you can... Almost 20 years and counting!
Re: Compiling OpenTTD for Windows
For example VS 2013 Express (it's free).BlackyJack wrote:Ok, last try on clean Win 7. Which version of VS is working for you?
But don't do the SDK part on the wiki, just first put it to compile properly then if you really want try to install and configure the SDK, take easy steps...
-
- Engineer
- Posts: 8
- Joined: 06 Jul 2014 23:48
Re: Compiling OpenTTD for Windows
Finally!
I goes by this https://wiki.openttd.org/Compiling_on_W ... 2B%2B_2012
Used Win 8
VS 2013 Ultimate
Useful 5.1
Source 4.1
I goes by this https://wiki.openttd.org/Compiling_on_W ... 2B%2B_2012
Used Win 8
VS 2013 Ultimate
Useful 5.1
Source 4.1
- Digitalfox
- Chief Executive
- Posts: 708
- Joined: 28 Oct 2004 04:42
- Location: Catch the Fox if you can... Almost 20 years and counting!
Re: Compiling OpenTTD for Windows
CoolBlackyJack wrote:Finally!
I goes by this https://wiki.openttd.org/Compiling_on_W ... 2B%2B_2012
Used Win 8
VS 2013 Ultimate
Useful 5.1
Source 4.1
Who is online
Users browsing this forum: No registered users and 16 guests