ros-noetic-arch / ros-noetic-pcl-ros

ros-noetic-pcl-ros AUR package
0 stars 2 forks source link

Build fails #4

Open FIXMBR opened 2 years ago

FIXMBR commented 2 years ago

Hi, I was rebuilding ros-noetic-desktop-full and got this error while building ros-noetic-pcl-ros:

-- Could NOT find dynamic_reconfigure (missing: dynamic_reconfigure_DIR)
-- Could not find the required component 'dynamic_reconfigure'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by
  "dynamic_reconfigure" with any of the following names:

    dynamic_reconfigureConfig.cmake
    dynamic_reconfigure-config.cmake

  Add the installation prefix of "dynamic_reconfigure" to CMAKE_PREFIX_PATH
  or set "dynamic_reconfigure_DIR" to a directory containing one of the above
  files.  If "dynamic_reconfigure" provides a separate development package or
  SDK, be sure it has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:39 (find_package)

I have rebuilt ros-noetic-dynamic-reconfigure and installed it already. How can I resolve this issue? Thanks in advance

twetto commented 2 years ago

I had encountered the same issue. It seems like PCL and catkin have some conflicts in CMakeLists.txt. Cut find_package(catkin ... (line 39~58) and paste before find_package(PCL ...) line 7 in src/perception_pcl-1.7.3/pcl_ros/CMakeLists.txt and it compiled. (I did this offline by commenting out source and sha256sums in PKGBUILD) That should be a quick dirty fix. Don't know the root cause though, so I am afraid to create a patch.

acxz commented 2 years ago

patched with 97af635

acxz commented 2 years ago

From: https://github.com/ros-noetic-arch/ros-noetic-pcl-ros/issues/6#issuecomment-973791208

https://github.com/ros-perception/perception_pcl/issues/351

petronny commented 1 year ago

Getting this error:

-- BUILD_SHARED_LIBS is on
CMake Error at /opt/ros/noetic/share/pcl_conversions/cmake/pcl_conversionsConfig.cmake:113 (message):
  Project 'pcl_conversions' specifies '/usr/include/pcl-1.12' as an include
  dir, which is not found.  It does neither exist as an absolute directory
  nor in '${prefix}//usr/include/pcl-1.12'.  Check the issue tracker
  'https://github.com/ros-perception/perception_pcl/issues' and consider
  creating a ticket if the problem has not been reported yet.
Call Stack (most recent call first):
  /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package)
  CMakeLists.txt:14 (find_package)

-- Configuring incomplete, errors occurred!
See also "/build/ros-noetic-pcl-ros/src/build/CMakeFiles/CMakeOutput.log".
==> ERROR: A failure occurred in build().

https://github.com/arch4edu/cactus/actions/runs/4299379511/jobs/7494527977

petronny commented 1 year ago

Getting this error:

-- BUILD_SHARED_LIBS is on
CMake Error at /opt/ros/noetic/share/pcl_conversions/cmake/pcl_conversionsConfig.cmake:113 (message):
  Project 'pcl_conversions' specifies '/usr/include/pcl-1.12' as an include
  dir, which is not found.  It does neither exist as an absolute directory
  nor in '${prefix}//usr/include/pcl-1.12'.  Check the issue tracker
  'https://github.com/ros-perception/perception_pcl/issues' and consider
  creating a ticket if the problem has not been reported yet.
Call Stack (most recent call first):
  /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package)
  CMakeLists.txt:14 (find_package)

-- Configuring incomplete, errors occurred!
See also "/build/ros-noetic-pcl-ros/src/build/CMakeFiles/CMakeOutput.log".
==> ERROR: A failure occurred in build().

https://github.com/arch4edu/cactus/actions/runs/4299379511/jobs/7494527977

This one is solved by rebuilding ros-noetic-pcl-conversions first.

PS. ros-noetic-pcl-conversions now needs openmpi as a dependency or make dependency.