Trying to compile openttd using visual studio 2015, getting over 600 errors

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
UntouchedWagons
Engineer
Engineer
Posts: 4
Joined: 27 Feb 2017 06:49

Trying to compile openttd using visual studio 2015, getting over 600 errors

Post by UntouchedWagons »

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?
xarick
Transport Coordinator
Transport Coordinator
Posts: 341
Joined: 26 Feb 2015 00:52

Re: Trying to compile openttd using visual studio 2015, getting over 600 errors

Post by xarick »

2.3 Select the file (WorkFolder)\trunk\projects\openttd_vs140.sln.
Shouldn't it be openttd_vs140.vcxproj?
Formerly known as Samu
User avatar
burty
Transport Coordinator
Transport Coordinator
Posts: 326
Joined: 16 Jun 2006 17:18
Location: Somwhere near a computer

Re: Trying to compile openttd using visual studio 2015, getting over 600 errors

Post by burty »

xarick wrote:
2.3 Select the file (WorkFolder)\trunk\projects\openttd_vs140.sln.
Shouldn't it be openttd_vs140.vcxproj?
No, you need to use the solution file to make sure all the other stuff compiles as well, e.g lang etc
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
UntouchedWagons
Engineer
Engineer
Posts: 4
Joined: 27 Feb 2017 06:49

Re: Trying to compile openttd using visual studio 2015, getting over 600 errors

Post by UntouchedWagons »

I've tried to make release builds in win32 mode and x64 (after adjusting the library directories accordingly), neither compile successfully.
UntouchedWagons
Engineer
Engineer
Posts: 4
Joined: 27 Feb 2017 06:49

Re: Trying to compile openttd using visual studio 2015, getting over 600 errors

Post by UntouchedWagons »

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.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 11 guests