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

hanneshdc's profile - activity

2012-09-07 00:05:59 -0500 received badge  Famous Question (source)
2012-09-07 00:05:59 -0500 received badge  Notable Question (source)
2012-07-06 05:58:48 -0500 received badge  Popular Question (source)
2011-09-25 20:09:15 -0500 received badge  Scholar (source)
2011-09-25 17:15:41 -0500 marked best answer Building an executable with OpenGL

If you're writing a library which will be used from another package in your manifest.xml you should export required flags, e.g. <export> <cpp lflags="-lGL -lglut" /> </export>

For the a binary in your CMakeLists.txt you could add target_link_libraries(yourprogram GL glut)

or

link_libraries(GL glut)

2011-09-23 04:51:18 -0500 asked a question Building an executable with OpenGL

I have a C++ program which requires glut and OpenGL to run. If I was compiling without ROS, I would add the compiler flags -lGL and -lGLU. However when using rosmake and CMakeLists I obviously can't.

How can I make rosmake link to external system libraries?