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

Tutorial python install - add_dependencies Fails Due to Missing Target Despite find_package Succeeding #24

Open
vvannini opened this issue Nov 13, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@vvannini
Copy link

I encountered an issue with this line in CMakeLists.txt:

cmake add_dependencies(_core norlab_icp_mapper)

With this line included, I get the following error:

The dependency target "norlab_icp_mapper" of target "_core" does not exist.

However, the find_package call seems to be successful:

find_package(norlab_icp_mapper REQUIRED)

There are no errors related to finding the package, which suggests that norlab_icp_mapper is being located correctly. The problem arises specifically when trying to add it as a dependency target for _core.

When this line is commented out, the code compiles without any errors. However, running:

python build_map_from_scans_and_trajectory.py

results in a segmentation fault that occurs at the line:

mapper.processInput(inputCloud, T, timestamp)

Environment:

Name Version
ubuntu: Description: Ubuntu 22.04.5 LTS
architecture: 64-bit
gcc: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
git: git version 2.34.1
cmake: cmake version 3.22.1 CMake suite maintained and supported by Kitware (kitware.com/cmake).
boost: Version: 1.74.0.3ubuntu7
eigen3: Version: 3.4.0-2ubuntu2
doxygen: Version: 1.9.1-2ubuntu2
@boxanm boxanm self-assigned this Nov 13, 2024
@boxanm
Copy link
Contributor

boxanm commented Nov 17, 2024

Hi, I pushed a fix on the develop branch. If you could verify it's working on your side, I'll then create a new release.

@boxanm boxanm added the bug Something isn't working label Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants