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

Fix jsk-recognition-msgs on noetic #407

Merged
merged 2 commits into from
Jul 26, 2024

Conversation

kjeremy
Copy link
Contributor

@kjeremy kjeremy commented May 9, 2024

This contains two fixes:

  1. The first is that ROS_DISTRO is read from the environment in CMakeLists.txt. The variable is only available when ros-environment is included as a build input. I'm not sure how this worked before. (Add ros_environment jsk-ros-pkg/jsk_recognition#2836)

  2. The second build fix is removing catkin_python_setup from CMakeLists.txt (Changes to build in Ubuntu 22.04/24.04 jsk-ros-pkg/jsk_recognition#2829)

Fixes #406

The package looks at the ROS_VERSION variable and fails to find it without this.
Gets around:

> error: Multiple top-level packages discovered in a flat-layout: ['srv', 'msg', 'sample', 'action'].
       >
       > To avoid accidental inclusion of unwanted files or directories,
       > setuptools will not proceed with this build.
       >
       > If you are trying to create a single distribution with multiple packages
       > on purpose, you should not rely on automatic discovery.
       > Instead, consider the following options:
       >
       > 1. set up custom discovery (`find` directive with `include` or `exclude`)
       > 2. use a `src-layout`
       > 3. explicitly set `py_modules` or `packages` with a list of names
       >
       > To find more information, look for "package discovery" on setuptools docs.
       > CMake Error at catkin_generated/safe_execute_install.cmake:4 (message):
       >
       >   execute_process(/build/jsk_recognition-release-release-noetic-jsk_recognition_msgs-1.2.17-2/build/catkin_generated/python_distutils_install.sh)
       >   returned error code
       > Call Stack (most recent call first):
       >   cmake_install.cmake:46 (include)
       >
       >
       > make: *** [Makefile:100: install] Error 1
@kjeremy
Copy link
Contributor Author

kjeremy commented May 14, 2024

@lopsided98 should we be specifying ROS_DISTRO, ROS_VERSION, and ROS_PYTHON_VERSION at build time?

@wentasah
Copy link
Contributor

Hi, I'm not that much familiar with ROS 1 and not sure why are you asking, but the answer is likely yes. There are packages that use these variables at build time to decide how to build their code, e.g. which quirks need to be applied for compatibility with different ROS versions/distributions.

@kjeremy
Copy link
Contributor Author

kjeremy commented May 23, 2024

@lopsided98

@lopsided98 lopsided98 merged commit a55d6a9 into lopsided98:develop Jul 26, 2024
@kjeremy kjeremy deleted the fix-jsk-recognition-msgs branch July 26, 2024 03:44
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

Successfully merging this pull request may close these issues.

noetic.jsk-recognition-msgs fails to build
3 participants