Trying to compile openttd using visual studio 2015, getting over 600 errors
Moderator: OpenTTD Developers
-
- Engineer
- Posts: 4
- Joined: 27 Feb 2017 06:49
Trying to compile openttd using visual studio 2015, getting over 600 errors
I have spent the last 5 hours trying to get openttd to compile. I've tried cygwin, cygwin64, mingw and mingw64. None of them worked, compilation failed on all of them because "SOCKET was not declared in this scope". So I tried visual studio 2015 using this guide. Among other errors I got error C4430 which the tutorial provides a fix for, but it doesn't work: http://i.imgur.com/Y1mpYup.png How in the world do I get this to work?
Re: Trying to compile openttd using visual studio 2015, getting over 600 errors
Shouldn't it be openttd_vs140.vcxproj?2.3 Select the file (WorkFolder)\trunk\projects\openttd_vs140.sln.
Formerly known as Samu
Re: Trying to compile openttd using visual studio 2015, getting over 600 errors
No, you need to use the solution file to make sure all the other stuff compiles as well, e.g lang etcxarick wrote:Shouldn't it be openttd_vs140.vcxproj?2.3 Select the file (WorkFolder)\trunk\projects\openttd_vs140.sln.
Only thing I can think is you are missing some files from the various includes...
I got it up and running quickly with VS2015 community...
The other thing is to ensure the includes and libraries are the same bitness you are compiling against
Sent from my iPhone using Tapatalk
My Patches: Lifetime profit patch | Improved Shares [ON HIATUS]
-
- Engineer
- Posts: 4
- Joined: 27 Feb 2017 06:49
Re: Trying to compile openttd using visual studio 2015, getting over 600 errors
I've tried to make release builds in win32 mode and x64 (after adjusting the library directories accordingly), neither compile successfully.
-
- Engineer
- Posts: 4
- Joined: 27 Feb 2017 06:49
Re: Trying to compile openttd using visual studio 2015, getting over 600 errors
Okay so I moved the entire OpenTTD Dev folder into my Documents folder, reset the include/library paths and it worked first try. What the actual hell.
Now I just need to figure out where visual studio put the game.
[Edit] And now it's not compiling.
Now I just need to figure out where visual studio put the game.
[Edit] And now it's not compiling.
Who is online
Users browsing this forum: No registered users and 29 guests