OpenTTD on Linux
Moderator: OpenTTD Developers
OpenTTD on Linux
For those who are interested and using Linux: I tried to compile it. Luckily, most work was done to get OpenTTD platform-independent, i.e. #ifdefs. After correcting the Makefile (removing unavailable files from it), and a minor bugfix, it compiled successfully. But then the linker came ... seems that an .c-file for OS specific routines for Linux doesn't exist For Windows it's win32.c ...
To Ludde, when do you think have an linux.c ready and working?
To Ludde, when do you think have an linux.c ready and working?
if anyone ever gets it working, please make a tarball of the compiled binary...
I don't really know enough about compiling/linux to do it myself
I don't really know enough about compiling/linux to do it myself
Last edited by GoneWacko on 07 Mar 2004 18:44, edited 1 time in total.
GoneWacko. Making [url=irc://irc.oftc.net/tycoon]#tycoon[/url] sexy and exciting since 1784.
bah i'll just try
But i'll prolly never get it to work -_-
But i'll prolly never get it to work -_-
GoneWacko. Making [url=irc://irc.oftc.net/tycoon]#tycoon[/url] sexy and exciting since 1784.
Well I just tried it again this afternoon.
I did exactly what you told me to. I replaced sdl11 with sdl in the make file, and all that. First it gave me errors about GCC.
Then I reinstalled all GCC stuff I could find in YaST.
typed make again.
That wored. No more GCC errors.
But now it gives a hole load of SDL errors about a header file (SDL.h and SDL-Threads.h or something) being missing. I tried just about everything. Downloading the source of SDL and placing the .h file in the openttd dir, in some subdirectories, etc.
Nothing worked
I did exactly what you told me to. I replaced sdl11 with sdl in the make file, and all that. First it gave me errors about GCC.
Then I reinstalled all GCC stuff I could find in YaST.
typed make again.
That wored. No more GCC errors.
But now it gives a hole load of SDL errors about a header file (SDL.h and SDL-Threads.h or something) being missing. I tried just about everything. Downloading the source of SDL and placing the .h file in the openttd dir, in some subdirectories, etc.
Nothing worked
GoneWacko. Making [url=irc://irc.oftc.net/tycoon]#tycoon[/url] sexy and exciting since 1784.
*wah* never reinstall GCC, it could end up dangerous ...
And which version do you want to compile? My last one is the 0.1 with unix.c (the second release here), because I have no SVN client ... You need the SDL development headers*, if you don't have them yet. Also try on the shell. If no files are found, you don't have the headers. If a file was found, you need to write it in the Makefile, instead of sdl-config or sdl11-config.
*) this is not the same as downloading the SDL source. You may try to make and install SDL, if you don't get a package with development headers from your distribution.
And which version do you want to compile? My last one is the 0.1 with unix.c (the second release here), because I have no SVN client ... You need the SDL development headers*, if you don't have them yet. Also try
Code: Select all
ls /usr/bin/sdl*config
*) this is not the same as downloading the SDL source. You may try to make and install SDL, if you don't get a package with development headers from your distribution.
hmm. Well I am famous for messing up my system. (Prencher says)
Anyways, why would it be dangerous to reinstall GCC. If it would be dangerous, then why would it be in YaST ?
Whatever.
I'll try it again when I get home (at school now)
Anyways, why would it be dangerous to reinstall GCC. If it would be dangerous, then why would it be in YaST ?
Whatever.
I'll try it again when I get home (at school now)
GoneWacko. Making [url=irc://irc.oftc.net/tycoon]#tycoon[/url] sexy and exciting since 1784.
http://www.pointpro.nl/ttd.tgz
That's the binaries and other stuff you'll need.
The only thing you need to do is everything in the gm/ folder of your TTDX for Windows installation to the gm/ folder created after you unpack this file, and copy sample.cat and *.grf from your TTDX for Windows installation.
I would like to add 'm for you but I'm not gonna risk all the legal stuff, so you'll have to do that yourself.
That's the binaries and other stuff you'll need.
The only thing you need to do is everything in the gm/ folder of your TTDX for Windows installation to the gm/ folder created after you unpack this file, and copy sample.cat and *.grf from your TTDX for Windows installation.
I would like to add 'm for you but I'm not gonna risk all the legal stuff, so you'll have to do that yourself.
Protect the Banana
Because GCC is a bit complicated and sensitive for different versions of it's main package, the compiler modules, the library, and so on. And then it's very difficult to find the source of your problems, because the compiler messages get microsoftified: they don't point to the right problem - the wrong library for example! Anyway, the kernel is in YaST too, or isn't it? I don't have SuSE, I hate it, it's like Windows ... it don't even lets you set the rights of your files, or edit something in /etc!GoneWacko wrote: Anyways, why would it be dangerous to reinstall GCC. If it would be dangerous, then why would it be in YaST ?
For the future: you never need to reinstall GCC. The worst thing is, that you need to update some special libraries, because they are outdated on your system.
Who is online
Users browsing this forum: No registered users and 33 guests