Closed wkentaro closed 8 years ago
@rhaschke Thank you for the quick reply. I have worked around and reached the solution as the commit. To build this package on OS X (10.11), it is necessary to find X11.
-lglut
not found error% locate libglut
/opt/X11/lib/libglut.3.dylib
/opt/X11/lib/libglut.dylib
GL/glut.h
not found error% locate GL/glut.h
/Developer/NVIDIA/CUDA-7.5/extras/CUPTI/include/GL/glut.h
/Developer/NVIDIA/CUDA-7.5/samples/common/inc/GL/glut.h
/opt/X11/include/GL/glut.h
I see. However, as this is obviously a bug upstream (in package OpenGL or glut), can I ask you to try another thing:
As rviz uses the same find_package(OpenGL)
without any APPLE
-specific settings, could you please try to build rviz and report on the results there?
Sorry for late reply.
It seems that GL/glut.h
is not used in rviz.
Maybe I'm missing something, but using link_directories
is discouraged in ROS (catkin_lint
complains).
Now this request added a new link_directories
just recently.
Is there no official way to add folders of dynamic libraries to the search path in OS X?
Do we have to provide these link_directories
commands to support apple?
Just last week I removed some of them from moveit_core.
Setting hard-coded paths isn't a good idea. Why does
succeed, but doesn't set the appropriate variables? Please check the cmake files of OpenGL / GLUT and fix them instead.