Skip to content

can't compile on catkin with kindr and kindr_ros masters #16

@mcamurri

Description

@mcamurri

If I clone the latest masters of kindr and kindr ros

and try to compile both in my catkin workspace, I get the following error:

CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkin_workspace.cmake:95 (message):
  This workspace contains non-catkin packages in it, and catkin cannot build
  a non-homogeneous workspace without isolation.

If I try to compile kindr_ros as caktin package and I install kindr normally (i.e. mkdir build && cd build && cmake .. && sudo make install), I can compile kindr_ros as cmake project but not as a catkin project, because I get:

CMake Warning at kindr_ros/kindr_ros/CMakeLists.txt:11 (find_package):
  Found package configuration file:

    /usr/local/share/kindr/cmake/kindrConfig.cmake

  but it set kindr_FOUND to FALSE so package "kindr" is considered to be NOT
  FOUND.

then the project fails because kindr does not generate a kindr.pc file anymore.

If I add the following line to the kindrConfig.cmake.in it works again:

set(kindr_FOUND true)

Any idea why? Why do the file sets only kindr_FOUND_CATKIN_PROJECT and not kindr_FOUND if catkin does not detect it?

I'm using Kinetic with Ubuntu 16.04.

Thanks,
Marco.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions