Page 1 of 1

OpenTTD [14.1] fails to build.

Posted: 23 Jan 2025 21:48
by CaptNemo
Getting this error-

Code: Select all

[ 97%] Linking CXX executable openttd
/usr/bin/ld: CMakeFiles/openttd_lib.dir/src/survey.cpp.o: undefined reference to symbol 'u_versionToString_76'
/usr/bin/ld: /usr/lib64/libicuuc.so.76: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/openttd.dir/build.make:1020: openttd] Error 1
make[1]: *** [CMakeFiles/Makefile2:2476: CMakeFiles/openttd.dir/all] Error 2
I have no idea what it means or how to fix.

Re: OpenTTD [14.1] fails to build.

Posted: 03 May 2025 19:44
by TT-Dude Sr.
Try to add LDFLAGS with cmake, e.g., LDFLAGS="-L/usr/lib -licuuc -licudata". Change the libdir to where the icu-uc library is installed.

Re: OpenTTD [14.1] fails to build.

Posted: 06 May 2025 10:11
by markzl
since you've had no replies here is a very old link from openttd: https://web.archive.org/web/20090525065 ... ding_Tools

Re: OpenTTD [14.1] fails to build.

Posted: 06 May 2025 12:19
by peter1138
OpenTTD 14.1 won't build with ICU >= 76, as ICU decided to split one of its components off into a separate library.

You could try to cherry-pick https://github.com/OpenTTD/OpenTTD/comm ... f6f1c7b96e, but then it won't be entirely 14.1 any more.

Or if possible drop to an earlier ICU version.