OpenTTD [14.1] fails to build.

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
CaptNemo
Engineer
Engineer
Posts: 9
Joined: 08 Jul 2024 17:19

OpenTTD [14.1] fails to build.

Post 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.
TT-Dude Sr.
Engineer
Engineer
Posts: 1
Joined: 03 May 2025 18:26

Re: OpenTTD [14.1] fails to build.

Post 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.
markzl
Engineer
Engineer
Posts: 35
Joined: 20 Jan 2009 01:58

Re: OpenTTD [14.1] fails to build.

Post by markzl »

since you've had no replies here is a very old link from openttd: https://web.archive.org/web/20090525065 ... ding_Tools
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1794
Joined: 30 Mar 2005 09:43

Re: OpenTTD [14.1] fails to build.

Post 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.
He's like, some kind of OpenTTD developer.
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 6 guests