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

Linking error while trying to build openTTD on Raspbian buster #9058

Closed
Milanisius opened this issue Apr 19, 2021 · 4 comments
Closed

Linking error while trying to build openTTD on Raspbian buster #9058

Milanisius opened this issue Apr 19, 2021 · 4 comments

Comments

@Milanisius
Copy link

Hello there,

as there seem to be no 1.11 binaries for Linux on ARM available (Or did I just miss them?),
I tried to build openTTD from source on my Raspberry Pi.

I have little experience with building from source and even less experience with cmake, so maybe the problem is just my incompetence. The error occurs while "Linking CXX executable openttd", errors are listed below. I believe the problem might have something to do with cmake.

Please let me know if you need any more info and thank you for your help!

Version of OpenTTD

1.11.0

Expected result

OpenTTD builds successfully.

Actual result

Error in linking???

The Error:

[100%] Linking CXX executable openttd
/usr/bin/ld: CMakeFiles/openttd.dir/src/industry_cmd.cpp.o: in function `GetNumberOfIndustries':
/home/pi/OpenTTD/src/industry_cmd.cpp:2219: undefined reference to `Pool<Industry, unsigned short, 64u, 64000u, (PoolType)1, false, true>::MAX_SIZE'
/usr/bin/ld: CMakeFiles/openttd.dir/src/town_cmd.cpp.o: in function `GenerateTowns(TownLayout)':
/home/pi/OpenTTD/src/town_cmd.cpp:2247: undefined reference to `Pool<Town, unsigned short, 64u, 64000u, (PoolType)1, false,true>::MAX_SIZE'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/openttd.dir/build.make:6000: openttd] Error 1
make[1]: *** [CMakeFiles/Makefile2:1122: CMakeFiles/openttd.dir/all] Error 2
make: *** [Makefile:163: all] Error 2

Steps to reproduce

Try to build OpenTTD on the newest Raspbian Buster, following the steps in COMPILING.md.

@James103
Copy link
Contributor

Did you try building OpenTTD 1.11.1?

@FLHerne
Copy link
Contributor

FLHerne commented Apr 19, 2021

Thanks for the report.

This is indeed an OpenTTD bug (duplicate report of #8962) and fixed by #8924, which was included in the 1.11.1 release a few hours ago.

@Milanisius
Copy link
Author

I did not try it with 1.11.1 yet, i missed that release. Thank you!

@LordAro
Copy link
Member

LordAro commented Apr 19, 2021

Duplicate of #8962

@LordAro LordAro marked this as a duplicate of #8962 Apr 19, 2021
@LordAro LordAro closed this as completed Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants