-
Notifications
You must be signed in to change notification settings - Fork 38
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
Failure to build install on Ubuntu #32
Comments
Hello Jens, we did not test OpenEB on Ubuntu 21 (not officially supported). The error you hit comes from those statements:
In your case, you have neither "focal" (Ubuntu 20.04) nor "bionic" (Ubuntu 16.04), so you get a PYTHON3_DEFAULT_VERSION of 3.6 whereas your default version Python is 3.8. So if you change the previous statements to those ones:
then it should configure the Python version properly and the build should continue. Could you try this out and tell me if the compilation goes to the end? |
Thanks for your quick reply! I changed Here's my diff if that's helpful. Happy to wrap it up in a PR, but I imagine it's helpful to add a check like you did for focal instead of just hardcoding it in. index 4a89256..5f709b1 100644
--- a/cmake/custom_functions/python3.cmake
+++ b/cmake/custom_functions/python3.cmake
@@ -116,12 +116,12 @@ if (COMPILE_PYTHON3_BINDINGS)
# this variable is used to create all python versions packages variables for cpack
# but not all of them will be generated, only the one indicated by PYBIND11_PYTHON_VERSIONS
- set (PYTHON3_ALL_VERSIONS "3.6;3.7;3.8")
+ set (PYTHON3_ALL_VERSIONS "3.6;3.7;3.8;3.9")
# this variable is used to set the default version for package dependency, i.e this version
# is always available for the current installation
if (UNIX AND NOT APPLE)
- set (PYTHON3_DEFAULT_VERSION "3.6")
+ set (PYTHON3_DEFAULT_VERSION "3.9")
find_program(_lsb_release_exec lsb_release)
if (_lsb_release_exec)
execute_process(COMMAND ${_lsb_release_exec} -cs |
Good to read that you were to compile successfully, thanks for the feedback. Note that the diff you shared could help future users working on Ubuntu 21 anyway. Thanks for that! |
I'm trying to build and install openeb for use as a third-party library. Running
sudo cmake --build . --target install
generates the following error:I'm on a standard Ubuntu 21.04 machine. I followed the prerequisite installations, so all dependencies should be up to date. I can reproduce the same behaviour with cmake 3.18.4 and 3.22.0-rc1.
Thanks for your time!
The text was updated successfully, but these errors were encountered: