Created
July 15, 2013 11:54
-
-
Save bombilee/5999401 to your computer and use it in GitHub Desktop.
try to fix the ogre 1.8.1 dylib shared libraries location , a ugly fix :p
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
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 | |
done | |
mkdir /usr/local/Cellar/ogre/1.8.1/lib/OGRE | |
ln -s /usr/local/Cellar/ogre/1.8.1/lib/RenderSystem_GL.1.8.1.dylib /usr/local/Cellar/ogre/1.8.1/lib/OGRE/libRenderSystem_GL.dylib | |
DIR1=/usr/local/Cellar/ogre/1.8.1/lib | |
DIR2=/usr/local/Cellar/ogre/1.8.1/lib/OGRE | |
ln -s $DIR1/Plugin_BSPSceneManager.1.8.1.dylib $DIR2/libPlugin_BSPSceneManager.dylib | |
ln -s $DIR1/Plugin_OctreeSceneManager.1.8.1.dylib $DIR2/libPlugin_OctreeSceneManager.dylib | |
ln -s $DIR1/Plugin_OctreeZone.1.8.1.dylib $DIR2/libPlugin_OctreeZone.dylib | |
ln -s $DIR1/Plugin_PCZSceneManager.1.8.1.dylib $DIR2/libPlugin_PCZSceneManager.dylib | |
ln -s $DIR1/Plugin_ParticleFX.1.8.1.dylib $DIR2/libPlugin_ParticleFX.dylib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment