I use sudo to edit init.cpp.
But whenever I add wrong syntax on that src, I can rosmake successfully on roscpp package and roscomm package.
Why roscpp & roscomm can't detect some sources are changed?
How can I compile /opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/src/libros/init.cpp ?
Thank you~
The first reason would be that there probably is a ROS_NOBUILD file, so the package will not be built.
If it were not there you would probably get permission denied problems.
You should never edit any code that is installed in /opt. If you need to edit init.cpp, checkout the source code locally and overlay the path in ROS_PACKAGE_PATH, i.e. Install ROS from source.
Other than that, I would second Mac's question: Why are you editing init.cpp?
Asked: 2011-12-15 10:23:01 -0500
Seen: 167 times
Last updated: Dec 16 '11
Subscriber and Publisher node at once in cpp
how does second term of advertise
How do I test the ROS version in C++ code?
Getting all parameter names using C++
Are there any other signal interrupts with roscpp besides the default ctrl+c sigint handler
Is it possible to avoid busy-waiting in a spinner?
Can I "overload" topic names in ROS? (Different versions by datatype)
ROS Answers is licensed under Creative Commons Attribution 3.0 Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.