How to unlock catkin make ?
Hello,
I am working on ROS Indigo, and I have a problem with Catkin Make :
I work on a collaborative project, and it seems that a previous student working on this project has locked the "catkin make" command. When I add a new program in the catkin workspace and try to build it with catkin make, it seems that it doesn't do anything : I don't get an error message but nothing is built.
Does anybody know how to solve this issue ?
Thank you,
Juliette
Asked by Juliette_ROS on 2019-11-13 07:55:37 UTC
Answers
Hi Juliette,
I work on a collaborative project, and it seems that a previous student working on this project has locked the "catkin make" command
That doesn't sound right to me. What do you mean by "locked"?
Anyway, the command should be catkin_make
with an underscore instead of a space. If that doesn't solve your issue, I see two possible reasons:
As @gvdhoorn said in the comment, a blacklist could have been set. I'm not sure if this setting is saved in the workspace or in the local PC of each user. To revert to original settings, try to run
catkin_make -DCATKIN_WHITELIST_PACKAGES=""
Pay attention to any possible
CATKIN_IGNORE
files in the root of the package. Those files (without any extension) are used to ignore the package from being built, kinda like a rule on a.gitignore
file. If the package that contains the program you wrote has this kind of file in its root, delete it and repeatcatkin_make
Extra infos sources about catkin_make whitelists/blacklists and CATKIN_IGNORE
Asked by davidem on 2019-11-13 10:49:17 UTC
Comments
Hello, I tried to run catkin_make -DCATKIN_WHITELIST_PACKAGES="" but it failed when trying to build one of my new packages, giving this error message : invoking "make-j4-l4" failed
Asked by Juliette_ROS on 2019-11-14 08:50:02 UTC
I deleted catkin_ignore file in catkin_ws but it didn't change anything..
Asked by Juliette_ROS on 2019-11-14 08:58:00 UTC
You said in your question that you didn't get an error message so the whitelist might have solved that or are you still getting the same behavior as in the initial question ?
It just seems that your new packages can't compile due to some errors in your code but that doesn't seem to be related to your question anymore.
Asked by Delb on 2019-11-14 09:19:05 UTC
invoking "make-j4-l4" failed
that is not the exact error, it means that the compiling failed. edit your question and post all the log error that you receive after running catkin_make
Asked by davidem on 2019-11-14 10:06:23 UTC
Comments
Is it really
catkin_make
that you're using, orcatkin build
? The latter allows configuration of white and blacklists.catkin_make
also supports white and blacklists, but I'm not sure whether those are persisted anywhere.Asked by gvdhoorn on 2019-11-13 09:50:33 UTC
@gvdhoorn When building with
catkin_make -DCATKIN_WHITE/BLACKLIST_PACKAGES
the filebuild/catkin_generated/order_packages.py
is overwritten to keep the white/blacklisted packages.Asked by Delb on 2019-11-13 10:53:22 UTC