-
Notifications
You must be signed in to change notification settings - Fork 392
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
Default 1.5.0 build on Ubuntu 22.04 attempts to build lcm-python
which requires Python_LIBRARY
#453
Comments
WorkaroundsDisable Python BuildIf building python is not necessary, it can be disable using the docker run -it lcm-bug cmake .. -DLCM_ENABLE_PYTHON=OFF In this case, the cmake configuration completes correctly without checking for the python library. Install Python DevIf building python is necessary, install the python dev apt package before building LCM. For example, adding the following to the Dockerfile before the RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
python3-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* Build & Rundocker build -f Dockerfile -t lcm-bug .
docker run -it lcm-bug cmake .. Output
|
In version 1.4.0, if the If the python installation is desired for the default build, I think the python dev package (e.g. |
Agree on both counts; it looks like this is a bug in the meson logic. It looks like the detection logic may just be checking for the interpreter # Python
lcm_option(
LCM_ENABLE_PYTHON
"Build Python bindings and utilities"
PYTHON_FOUND Python)
if(LCM_ENABLE_PYTHON)
add_subdirectory(lcm-python)
endif() but it should be disabling if other necessary components are not found. |
Summary
When attempting to build LCM 1.5.0 from source on ubuntu 22.04, the cmake configuration step throws the following error:
Example
Host OS:
Ubuntu 22.04
Docker version:
Docker version 23.0.6, build ef23cbc
.Dockerfile
Build & Run
docker build -f Dockerfile -t lcm-bug . docker run -it lcm-bug cmake ..
Output
The text was updated successfully, but these errors were encountered: