Ask Your Question

No such file or directory error - Library related

asked 2021-05-18 06:33:32 -0500

koraykoca gravatar image

updated 2021-05-19 08:15:37 -0500

miura gravatar image

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



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:

edit retag flag offensive close merge delete


Is franka a ROS package? Whether it is a ROS package or not should make a difference in how it is handled.

miura gravatar image miura  ( 2021-05-19 08:18:21 -0500 )edit

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 like catkin_make -DCMAKE_BUILD_TYPE=Release -DFranka_DIR:PATH=/home/libfranka/build

djchopp gravatar image djchopp  ( 2021-05-19 08:44:36 -0500 )edit

@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

jayess gravatar image jayess  ( 2021-05-20 00:00:44 -0500 )edit

1 Answer

Sort by » oldest newest most voted

answered 2021-05-19 11:58:09 -0500

koraykoca gravatar image

updated 2021-05-19 12:03:22 -0500

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:

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


sudo ldconfig

commands but I didn't understand why and what is the difference between these commands.

edit flag offensive delete link more


Is this an answer or an update?

jayess gravatar image jayess  ( 2021-05-20 00:00:52 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2021-05-18 06:32:21 -0500

Seen: 150 times

Last updated: May 19 '21