I'm trying to compile openTTD on linux so I can run it as a dedicated server but I'm running into an issue.
Not sure what is wrong here. The stdlib.h file does exist on the system.
Any idea what I'm missing?
Scanning dependencies of target openttd
[ 46%] Building CXX object CMakeFiles/openttd.dir/generated/rev.cpp.o
[ 46%] Building CXX object CMakeFiles/openttd.dir/src/3rdparty/md5/md5.cpp.o
In file included from /opt/openttd/OpenTTD-patches-jgrpp-0.39.1/src/3rdparty/md5/../../stdafx.h:91:0,
from /opt/openttd/OpenTTD-patches-jgrpp-0.39.1/src/3rdparty/md5/md5.cpp:57:
/volume1/@optware/include/c++/7.2.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
^~~~~~~~~~
In file included from /opt/openttd/OpenTTD-patches-jgrpp-0.39.1/src/stdafx.h:91:0,
from /opt/openttd/OpenTTD-patches-jgrpp-0.39.1/build/generated/rev.cpp:10:
/volume1/@optware/include/c++/7.2.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
^~~~~~~~~~
compilation terminated.
compilation terminated.
CMakeFiles/openttd.dir/build.make:62: recipe for target 'CMakeFiles/openttd.dir/generated/rev.cpp.o' failed
make[2]: *** [CMakeFiles/openttd.dir/generated/rev.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/openttd.dir/build.make:86: recipe for target 'CMakeFiles/openttd.dir/src/3rdparty/md5/md5.cpp.o' failed
make[2]: *** [CMakeFiles/openttd.dir/src/3rdparty/md5/md5.cpp.o] Error 1
CMakeFiles/Makefile2:173: recipe for target 'CMakeFiles/openttd.dir/all' failed
make[1]: *** [CMakeFiles/openttd.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
Yea that is correct. The linux is basically my NAS which is running on a linux but very bare minimum with no GCC standard on it.
I downloaded GCC via ipkg command.
The include folder does seem to be configured correctly though...
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/volume1/@optware/bin/../libexec/gcc/x86_64-buildroot-linux-gnu/7.2.0/lto-wrapper
Target: x86_64-buildroot-linux-gnu
Configured with: ../gcc-7.2.0/configure --build=x86_64-pc-linux-gnu --host=x86_64-buildroot-linux-gnu --target=x86_64-buildroot-linux-gnu --prefix=/opt --disable-nls --disable-static --with-as=/opt/bin/as --with-ld=/opt/bin/ld --enable-languages=c,c++,go --disable-multilib --disable-werror --with-gxx-include-dir=/opt/include/c++/7.2.0 --disable-__cxa_atexit --with-gnu-ld --disable-libssp --disable-multilib --enable-libquadmath --enable-tls --disable-libmudflap --enable-threads --without-isl --without-cloog --disable-decimal-float --with-arch=nocona --enable-shared --disable-libgomp --with-gmp=/home/jenkins/Optware-ng/buildroot-x86_64/staging/opt --with-mpfr=/home/jenkins/Optware-ng/buildroot-x86_64/staging/opt --with-mpc=/home/jenkins/Optware-ng/buildroot-x86_64/staging/opt --with-system-zlib
Thread model: posix
gcc version 7.2.0 (GCC)
The problem appears to be caused by using version 0.6.1 of the Mop Generic NRT set.
This GRF does not work correctly (or at least, it behaves differently from originally intended) on the current upstream trunk or in this patchpack.
In general NRT was not stable in its early days and the GRFs from that era are best avoided if at all possible.
Another fall. It seems that I won't load games where I have an old version of the MOP Generic NRT set. I deleted the old version, but Tycoon does not replace the compatible latest one. He will try, but he will fail
Crashlog http://leteckaposta.cz/614710126
I don't have version 0.6.1 anywhere anymore.
Argus wrote: ↑17 Dec 2020 14:09
Another fall. It seems that I won't load games where I have an old version of the MOP Generic NRT set. I deleted the old version, but Tycoon does not replace the compatible latest one. He will try, but he will fail
Crashlog http://leteckaposta.cz/614710126
The problem is that the existing savegame uses the old version.
The various versions are not the same and so replacing one with the other is not likely to work either.
There's only so much that I can do about early prototype NRT implementations and GRFs which don't work with the actually released version of NRT.
I am having an issue where the settings I changed don't seem to have had an impact on the game. I have breakdowns set to none and disasters set to off, but breakdowns are occurring and I keep getting UFOs. If anyone knows what is going on, please let me know. I have also attached the save game.
Sky_Turner wrote: ↑23 Dec 2020 19:24
Так когда же уже будет добавлен патч
What do you want added to the patch specifically, or where do you want it to be added? (I think my vague knowledge of Russian (thanks CSGO) covered that correctly)
Need some good tested AI? - Unofficial AI Tester, list of good stuff & thread is here.