Skip to content

Instantly share code, notes, and snippets.

@bombilee
bombilee / ogre_1.8.1_dylib_fix.sh
Created July 15, 2013 11:54
try to fix the ogre 1.8.1 dylib shared libraries location , a ugly fix :p
for f in /usr/local/Cellar/ogre/1.8.1/lib/*.1.8.1.dylib
do
echo $f
sudo install_name_tool -change @executable_path/../Frameworks/Ogre.framework/Versions/1.8.1/Ogre /usr/local/Cellar/ogre/1.8.1/lib/Release/Ogre.framework/Ogre $f
sudo install_name_tool -change @executable_path/../Plugins/Plugin_PCZSceneManager.1.8.1.dylib /usr/local/Cellar/ogre/1.8.1/lib/Plugin_PCZSceneManager.1.8.1.dylib $f
sudo install_name_tool -change @executable_path/../Components/libOgrePaging.1.8.1.dylib /usr/local/Cellar/ogre/1.8.1/lib/libOgrePaging.1.8.1.dylib $f
@bombilee
bombilee / ogre.rb
Created July 15, 2013 05:31
This replace the /usr/local/Library/Taps/ros-groovy/ogre.rb So we can use ogre 1.8.1 to compile rviz to fix the invalid drawable problem when display image Ogre 1.8.1 use framework so I make a symbolic link for libOgreMain.dylib reference https://github.com/ros-visualization/rviz/issues/646 , http://answers.ros.org/question/64346/rviz-does-not-d…
require 'formula'
class Ogre < Formula
homepage 'http://www.ogre3d.org/'
url 'https://sourceforge.net/projects/ogre/files/ogre/1.8/1.8.1/ogre_src_v1-8-1.tar.bz2'
version '1.8.1'
sha1 'd6153cacda24361a81e7d0a6bf9aa641ad9dd650'
depends_on 'boost'
depends_on 'cmake' => :build
diff --git a/CMake/Templates/OGRE.pc.in b/CMake/Templates/OGRE.pc.in
index 15e827f..65a3089 100644
--- a/CMake/Templates/OGRE.pc.in
+++ b/CMake/Templates/OGRE.pc.in
@@ -8,5 +8,5 @@ Name: OGRE
Description: Object-Oriented Graphics Rendering Engine
Version: @OGRE_VERSION@
URL: http://www.ogre3d.org
-Libs: -L${libdir} -lOgreMain@OGRE_LIB_SUFFIX@ @OGRE_ADDITIONAL_LIBS@
+Libs: -L${libdir} -lOgreMain@OGRE_LIB_SUFFIX@ @OGRE_ADDITIONAL_LIBS@ -F${libdir}/Release -framework Ogre
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>gitlab.puma</string>
<key>ProgramArguments</key>
<array>
#!/usr/bin/env python
import roslib
roslib.load_manifest("sensor_msgs")
roslib.load_manifest("message_filters")
roslib.load_manifest("rxtools")
import rospy
import rxtools
import rxtools.rosplot
import sys