JGR's Patch Pack

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

De_Jerre
Engineer
Engineer
Posts: 3
Joined: 15 Dec 2020 09:43

Re: JGR's Patch Pack

Post 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
Attachments
buil attempt.txt
(23.96 KiB) Downloaded 21 times
ino
Traffic Manager
Traffic Manager
Posts: 130
Joined: 09 Apr 2017 14:58

Re: JGR's Patch Pack

Post 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?
De_Jerre
Engineer
Engineer
Posts: 3
Joined: 15 Dec 2020 09:43

Re: JGR's Patch Pack

Post 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)
ino
Traffic Manager
Traffic Manager
Posts: 130
Joined: 09 Apr 2017 14:58

Re: JGR's Patch Pack

Post 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.
De_Jerre
Engineer
Engineer
Posts: 3
Joined: 15 Dec 2020 09:43

Re: JGR's Patch Pack

Post 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.
User avatar
JGR
Tycoon
Tycoon
Posts: 2205
Joined: 08 Aug 2005 13:46
Location: Ipswich

Re: JGR's Patch Pack

Post 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.
Ex TTDPatch Coder
Patch Pack, Github
Dad-Coder since April 2018

Avatar by MoonsongWolf
Argus
Traffic Manager
Traffic Manager
Posts: 182
Joined: 16 Oct 2018 08:31

Re: JGR's Patch Pack

Post by Argus »

Crash during loading - crashlog here http://leteckaposta.cz/962911623
Sending savegame
It happened repeatedly
Attachments
Countryroadsxxjokerpp.sav
(865.91 KiB) Downloaded 21 times
User avatar
JGR
Tycoon
Tycoon
Posts: 2205
Joined: 08 Aug 2005 13:46
Location: Ipswich

Re: JGR's Patch Pack

Post 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?
Ex TTDPatch Coder
Patch Pack, Github
Dad-Coder since April 2018

Avatar by MoonsongWolf
Argus
Traffic Manager
Traffic Manager
Posts: 182
Joined: 16 Oct 2018 08:31

Re: JGR's Patch Pack

Post by Argus »

Here, I think the first version I downloaded
Attachments
countryroads.grf
(290.41 KiB) Downloaded 23 times
User avatar
JGR
Tycoon
Tycoon
Posts: 2205
Joined: 08 Aug 2005 13:46
Location: Ipswich

Re: JGR's Patch Pack

Post 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.
Ex TTDPatch Coder
Patch Pack, Github
Dad-Coder since April 2018

Avatar by MoonsongWolf
Argus
Traffic Manager
Traffic Manager
Posts: 182
Joined: 16 Oct 2018 08:31

Re: JGR's Patch Pack

Post by Argus »

So old versions are best deleted. Ok, thanks :) It's really old savegame.
Argus
Traffic Manager
Traffic Manager
Posts: 182
Joined: 16 Oct 2018 08:31

Re: JGR's Patch Pack

Post 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.
User avatar
JGR
Tycoon
Tycoon
Posts: 2205
Joined: 08 Aug 2005 13:46
Location: Ipswich

Re: JGR's Patch Pack

Post 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.
Ex TTDPatch Coder
Patch Pack, Github
Dad-Coder since April 2018

Avatar by MoonsongWolf
Argus
Traffic Manager
Traffic Manager
Posts: 182
Joined: 16 Oct 2018 08:31

Re: JGR's Patch Pack

Post 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 :)
mrbeanisgood
Engineer
Engineer
Posts: 4
Joined: 15 Aug 2020 17:57

Re: JGR's Patch Pack

Post 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 22 times
Argus
Traffic Manager
Traffic Manager
Posts: 182
Joined: 16 Oct 2018 08:31

Re: JGR's Patch Pack

Post by Argus »

I'm guessing this is a problem with writing to openttd.cfg. Personally, I did not notice this problem.
Sky_Turner
Engineer
Engineer
Posts: 3
Joined: 30 Aug 2020 18:44
Location: Yekaterinburg, Russia

Re: JGR's Patch Pack

Post by Sky_Turner »

Так когда же уже будет добавлен патч Terminus
sowwy 4 mah not english, i stil commie
Image
Image

root@earth: $ /you > /dev/null
User avatar
Redirect Left
Tycoon
Tycoon
Posts: 6737
Joined: 22 Jan 2005 19:31
Location: Wakefield, West Yorkshire

Re: JGR's Patch Pack

Post 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)
Image
Worst Behaved IRC Member of 2008, 2009 & 2010 - Go Me!
User avatar
sevenfm
Engineer
Engineer
Posts: 80
Joined: 25 Jul 2016 23:44
Location: Soviet Russia

Re: JGR's Patch Pack

Post by sevenfm »

I guess he asks about adding the terminus airport patch:
viewtopic.php?t=73976
Sky_Turner
Engineer
Engineer
Posts: 3
Joined: 30 Aug 2020 18:44
Location: Yekaterinburg, Russia

Re: JGR's Patch Pack

Post 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
Image
Image

root@earth: $ /you > /dev/null
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: Google Adsense [Bot], kiwitree and 5 guests