Page 1 of 2

Development tool used ?

Posted: 09 May 2004 16:00
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.

Posted: 09 May 2004 16:17
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.

Posted: 09 May 2004 21:05
by TBone
thanks, I will try.

Posted: 10 May 2004 11:35
by School
Just seeing that .net Framework SDK & VC++ toolkit have nmake.exe to read makefile.

Posted: 10 May 2004 21:04
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 :-)

Posted: 11 May 2004 07:47
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:

Posted: 12 May 2004 05:49
by CobraA1
I have troubles compiling it with any free compilers :(.

Posted: 12 May 2004 06:55
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.

Posted: 12 May 2004 07:14
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.

mingw

Posted: 12 May 2004 08:28
by jub
There is no problem with mingw+msys. Just get latest svn version and type make :)

Re: mingw

Posted: 12 May 2004 11:03
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.

Re: mingw

Posted: 12 May 2004 12:42
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";

Posted: 12 May 2004 12:51
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 . . .

Posted: 12 May 2004 12:54
by Korenn
well...
did you ever install SDL?

Posted: 12 May 2004 12:57
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)

Posted: 12 May 2004 12:59
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!

Posted: 12 May 2004 13:11
by jub
CobraA1 wrote:YES

SDL worked fine before
Does sdl-config --cflags work?

Posted: 12 May 2004 13:18
by Darkvater
On Windows you don't need SDL :)

It just uses the windows gdi, which is a lot faster too.

Posted: 12 May 2004 13:19
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: .

Posted: 13 May 2004 17:46
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 ;)