Trying to get OpenTTD to compile
Moderator: OpenTTD Developers
Trying to get OpenTTD to compile
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
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
/table/strings.h will NEVER exist on plain SVN checkouts.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
this file will be generatied during compile.
Please post some errors to say something

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.
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.
- webfreakz.nl
- Director
- Posts: 627
- Joined: 11 Aug 2005 08:22
- Location: Localhost, 127.0.0.1, [The Netherlands: South Holland-> Westland]
- Contact:
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)
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

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."
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
- webfreakz.nl
- Director
- Posts: 627
- Joined: 11 Aug 2005 08:22
- Location: Localhost, 127.0.0.1, [The Netherlands: South Holland-> Westland]
- Contact:
@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
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)
Your talking to someone whos gradutaing from a computer science degree soon so yeh I know how to code and quite well...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

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

Who is online
Users browsing this forum: No registered users and 24 guests