My goal is to compile the source to test two particular patches:
-> Native seaplane airport (viewtopic.php?t=72959)
-> Another Daylength patch (viewtopic.php?f=33&t=42432&start=380)
*EDIT*: My first attempt was to compile with only the seaplane patch as I read that patching more than one at the same time is trickier. One step at a time
I followed the wiki's article on using MinGW to compile OpenTTD and two non-expected things happened:
1. as I ran ./configure on both patched source and 'clean' source, lzma was not detected and the makefile was not created.
2. I tried running ./configure --without-lzma and while compiling this happened:
Code: Select all
$ make
make[1]: Entering directory `/c/Users/GJ/openttd-1.6.1-source/objs/lang'
[LANG] Compiling and Linking endian_check.exe
[LANG] Testing endianness for host
[LANG] Compiling core/alloc_func.cpp
[LANG] Compiling string.cpp
c:/Users/GJ/openttd-1.6.1-source/src/string.cpp: In function 'char* strcasestr(c
onst char*, const char*)':
c:/Users/GJ/openttd-1.6.1-source/src/string.cpp:537:47: error: 'strncasecmp' was
not declared in this scope
if (strncasecmp(haystack, needle, needle_len) == 0) return const_cast<char *>
(haystack);
^
c:/Users/GJ/openttd-1.6.1-source/src/string.cpp: In function 'int strnatcmp(cons
t char*, const char*, bool)':
c:/Users/GJ/openttd-1.6.1-source/src/string.cpp:585:26: error: 'strcasecmp' was
not declared in this scope
return strcasecmp(s1, s2);
^
make[1]: *** [string.o] Error 1
make[1]: Leaving directory `/c/Users/GJ/openttd-1.6.1-source/objs/lang'
make: *** [all] Error 1
Thanks