Development tool used ?

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

TBone
Engineer
Engineer
Posts: 15
Joined: 05 May 2004 20:26

Development tool used ?

Post by TBone »

Hi,

Just to know what you use as dev tool if you are under Windows...
because I try to use Dev-c++ but I've a lack of knowledge in this area (I write Java, C is far for now :) )

TBone.
School
Engineer
Engineer
Posts: 56
Joined: 18 Apr 2004 09:30

Post by School »

I think the default one to develop OpenTTD is actually costs you money -- Microsoft Visual C++ 6, 7(.NET 2002) or 7.1(.NET 2003).
None of the tools above are free, but if you can compile it using a command line or with a makefile, you can download the vc++ compiler for free at http://msdn.microsoft.com/visualc/vctoolkit2003/. Then set the $CPP in makefile to cl.exe and add the path of vctoolkit2003 to you %PATH% variable. Run the makefile with any make.exe you can find(http://digitalmars.com), that's all.
TBone
Engineer
Engineer
Posts: 15
Joined: 05 May 2004 20:26

Post by TBone »

thanks, I will try.
School
Engineer
Engineer
Posts: 56
Joined: 18 Apr 2004 09:30

Post by School »

Just seeing that .net Framework SDK & VC++ toolkit have nmake.exe to read makefile.
MYOB
OpenTTD Developer
OpenTTD Developer
Posts: 102
Joined: 05 Jun 2003 01:08
Location: Dublin, Ireland
Contact:

Post by MYOB »

You can build with MinGW and Jam on Windows too - all free.

Or just use one of the free platforms OTTD runs on - Linux, FreeBSD or BeOS :-)
School
Engineer
Engineer
Posts: 56
Joined: 18 Apr 2004 09:30

Post by School »

MYOB wrote:You can build with MinGW and Jam on Windows too - all free.

Or just use one of the free platforms OTTD runs on - Linux, FreeBSD or BeOS :-)
It's clear that the best complier in Windows should be the one from microsoft and it's free( note: it is free in cost only ). MinGW is a bit slow for me :roll:
CobraA1
Route Supervisor
Route Supervisor
Posts: 480
Joined: 07 Nov 2003 17:52
Location: USA

Post by CobraA1 »

I have troubles compiling it with any free compilers :(.
"If a man does not keep pace with his companions, perhaps it is because he hears a different drummer. Let him step to the music he hears, however measured or far away" --Henry David Thoreau
School
Engineer
Engineer
Posts: 56
Joined: 18 Apr 2004 09:30

Post by School »

CobraA1 wrote:I have troubles compiling it with any free compilers :(.
If finally you fail to compile it, use the binary from offical website and wait for the next release.
CobraA1
Route Supervisor
Route Supervisor
Posts: 480
Joined: 07 Nov 2003 17:52
Location: USA

Post by CobraA1 »

Yes, but I want to be a developer :(.

Ah well, summer is coming up, I'll have a lot more time to solve my problems then.
"If a man does not keep pace with his companions, perhaps it is because he hears a different drummer. Let him step to the music he hears, however measured or far away" --Henry David Thoreau
jub
Engineer
Engineer
Posts: 67
Joined: 17 Jul 2003 13:46
Location: Sudice, Czech Republic
Contact:

mingw

Post by jub »

There is no problem with mingw+msys. Just get latest svn version and type make :)
School
Engineer
Engineer
Posts: 56
Joined: 18 Apr 2004 09:30

Re: mingw

Post by School »

jub wrote:There is no problem with mingw+msys. Just get latest svn version and type make :)
It's strange that the compiler can't locate rev.c in the newest revision.
jub
Engineer
Engineer
Posts: 67
Joined: 17 Jul 2003 13:46
Location: Sudice, Czech Republic
Contact:

Re: mingw

Post by jub »

School wrote:
jub wrote:There is no problem with mingw+msys. Just get latest svn version and type make :)
It's strange that the compiler can't locate rev.c in the newest revision.
Do you have rev.c?
rev.c should look like this:
const char _openttd_revision[] = "r590";
CobraA1
Route Supervisor
Route Supervisor
Posts: 480
Joined: 07 Nov 2003 17:52
Location: USA

Post by CobraA1 »

I get:

Code: Select all

sdl.c:8:17: SDL.h: No such file or directory
sdl.c:9:24: SDL_thread.h: No such file or directory
and a bunch of other errors . . .
"If a man does not keep pace with his companions, perhaps it is because he hears a different drummer. Let him step to the music he hears, however measured or far away" --Henry David Thoreau
User avatar
Korenn
Tycoon
Tycoon
Posts: 1735
Joined: 26 Mar 2004 01:27
Location: Netherlands
Contact:

Post by Korenn »

well...
did you ever install SDL?
jub
Engineer
Engineer
Posts: 67
Joined: 17 Jul 2003 13:46
Location: Sudice, Czech Republic
Contact:

Post by jub »

CobraA1 wrote:I get:

Code: Select all

sdl.c:8:17: SDL.h: No such file or directory
sdl.c:9:24: SDL_thread.h: No such file or directory
and a bunch of other errors . . .

compile without SDL or
download this package:

http://www.libsdl.org/release/SDL-devel ... w32.tar.gz

and change sdl-config (name and prefix to your mingw directory)
CobraA1
Route Supervisor
Route Supervisor
Posts: 480
Joined: 07 Nov 2003 17:52
Location: USA

Post by CobraA1 »

YES

SDL worked fine before

edit: Got SDL working - that's wierd, had to reinstall SDL - as if it somehow uninstalled itself????

Wow, actually compiles now! Somebody's actually maintaining the mingw make now!
Last edited by CobraA1 on 12 May 2004 13:16, edited 1 time in total.
"If a man does not keep pace with his companions, perhaps it is because he hears a different drummer. Let him step to the music he hears, however measured or far away" --Henry David Thoreau
jub
Engineer
Engineer
Posts: 67
Joined: 17 Jul 2003 13:46
Location: Sudice, Czech Republic
Contact:

Post by jub »

CobraA1 wrote:YES

SDL worked fine before
Does sdl-config --cflags work?
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

On Windows you don't need SDL :)

It just uses the windows gdi, which is a lot faster too.
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."
CobraA1
Route Supervisor
Route Supervisor
Posts: 480
Joined: 07 Nov 2003 17:52
Location: USA

Post by CobraA1 »

Wow, somebody's maintaining the MinGW build now :D Had to re-install SDL (some odd reason it got uninstalled??), but works now!

Glad to see the strgen issues are resolved :). MinGW had troubles because it confused / and \ all the time, due to being a unix tool that ran on windows :lol: .
"If a man does not keep pace with his companions, perhaps it is because he hears a different drummer. Let him step to the music he hears, however measured or far away" --Henry David Thoreau
TBone
Engineer
Engineer
Posts: 15
Joined: 05 May 2004 20:26

Post by TBone »

Hi,

I've installed mingw & msys and it works fine but... ;)

Is there something broken today into the saveload.c ?
because I have 'z', 'p' undeclared, few parsing errors, ...

I will try tomorrow ;)
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 38 guests