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

Revision history [back]

click to hide/show revision 1
initial version

The check for the Cg plugin generated by OGRE is broken for OS X. Here is a patch:

    Index: Makefile
===================================================================
--- Makefile    (revision 37811)
+++ Makefile    (working copy)
@@ -71,11 +76,19 @@
    else \
      make ogre/lib/pkgconfig/OGRE.pc; \
    fi
-   @if test ! -f ogre/lib/OGRE/Plugin_CgProgramManager.so; then \
-          echo "BUILD FAILED: Plugin_CgProgramManager.so not created.  Is nvidia-cg-toolkit installed correctly?"; \
-          exit 1; \
-        fi
+   @if test `uname` = Darwin ; then \
+       @if test ! -f ogre/lib/Plugin_CgProgramManager.dylib; then \
+           echo "BUILD FAILED: Plugin_CgProgramManager.dylib not created.   Is nvidia-cg-toolkit installed correctly?"; \
+           exit 1; \
+       fi
+   else \
+       @if test ! -f ogre/lib/OGRE/Plugin_CgProgramManager.so; then \
+           echo "BUILD FAILED: Plugin_CgProgramManager.so not created.  Is nvidia-cg-toolkit installed correctly?"; \
+           exit 1; \
+       fi
+   fi

+
 ogre/lib/pkgconfig/OGRE.pc: $(SOURCE_DIR)/CMakeLists.txt $(SOURCE_DIR)
         # building OGRE
    mkdir -p $(ROOT)/$(SOURCE_DIR)/build;

I made a ticket here: https://code.ros.org/trac/ros-pkg/ticket/5132

click to hide/show revision 2
Weird format on the link at the bottom...

The check for the Cg plugin generated by OGRE is broken for OS X. Here is a patch:

    Index: Makefile
===================================================================
--- Makefile    (revision 37811)
+++ Makefile    (working copy)
@@ -71,11 +76,19 @@
    else \
      make ogre/lib/pkgconfig/OGRE.pc; \
    fi
-   @if test ! -f ogre/lib/OGRE/Plugin_CgProgramManager.so; then \
-          echo "BUILD FAILED: Plugin_CgProgramManager.so not created.  Is nvidia-cg-toolkit installed correctly?"; \
-          exit 1; \
-        fi
+   @if test `uname` = Darwin ; then \
+       @if test ! -f ogre/lib/Plugin_CgProgramManager.dylib; then \
+           echo "BUILD FAILED: Plugin_CgProgramManager.dylib not created.   Is nvidia-cg-toolkit installed correctly?"; \
+           exit 1; \
+       fi
+   else \
+       @if test ! -f ogre/lib/OGRE/Plugin_CgProgramManager.so; then \
+           echo "BUILD FAILED: Plugin_CgProgramManager.so not created.  Is nvidia-cg-toolkit installed correctly?"; \
+           exit 1; \
+       fi
+   fi

+
 ogre/lib/pkgconfig/OGRE.pc: $(SOURCE_DIR)/CMakeLists.txt $(SOURCE_DIR)
         # building OGRE
    mkdir -p $(ROOT)/$(SOURCE_DIR)/build;

I made a ticket here: https://code.ros.org/trac/ros-pkg/ticket/5132

The check for the Cg plugin generated by OGRE is broken for OS X. Here is a patch:

  Index: Makefile
===================================================================
--- Makefile    (revision 37811)
+++ Makefile    (working copy)
@@ -71,11 +76,19 @@
    else \
      make ogre/lib/pkgconfig/OGRE.pc; \
    fi
-   @if test ! -f ogre/lib/OGRE/Plugin_CgProgramManager.so; then \
-          echo "BUILD FAILED: Plugin_CgProgramManager.so not created.  Is nvidia-cg-toolkit installed correctly?"; \
-          exit 1; \
-        fi
+   @if test `uname` = Darwin ; then \
+       @if if test ! -f ogre/lib/Plugin_CgProgramManager.dylib; then \
+           echo "BUILD FAILED: Plugin_CgProgramManager.dylib not created.   Is nvidia-cg-toolkit installed correctly?"; \
+           exit 1; \
+       fi
fi \
+   else \
+       @if if test ! -f ogre/lib/OGRE/Plugin_CgProgramManager.so; then \
+           echo "BUILD FAILED: Plugin_CgProgramManager.so not created.  Is nvidia-cg-toolkit installed correctly?"; \
+           exit 1; \
+       fi
fi \
+   fi

+
 ogre/lib/pkgconfig/OGRE.pc: $(SOURCE_DIR)/CMakeLists.txt $(SOURCE_DIR)
         # building OGRE
    mkdir -p $(ROOT)/$(SOURCE_DIR)/build;

I made a ticket here: https://code.ros.org/trac/ros-pkg/ticket/5132

EDIT: Had to fix a syntax error on the patch.