-
Notifications
You must be signed in to change notification settings - Fork 19
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 error despite all dependencies being installed #7
Comments
Have you tried |
Yeah, both |
So if I understand things correctly, scantailor-advanced can't be built with CMake 3.10 (the default in Ubuntu 18.04)? |
There is an issue in Ubuntu 18.04 and systems based on it (including the very popular Linux Mint 19.3): after installing the all the dependencies and compilers and doing
cmake -G "Unix Makefiles" --build ..
, the compiler throws a bunch of errors likeThe version of CMake that is proposed in the repositories for Ubuntu-18.04-based distributions is 3.10, and it is probably slightly broken, so what helped—and what is currently outside the scope of this tutorial and what a strongly recommend to the ‘Troubleshooting’ section is the following:
— If CMake produces errors complaining about not finding targets despite all libraries with development headers already being present in the system, then remove CMake (
sudo apt remove cmake cmake-data
) and compile CMake from sources:cd cmake-3.17.1/ ./bootstrap --parallel=2 -- -DCMAKE_BUILD_TYPE:STRING=Release make -j2 make install
(or replacing the last line with
sudo checkinstall --fstrans=no
for easier uninstallation even when the sources are gone), and after that, CMake should find all libraries and compilescantailor-advanced
without a hindrance.The text was updated successfully, but these errors were encountered: