Trying to get OpenTTD to compile

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
Tango
Engineer
Engineer
Posts: 28
Joined: 28 Mar 2006 22:44

Trying to get OpenTTD to compile

Post by Tango »

Ok Ive downloaded Visual C++ 2005 and the latest SDK. Also TortoiseSVN and downloaded the latest source.

Now im trying to compile but it refuses to and spits out loads of Errors, mainly can't find file table/strings.h.

Am I supposed to set the way it compiles with a file in the directory?

Thx
MeusH
Tycoon
Tycoon
Posts: 4349
Joined: 25 Oct 2004 15:39
Location: Mississauga

Post by MeusH »

Check if /table/strings.h is in existing directory (TortoiseSVN doesn't like renaming or removing directories)

Also please supply us with more details on your problems
gigajum
Route Supervisor
Route Supervisor
Posts: 511
Joined: 08 Mar 2006 08:33
Location: Germany

Post by gigajum »

MeusH wrote:Check if /table/strings.h is in existing directory (TortoiseSVN doesn't like renaming or removing directories)

Also please supply us with more details on your problems
/table/strings.h will NEVER exist on plain SVN checkouts.
this file will be generatied during compile.

Please post some errors to say something :)
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

Compile strgen first, this will create table/strings.h
TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
Tango
Engineer
Engineer
Posts: 28
Joined: 28 Mar 2006 22:44

Post by Tango »

Darkvater wrote:Compile strgen first, this will create table/strings.h
how do I do that from MS C++ Visual Studio 2005?
gigajum
Route Supervisor
Route Supervisor
Posts: 511
Joined: 08 Mar 2006 08:33
Location: Germany

Post by gigajum »

Load the project and then compile it.

But if you have no clue from MS VS i prefer you get familiar with it and C/C++ before trying to change some code. But i'm not going to writing here a step by step tutorial. :)

Take a look at http://wiki.openttd.org/index.php/MSVC6
That is a tutorial to get it done with Visual Studio 6.0. VS 8.0 should be similar.
Or you may take a look at the forum, there are other older threads about compiling. Maybe there you get a answer.
User avatar
webfreakz.nl
Director
Director
Posts: 627
Joined: 11 Aug 2005 08:22
Location: Localhost, 127.0.0.1, [The Netherlands: South Holland-> Westland]
Contact:

Post by webfreakz.nl »

A couple of months I installed MSVS-2005 (yes, i used the above mentioned WIKI-page) but didn't get OpenTTD to compile properly. Does anyone know if this has been fixed already? MSVS-2005 is so big, i don't want to install it and afterwards find out it still doens't work...
# Programming is like sex, one mistake and you have to support it for the rest of your life. (Michael Sinz)
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

I am compiling OpenTTD from VS2005 at the moment because 2003 for some reason crashes every time I run it. Windows is due to another reinstall :(

But just open the solution file, openttd.sln, VS2005 will start and convert it. When done, just build the solution; eg CTRL+SHIFT+B.

If that doesn't work, just right-click on the langs-project and select 'rebuild'. That should generate strings.h.

* Make sure you set the startup project as OpenTTD.

Also if you have no idea what things and settings I am talking about, it's perhaps best to not even bother with OpenTTD. No offense, but you most likely cannot code, and the source will be useless for you. Of course if you want to learn, that's a different topic, but be sure to read a lot of tutorials about programming and VS :)
TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
User avatar
webfreakz.nl
Director
Director
Posts: 627
Joined: 11 Aug 2005 08:22
Location: Localhost, 127.0.0.1, [The Netherlands: South Holland-> Westland]
Contact:

Post by webfreakz.nl »

@Darkvater:

I don't agree with that if you can't code, you shouldn't botter the source code of OpenTTD. In fact, I don't know how to code C but I do know how to apply patches in order to get more satisfaction from the game PLUS 3th party addons :)

But thanks for you explanation of how to compile OpenTTD using MSVS2005 :)
# Programming is like sex, one mistake and you have to support it for the rest of your life. (Michael Sinz)
Tango
Engineer
Engineer
Posts: 28
Joined: 28 Mar 2006 22:44

Post by Tango »

Darkvater wrote: Also if you have no idea what things and settings I am talking about, it's perhaps best to not even bother with OpenTTD. No offense, but you most likely cannot code, and the source will be useless for you. Of course if you want to learn, that's a different topic, but be sure to read a lot of tutorials about programming and VS :)
Your talking to someone whos gradutaing from a computer science degree soon so yeh I know how to code and quite well... :lol:

I just aint familiar with the SVN/Visual 2005, once I know im gonna be patch crazy. Ill try what you said tomz, now bed time :(
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 24 guests