-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
cmake build fails on Ubuntu bionic because of old cmake version #3702
Comments
Commit e1764e1 fixes the problem with clang policy CMP0074. |
The linker errors are also caused by the cmake version: |
We should bump minimum cmake version then. |
version 3.10.2 was released 4 years ago. The current version is 3.22.1. Any chance they would include a newer version? |
Ubuntu bionic is version 18.4. According action there is no problem with building training tools. Can you check if all necessary libraries are installed and OK? Maybe reinstall icu libs? |
Ubuntu bionic comes with cmake 3.10.2 and is supported until 2023. So I'd wait with dropping that version.
Replacing |
I did not get this. Why build on Ubuntu 18.04.6 works (x86?), but on the ppc64le not (icu)? I expect there is the same version of cmake (and other packages). |
Thanks, yes, it should be cmake, not clang. I fixed my comment now. And cmake on Ubuntu bionic x86* should have the same problem, so either there is a newer cmake version (where from?) or it does not use the problematic lines. |
GitHub actions for Ubuntu always use the latest cmake version (not the one which is provided by Ubuntu). Therefore those CI actions don't have a problem. |
This issue was fixed by pull request #3705. |
What about requiring 3.10 as the minimum CMake version instead of 3.7? |
That would be possible, but is it necessary? Do we already or do we want to use features which work with 3.10, but not with 3.7? |
I don't know. Did you tested Tesseract 5.0.1 with CMake 3.7? If you did not, how do you know we don't use a CMake feature that is not supported in CMake 3.7? |
Debian stretch has 3.7. I now did a test there, and
For Debian stretch there is a newer version in stretch-backports, and Ubuntu bionic already has 3.10. Therefore requiring 3.10 would be fine for me, too. |
See pull request #3724. |
cmake version 3.10.2 aborts the build:
Can this policy be set conditionally only for newer versions of cmake?
After removing the policy line, the build sets wrong linker options for Curl (caused by commit c4ad9b7):
After fixing that locally, building
tesseract
works, but the training tools give linker errors:That looks like the linker does not get called with all necessary libraries.
The text was updated successfully, but these errors were encountered: