Still having problems compiling with MinGW

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
CobraA1
Route Supervisor
Route Supervisor
Posts: 480
Joined: 07 Nov 2003 17:52
Location: USA

Still having problems compiling with MinGW

Post by CobraA1 »

Hey, I noticed there's no Jamfile in SVN . . .

But there is a Jamfile.next in there, but it throws these errors:
I already know what causes the strgen errors, but I'm wondering about the unknown rules?

Code: Select all

Jeremiah Moss@JMOSS /mingw/openttdSVN
$ jam -f Jamfile.next 
warning: unknown rule Clean
.
.
.
warning: unknown rule Main
warning: unknown rule MkDir
warning: unknown rule Object
.
.
.
warning: unknown rule MainFromObjects
don't know how to make strgen/strgen
...found 12 targets...
...can't find 1 target...
...can't make 5 targets...
...skipped lang\english.lng for lack of strgen/strgen...
...skipped lang\swedish.lng for lack of strgen/strgen...
...skipped lang\french.lng for lack of strgen/strgen...
...skipped lang\german.lng for lack of strgen/strgen...
...skipped lang\italian.lng for lack of strgen/strgen...
...skipped 5 targets...
Last edited by CobraA1 on 17 Apr 2004 05:37, 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
MYOB
OpenTTD Developer
OpenTTD Developer
Posts: 102
Joined: 05 Jun 2003 01:08
Location: Dublin, Ireland
Contact:

Post by MYOB »

run configure, it makes a jamfile
CobraA1
Route Supervisor
Route Supervisor
Posts: 480
Joined: 07 Nov 2003 17:52
Location: USA

Post by CobraA1 »

OK, now when I try to jam I get a bunch of undefined references, though, which prevents it from linking :(.
"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 »

which references exactly? do you have zlib or pnglib?

if those are the missing references you can undefine those two options.
CobraA1
Route Supervisor
Route Supervisor
Posts: 480
Joined: 07 Nov 2003 17:52
Location: USA

Post by CobraA1 »

Code: Select all

Link debug\ttd.exe 
debug\intro_gui.o(.text+0x309):intro_gui.c: undefined reference to `ShowInfo'
debug\misc_gui.o(.text+0x1fe1):misc_gui.c: undefined reference to `FiosFreeSavegameList'
debug\misc_gui.o(.text+0x1ff4):misc_gui.c: undefined reference to `FiosGetSavegameList'
debug\misc_gui.o(.text+0x2010):misc_gui.c: undefined reference to `FiosGetDescText'
debug\misc_gui.o(.text+0x2221):misc_gui.c: undefined reference to `FiosBrowseTo'
debug\misc_gui.o(.text+0x2352):misc_gui.c: undefined reference to `FiosDelete'
debug\misc_gui.o(.text+0x2396):misc_gui.c: undefined reference to `FiosMakeSavegameName'
debug\misc_gui.o(.text+0x23ac):misc_gui.c: undefined reference to `FiosFreeSavegameList'
debug\music_gui.o(.text+0x694):music_gui.c: undefined reference to `ShowInfo'
debug\network.o(.text+0x8e0):network.c: undefined reference to `ioctlsocket@12'
debug\network.o(.text+0x97f):network.c: undefined reference to `recv@16'
debug\network.o(.text+0xbf4):network.c: undefined reference to `send@16'
debug\network.o(.text+0xe3a):network.c: undefined reference to `socket@12'
debug\network.o(.text+0xe72):network.c: undefined reference to `setsockopt@20'
debug\network.o(.text+0xe86):network.c: undefined reference to `inet_addr@4'
debug\network.o(.text+0xe9d):network.c: undefined reference to `htons@4'
debug\network.o(.text+0xeb5):network.c: undefined reference to `connect@12'
debug\network.o(.text+0xf53):network.c: undefined reference to `socket@12'
debug\network.o(.text+0xf8d):network.c: undefined reference to `htons@4'
debug\network.o(.text+0xfa5):network.c: undefined reference to `bind@12'
debug\network.o(.text+0xfc9):network.c: undefined reference to `listen@8'
debug\network.o(.text+0x100e):network.c: undefined reference to `accept@12'
debug\network.o(.text+0x1038):network.c: undefined reference to `inet_ntoa@4'
debug\network.o(.text+0x1065):network.c: undefined reference to `setsockopt@20'
debug\network.o(.text+0x10ba):network.c: undefined reference to `WSAStartup@8'
debug\strings.o(.text+0x1d9f):strings.c: undefined reference to `GetLanguageList'
debug\ttd.o(.text+0x3a):ttd.c: undefined reference to `ShowWin32ErrorBox'
debug\ttd.o(.text+0xec):ttd.c: undefined reference to `ShowInfo'
debug\ttd.o(.text+0x8f3):ttd.c: undefined reference to `ShowInfo'
debug\ttd.o(.text+0x1106):ttd.c: undefined reference to `CreateConsole'
debug\ttd.o(.data+0x0):ttd.c: undefined reference to `_video_driver_descs'
debug\ttd.o(.data+0xc):ttd.c: undefined reference to `_sound_driver_descs'
debug\ttd.o(.data+0x18):ttd.c: undefined reference to `_music_driver_descs'
debug\screenshot.o(.text+0x8cb):screenshot.c: undefined reference to `FileExists'
c:/MinGW/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libmingw32.a(main.o)(.text+0x97):main.c: undefined reference to `WinMain@16'
"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
CobraA1
Route Supervisor
Route Supervisor
Posts: 480
Joined: 07 Nov 2003 17:52
Location: USA

Post by CobraA1 »

After playing around, I now get:

Code: Select all

table/strings.h:2146:31: warning: multi-character character constant
windres -i ttd.rc -o ttd.res -O coff -DMINGW32
ttd.rc:12:20: winres.h: No such file or directory
c:\MinGW\bin\windres.exe: ttd.rc:52: parse error
make: *** [ttd.res] Error 1
"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
CobraA1
Route Supervisor
Route Supervisor
Posts: 480
Joined: 07 Nov 2003 17:52
Location: USA

Post by CobraA1 »

Where do I get winres.h?
"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
orudge
Administrator
Administrator
Posts: 25138
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Post by orudge »

It's part of the Win32 API headers (at least under MSVC). Try commenting that include line out and see what happens (if it doesn't work, try replacing it with windows.h).
CobraA1
Route Supervisor
Route Supervisor
Posts: 480
Joined: 07 Nov 2003 17:52
Location: USA

Post by CobraA1 »

Replaced it with windows.h - and commented out the ICON line on line 53, MinGW didn't like that line.

I compiles now with those modifications :).

It will make now, but not jam. It also complains about "Loader for 'zlib' is not available", but it still runs.

Expect to see me make some patches now ;).
"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
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 24 guests