Page 157 of 235

Re: JGR's Patch Pack

Posted: 15 Dec 2020 10:21
by De_Jerre
Hello,

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?

Code: Select all

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

Re: JGR's Patch Pack

Posted: 15 Dec 2020 10:37
by ino
This deosn't look like system GCC. Looks like the include folder wasn't configured correctly on the compiler side.

Any reason why system GCC wasn't used?

Re: JGR's Patch Pack

Posted: 15 Dec 2020 11:52
by De_Jerre
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)

Re: JGR's Patch Pack

Posted: 15 Dec 2020 12:04
by ino
Is C++ standard libraries installed?

C++ building process is complicated and I am unfamilier with your setup so I cannot really provide more help. Hope someone come along soon.

Re: JGR's Patch Pack

Posted: 15 Dec 2020 12:36
by De_Jerre
I'm not sure but GCC 7.2 seems to be pretty old(2017).
Going to try to install the latest version manually and see if that goes any better after work.

Re: JGR's Patch Pack

Posted: 15 Dec 2020 12:44
by JGR
You'll probably need to install the appropriate version of libstdc++ and/or libc-dev.

An embedded NAS is likely to be quite an underpowered device. Even if you get it built, the performance may well be a bit disappointing.

Re: JGR's Patch Pack

Posted: 15 Dec 2020 16:58
by Argus
Crash during loading - crashlog here http://leteckaposta.cz/962911623
Sending savegame
It happened repeatedly

Re: JGR's Patch Pack

Posted: 15 Dec 2020 17:32
by JGR
Argus wrote: 15 Dec 2020 16:58 Crash during loading - crashlog here http://leteckaposta.cz/962911623
Sending savegame
It happened repeatedly
Thanks for reporting this.

Could you attach a copy of whichever version of the country roads GRF that you're using?

Re: JGR's Patch Pack

Posted: 15 Dec 2020 17:46
by Argus
Here, I think the first version I downloaded

Re: JGR's Patch Pack

Posted: 15 Dec 2020 19:11
by JGR
Argus wrote: 15 Dec 2020 16:58 Crash during loading - crashlog here http://leteckaposta.cz/962911623
Sending savegame
It happened repeatedly
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.

Re: JGR's Patch Pack

Posted: 15 Dec 2020 21:16
by Argus
So old versions are best deleted. Ok, thanks :) It's really old savegame.

Re: JGR's Patch Pack

Posted: 17 Dec 2020 14:09
by Argus
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.

Re: JGR's Patch Pack

Posted: 17 Dec 2020 14:28
by JGR
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.

Re: JGR's Patch Pack

Posted: 17 Dec 2020 14:37
by Argus
So it can't be solved, so I can delete the savegame, Thanks :). I expected similar problems, I'll just start the game again :)

Re: JGR's Patch Pack

Posted: 19 Dec 2020 01:51
by mrbeanisgood
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.
Hyper Realistic GB.sav
(1.09 MiB) Downloaded 103 times

Re: JGR's Patch Pack

Posted: 19 Dec 2020 11:13
by Argus
I'm guessing this is a problem with writing to openttd.cfg. Personally, I did not notice this problem.

Re: JGR's Patch Pack

Posted: 23 Dec 2020 19:24
by Sky_Turner
Так когда же уже будет добавлен патч Terminus
sowwy 4 mah not english, i stil commie

Re: JGR's Patch Pack

Posted: 23 Dec 2020 20:43
by Redirect Left
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)

Re: JGR's Patch Pack

Posted: 24 Dec 2020 05:37
by sevenfm
I guess he asks about adding the terminus airport patch:
viewtopic.php?t=73976

Re: JGR's Patch Pack

Posted: 28 Dec 2020 01:24
by Sky_Turner
sevenfm wrote: 24 Dec 2020 05:37 I guess he asks about adding the terminus airport patch:
viewtopic.php?t=73976
Yes, that's right