No such file or directory error - Library related
Hi ROS Community,
This will be my first question here and I would appreciate it very much if you could help me.
I am running ROS Noetic on Ubuntu. I have installed necessary libraries for the project and when i make catkin_make it gives me "franka/model.h: No such file or directory" error. franka/model.h is in in my home folder under the path home/libfranka/include/franka/model.h. So there is model.h and it is used in a c header like #include "franka/model.h" in the project folder.
When I check CMakeLists.txt file I saw the library name in
TARGET_LINK_LIBRARIES(vrep_interface_move_franka
pthread
dqrobotics
dqrobotics-interface-vrep
franka
${orocos_kdl_LIBRARIES}
${catkin_LIBRARIES}
${EIGEN3_INCLUDE_DIRS}
)
Other libraries are also in my home folder like that but it somehow could not find franka library and gives this error I think. What can be problem?
image of terminal with error can be found at: https://drive.google.com/file/d/1tsZVXWOx8olbfx7xnFc7sEtbbcEj6q85/view?usp=sharing
Asked by koraykoca on 2021-05-18 06:32:21 UTC
Answers
Hi, thank you for your answers. It is not a ROS package, it is a library.
I downloaded the library from here into my home folder: https://frankaemika.github.io/docs/installation_linux.html#building-libfranka
I followed the instructions on the website, then I used
cmake --install .
to install the library. But this command had not installed the library. I do not know why. Then the problem has been solved using first
sudo make install
then
sudo ldconfig
commands but I didn't understand why and what is the difference between these commands.
Asked by koraykoca on 2021-05-19 11:58:09 UTC
Comments
Is this an answer or an update?
Asked by jayess on 2021-05-20 00:00:52 UTC
Comments
Is franka a ROS package? Whether it is a ROS package or not should make a difference in how it is handled.
Asked by miura on 2021-05-19 08:18:21 UTC
Some questions that might guide you to a solution: How did you install libfranka? If you installed libfranka from source but did not install it somewhere the linker would look, cmake has no idea how to find libfranka. Does your cmakelists call out
find_package(Franka REQUIRED)
? You will probably need to tell it where to find the library as well with something likecatkin_make -DCMAKE_BUILD_TYPE=Release -DFranka_DIR:PATH=/home/libfranka/build
Asked by djchopp on 2021-05-19 08:44:36 UTC
@koraykoca please don't use an image to post text. The text within an image can't be copied/pasted. Please update your question with a copy and paste of the text instead of using an image
Asked by jayess on 2021-05-20 00:00:44 UTC