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

Failed to load library libapriltag.so.3 #3

Closed
liushuya7 opened this issue Apr 29, 2021 · 2 comments
Closed

Failed to load library libapriltag.so.3 #3

liushuya7 opened this issue Apr 29, 2021 · 2 comments

Comments

@liushuya7
Copy link

Hi,

Everything compiled fine with colcon build. However, when I tried to ros2 launch apriltag_ros tag_16h5_all.launch.py:

[INFO] [component_container-1]: process started with pid [180093]
[component_container-1] [INFO] [1619718701.105940189] [apriltag.tag_container]: Load Library: /home/josh/dev_ws/install/apriltag_ros/lib/libAprilTagNode.so
[component_container-1] [ERROR] [1619718701.109247249] [apriltag.tag_container]: Failed to load library: Could not load library LoadLibrary error: libapriltag.so.3: cannot open shared object file: No such file or directory, at /tmp/binarydeb/ros-foxy-rcutils-1.1.3/src/shared_library.c:84
[ERROR] [launch_ros.actions.load_composable_nodes]: Failed to load node 'apriltag' of type 'AprilTagNode' in container '/apriltag/tag_container': Failed to load library: Could not load library LoadLibrary error: libapriltag.so.3: cannot open shared object file: No such file or directory, at /tmp/binarydeb/ros-foxy-rcutils-1.1.3/src/shared_library.c:84

I have installed Apritag to the system, and I have /usr/local/lib/libapriltag.so.3
Would you know where I may have done wrong?
Thanks,
Joshua

@liushuya7
Copy link
Author

Running sudo ldconfig resolved it.

@christianrauch
Copy link
Owner

It appears you installed the apriltag library from https://github.com/AprilRobotics/apriltag directly as a system package via CMake. I think you can avoid this issue by installing it as part of your colon workspace.

The easiest would be to just to install the binary package ros-foxy-apriltag :-)

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

No branches or pull requests

2 participants