Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build with -DOPTION_DEDICATED=ON fails on Linux #8800

Closed
telk5093 opened this issue Mar 3, 2021 · 0 comments · Fixed by #8802
Closed

Build with -DOPTION_DEDICATED=ON fails on Linux #8800

telk5093 opened this issue Mar 3, 2021 · 0 comments · Fixed by #8802
Assignees
Labels
bug Something isn't working
Milestone

Comments

@telk5093
Copy link
Contributor

telk5093 commented Mar 3, 2021

Version of OpenTTD

1.11.0-beta2

Expected result

Build success

Actual result

cmake .. -DOPTION_DEDICATED=ON -DCMAKE_BUILD_TYPE=Release
make
(...)
[ 98%] Building CXX object CMakeFiles/openttd.dir/src/window.cpp.o
[ 99%] Linking CXX executable openttd
CMakeFiles/openttd.dir/src/fontcache.cpp.o (symbol from plugin): In function `SpriteFontCache::GetUnicodeGlyph(char32_t)':
(.text+0x0): multiple definition of `SetFallbackFont(FreeTypeSettings*, char const*, int, MissingGlyphSearcher*)'
CMakeFiles/openttd.dir/src/os/unix/font_unix.cpp.o (symbol from plugin):(.text+0x0): first defined here
/tmp/ccKOQL5G.ltrans5.ltrans.o: In function `SetFallbackFont(FreeTypeSettings*, char const*, int, MissingGlyphSearcher*)':
<artificial>:(.text+0x157bc): undefined reference to `FcInit'
<artificial>:(.text+0x15826): undefined reference to `FcNameParse'
<artificial>:(.text+0x1584f): undefined reference to `FcObjectSetBuild'
<artificial>:(.text+0x1585f): undefined reference to `FcFontList'
<artificial>:(.text+0x1586a): undefined reference to `FcObjectSetDestroy'
<artificial>:(.text+0x15874): undefined reference to `FcPatternDestroy'
<artificial>:(.text+0x158e1): undefined reference to `FcPatternGetString'
<artificial>:(.text+0x1590a): undefined reference to `FcPatternGetInteger'
<artificial>:(.text+0x15973): undefined reference to `FcFontSetDestroy'
<artificial>:(.text+0x15978): undefined reference to `FcFini'
<artificial>:(.text+0x159a1): undefined reference to `FcPatternGetInteger'
<artificial>:(.text+0x159be): undefined reference to `FcPatternGetInteger'
collect2: error: ld returned 1 exit status
CMakeFiles/openttd.dir/build.make:5837: recipe for target 'openttd' failed
make[2]: *** [openttd] Error 1
CMakeFiles/Makefile2:1031: recipe for target 'CMakeFiles/openttd.dir/all' failed
make[1]: *** [CMakeFiles/openttd.dir/all] Error 2
Makefile:181: recipe for target 'all' failed
make: *** [all] Error 2

Steps to reproduce

Build 1.11.0-beta2 in Ubuntu 20.04 with -DOPTION_DEDICATED=ON
cmake .. -DOPTION_DEDICATED=ON -DCMAKE_BUILD_TYPE=Release make

@telk5093 telk5093 changed the title Build on Linux with OPTION_DEDICATED=ON fails Build with -DOPTION_DEDICATED=ON fails on Linux Mar 3, 2021
@TrueBrain TrueBrain added this to the 1.11.0 milestone Mar 3, 2021
@TrueBrain TrueBrain added the bug Something isn't working label Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants