Compiling OpenTTD

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

penticrack
Engineer
Engineer
Posts: 70
Joined: 24 Apr 2006 21:11

Post by penticrack »

ok again , YES i used SVN with the windows client tortoise and the files (i.e. openttd_vs80.sln) are NOT appearing in my importfolder. i dont know why...so i decide to copy it manually :)

and i have extract the useful.zip in the folders they have to be...
i will post errors here, if i copied the missing files manually.
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

The question is, WHAT did you check out? :) Eg the URL and when and did you do an update since that time?
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."
penticrack
Engineer
Engineer
Posts: 70
Joined: 24 Apr 2006 21:11

Post by penticrack »

darkdaddy@
huh? i checked out http://wiki.openttd.org/index.php ...

lol , now i restarted my computer and vc++ compiled, without missing files error, but compiler say:

Code: Select all

unittest - 151 error(s), 0 warning(s)
========== Build: 2 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========
complete report
Attachments
BuildLog.txt
created by vc++ 2005 express, plz rename it to buildlog.htm
(6.71 KiB) Downloaded 269 times
gigajum
Route Supervisor
Route Supervisor
Posts: 511
Joined: 08 Mar 2006 08:33
Location: Germany

Post by gigajum »

overseen something :(
Last edited by gigajum on 05 Jun 2006 20:02, edited 1 time in total.
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

penticrack wrote:darkdaddy@
huh? i checked out http://wiki.openttd.org/index.php ...

lol , now i restarted my computer and vc++ compiled, without missing files error, but compiler say:

Code: Select all

unittest - 151 error(s), 0 warning(s)
========== Build: 2 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========
complete report
1. My nick is Darkvater
2. That is not a valid SVN url
3. Trunk does not have "openttd\complete\subsidiaries.c" so I have no idea what you have done.
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."
penticrack
Engineer
Engineer
Posts: 70
Joined: 24 Apr 2006 21:11

Post by penticrack »

1. sorry, i dont want to tease u
2. ah this u meant, k the url is svn://svn.openttd.org/trunk
3. i want to make mini_IN, i changed 2 lines. on linux no problem, no errors, but on windows.............

now i made rebuild (instead of F7 build), and tadaa... only 2errors, but where is the openttd.exe? appears it usually in compilefolder?

here my debugreport
Attachments
BuildLog.txt
plz rename to report.htm
(16.88 KiB) Downloaded 317 times
gigajum
Route Supervisor
Route Supervisor
Posts: 511
Joined: 08 Mar 2006 08:33
Location: Germany

Post by gigajum »

penticrack wrote: ...but where is the openttd.exe? appears it usually in compilefolder?
VS8.0 creates the openttd.exe in a folder found in "../debug/openttd.exe" or "../release/openttd.exe"
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

2. the url of the MINI_IN is svn://svn.openttd.org/branch/MiniIN
3. if you have ANY errors there will NOT be an exe.

Normally the openttd.exe file appears either in Debug\openttd.exe or Release\openttd.exe depending on what kind of configuration you chose.
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."
penticrack
Engineer
Engineer
Posts: 70
Joined: 24 Apr 2006 21:11

Post by penticrack »

hm...
sure, the branch is the mini_IN r4719M ?
hm... however, so i must use the latest version of mini_IN, someone posted a project solution for it.
gigajum
Route Supervisor
Route Supervisor
Posts: 511
Joined: 08 Mar 2006 08:33
Location: Germany

Post by gigajum »

penticrack wrote:hm...
sure, the branch is the mini_IN r4719M ?
hm... however, so i must use the latest version of mini_IN, someone posted a project solution for it.
The miniIN moved after that version into svn branch
tenpoints2k5
Engineer
Engineer
Posts: 41
Joined: 25 Apr 2005 05:09
Location: Canberra, Australia

Post by tenpoints2k5 »

If anyone has managed to successfully compile and subsequently run the trunk OpenTTD using Visual C++ express 2005, could they please post screenies of their include, bin and lib directories displayed their VC++ Directories window.

I have followed ALL the instructions on the wiki, on microsoft and suggestions in this forum to try and get this working, and I'm still getting tons of syntax errors etc. such as these:

Code: Select all

C:\Program Files\Microsoft Platform SDK\Include\winnt.h(5940) : error C2146: syntax error : missing ';' before identifier 'Buffer'
C:\Program Files\Microsoft Platform SDK\Include\winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
I did manage to fix the problem that penticrack outlined with windows.h and winsock2.h by typing in the full filepath, but that has just created motre problems, such as the ones i outlined above.

I'm really keen on getting this working, so I can finally start to make some contributions to the game, and at the basic level, test out some of the great new patches being developed.

Edit: I did Typical(full) install of WIndows Platform SDK from the ISO download.
XxOZxX
gigajum
Route Supervisor
Route Supervisor
Posts: 511
Joined: 08 Mar 2006 08:33
Location: Germany

Post by gigajum »

My VS 8.0 (should be the same on VC 2005 express) puts out some errors:
if i set the DirectX8.1 include dir first

Code: Select all

c:\programme\microsoft visual studio 8\vc\platformsdk\include\winnt.h(222) : error C2061: Syntaxfehler: Bezeichner 'PVOID64'
c:\programme\microsoft visual studio 8\vc\platformsdk\include\winnt.h(222) : error C2059: Syntaxfehler: ';'
c:\programme\microsoft visual studio 8\vc\platformsdk\include\winnt.h(5940) : error C2061: Syntaxfehler: Bezeichner 'PVOID64'
c:\programme\microsoft visual studio 8\vc\platformsdk\include\winnt.h(5942) : error C2059: Syntaxfehler: '}'
...
If i set it last it compiled without error!

Don't know how far this helps you :?
Last edited by gigajum on 16 Jun 2006 08:09, edited 1 time in total.
User avatar
sidew
Engineer
Engineer
Posts: 115
Joined: 31 Aug 2005 06:46
Location: Milan, Italy
Contact:

Post by sidew »

I got the same error.

For resolving, I commented out the bad line in winnt.h:

Code: Select all

typedef void * POINTER_64 PVOID64;
and written down after the commented line:

Code: Select all

//typedef void * POINTER_64 PVOID64;
typedef void *PVOID64;
After that I never got any compile error
Sidewinder

Italian Town names patch for OTTD (R5266) now in trunk since 0.4.8
For typo, errors or bug on OTTD italian translation, please PM me.
unofficial italian TTD/OpenTTD forum: http://wolf01.game-host.org/forum/index.php
gigajum
Route Supervisor
Route Supervisor
Posts: 511
Joined: 08 Mar 2006 08:33
Location: Germany

Post by gigajum »

sidew wrote:I got the same error.
i do not have that error. I only wanted to give a idea how to solve the problem.
I said if i move the directx 8.1 include dir last in the include list, it compiles without error. So you do not need to modify any header files.
Sebastiaan
Engineer
Engineer
Posts: 110
Joined: 20 Jun 2005 19:22
Location: Leuven, Belgium

Post by Sebastiaan »

tenpoints2k5 wrote:If anyone has managed to successfully compile and subsequently run the trunk OpenTTD using Visual C++ express 2005, could they please post screenies of their include, bin and lib directories displayed their VC++ Directories window.
I added screens of my config to the wiki, link in my sig.
prateek.somaiya
Engineer
Engineer
Posts: 6
Joined: 22 May 2006 10:37
Location: India

Post by prateek.somaiya »

tenpoints2k5 wrote:If anyone has managed to successfully compile and subsequently run the trunk OpenTTD using Visual C++ express 2005, could they please post screenies of their include, bin and lib directories displayed their VC++ Directories window.
I was able to compile OpenTTD using Visual C++ Express 2005, I just followed the steps given by Sebastiaan, it's pretty straignt forward. I have attached the screenshots in a ZIP file.

Thanks for the great guide Sebastiaan.
Attachments
Directories.zip
ZIP File containing the Executable, Include, and Library directory screenshots.
(75.14 KiB) Downloaded 231 times
Sebastiaan
Engineer
Engineer
Posts: 110
Joined: 20 Jun 2005 19:22
Location: Leuven, Belgium

Post by Sebastiaan »

You're welcome :)

btw: where did you get that windows look? i like it ;)
badut78
Engineer
Engineer
Posts: 23
Joined: 12 Jun 2006 07:45

