ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
-1

how to specify gcc options while building ROS programs

asked 2011-07-10 16:19:18 -0600

HZhu gravatar image

updated 2011-07-10 17:41:47 -0600

Hi All, When I compile my (non-ROS) programs with the third party libraries, I need to provide gcc with some options as well as paths to include head files and libraries. Usually this is how the gcc command looks like:

gcc -Imy_include_files_path -SOME_OPTIONS -Lmy_library_files_path source.c

Now I want to use these third party libraries with ROS, how can I specify those options in ROS?

With Many Thanks,

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
3

answered 2011-07-10 18:56:44 -0600

Lorenz gravatar image

updated 2011-07-10 18:59:45 -0600

I think this has been answered here already.

The ROS build is based on CMake. You can find a basic tutorial on CMake here.

edit flag offensive delete link more
0

answered 2017-02-18 01:16:10 -0600

Wiew gravatar image

Hi there!,

I have similiar question like this topic. I tried to compile my ROS project using eclipse on RPI. I am not able to install eclipse using manual ( http://wiki.ros.org/IDEs ) because there is no ecplise sources for my RPI whcih i am able to compile) -then i installed eclipse using apt-get (with c/c++ support).

I tried to write my sw using ros.h and sensor_msgs.h. It is possible to compile my SW but Linker says ros::init undefined reference - Linker have no libraries.

Do you have which library i must use? I am not able to find libraries like roslibrary.so etc..

Thank you for your response.

Wiew

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-07-10 16:19:18 -0600

Seen: 2,619 times

Last updated: Feb 18 '17