Problem with compiling ource code

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

Post Reply
route66
Engineer
Engineer
Posts: 2
Joined: 13 Mar 2010 00:12

Problem with compiling ource code

Post by route66 »

Hello I am new to openTTd development and I got a problem while compiling freshly downloaded src code.

I am running on Windows 32bit. And I installed MINGW for compiling.
I followed all the steps in the howto (http://wiki.openttd.org/Compiling_on_MinGW) but got this kind of error then compiling:

Started MSYS.
Run:
cd ~/trunk
./configure
make

and here is the error:

Code: Select all

make[1]: Entering directory `/usr/home/kasutaja/trunk/objs/lang'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/home/kasutaja/trunk/objs/lang'
make[1]: Entering directory `/usr/home/kasutaja/trunk/objs/release'
[SRC] Compiling crashlog.cpp
C:/msys/1.0/home/kasutaja/trunk/src/crashlog.cpp:167:23: lzo/lzo1x.h: No such file or directory
C:/msys/1.0/home/kasutaja/trunk/src/crashlog.cpp:174:19: zlib.h: No such file or directory
C:/msys/1.0/home/kasutaja/trunk/src/crashlog.cpp: In member function `char* CrashLog::LogLibraries(char*, const char*) const':
C:/msys/1.0/home/kasutaja/trunk/src/crashlog.cpp:209: error: `lzo_version_string' was not declared in this scope
C:/msys/1.0/home/kasutaja/trunk/src/crashlog.cpp:228: error: `zlibVersion' was not declared in this scope
C:/msys/1.0/home/kasutaja/trunk/src/crashlog.cpp:209: warning: unused variable 'lzo_version_string'
C:/msys/1.0/home/kasutaja/trunk/src/crashlog.cpp:228: warning: unused variable 'zlibVersion'
make[1]: *** [crashlog.o] Error 1
make[1]: Leaving directory `/usr/home/kasutaja/trunk/objs/release'
make: *** [all] Error 2
the openttd.exe file is not created in the ./bin folder.

Can anybody help me?

Tiit
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: Problem with compiling ource code

Post by Rubidium »

Can't really help you, but for some reason the compiler can't find the headers of zlib and lzo (OpenTTD's configure script did find them). Did you move them instead of copy them (as described in the wiki)?
route66
Engineer
Engineer
Posts: 2
Joined: 13 Mar 2010 00:12

Re: Problem with compiling ource code

Post by route66 »

I tried again from the beginning. But still same problem.

So I turned to my Ubuntu instead of windows xp. and now I have successfully compiled the source code and the game works :)

Maybe the problem was in MinGW version or something else, or me.

EDIT: the problem might be in this, that it didn't find libraries, beacause the OpenTTD source code wa under MINGW folder in C:/mingw, but I also had previously installed OpenTTD under MyDocuments. It is just my guessing.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 36 guests