Post by badut78 »

Has anyone got Openttd to build using VS 2005 Express with the latest Directx SDK (April 2006)?

http://www.microsoft.com/downloads/deta ... laylang=en

I followed Sebastiaan's wiki instructions precisely (except for the DirectX version) but I still get a lot of unresolved's.
The includes and library directories are similar to the wiki screenshots.

I'm pretty sure (not 100%) the unresolves are DirectX stuff.
Hazelrah
Traffic Manager
Traffic Manager
Posts: 196
Joined: 13 Apr 2005 05:41

Post by Hazelrah »

I installed MSVC2005 just before Sebastiaan wrote that wiki page, and to the best of my knowledge, those steps should work just fine for you. Make double sure that the DirectX includes have been pushed to the top, because that will give you problems.

Can you give the output (or maybe the first 20-30 lines) of what happens when you compile?

-Hazelrah
badut78
Engineer
Engineer
Posts: 23
Joined: 12 Jun 2006 07:45

Post by badut78 »

Hazelrah wrote:I installed MSVC2005 just before Sebastiaan wrote that wiki page, and to the best of my knowledge, those steps should work just fine for you. Make double sure that the DirectX includes have been pushed to the top, because that will give you problems.

Can you give the output (or maybe the first 20-30 lines) of what happens when you compile?

-Hazelrah
Thanks Hazelrah. I will post screenshots of my include & lib directories as well as a list of the unresolved's when I get home tonight.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 18 guests