Created
July 15, 2013 05:31
-
-
Save bombilee/5997684 to your computer and use it in GitHub Desktop.
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…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
depends_on 'doxygen' | |
depends_on 'freeimage' | |
depends_on 'freetype' | |
depends_on 'libzzip' | |
depends_on 'tbb' | |
depends_on :x11 | |
def patches | |
[ | |
"https://gist.github.com/bombilee/5997666/raw/d94b548abf057949d6ab3e42e6635212dbe25d90/ogre1.8.1_osx.patch" | |
] | |
end | |
def install | |
ENV.m64 | |
cmake_args = [ | |
"-DCMAKE_OSX_ARCHITECTURES='x86_64'", | |
"-DOGRE_BUILD_PLUGIN_CG=OFF" | |
] | |
cmake_args.concat(std_cmake_args) | |
cmake_args << ".." | |
mkdir "build" do | |
system "cmake", *cmake_args | |
system "make install" | |
system "ln -s /usr/local/Cellar/ogre/1.8.1/lib/Release/Ogre.framework/Ogre /usr/local/Cellar/ogre/1.8.1/lib/libOgreMain.dylib" | |
end | |
end | |
def test | |
system "false" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment