Fixed Ogre Templates for Xcode.pkg
Jul 15th, 2010 by song

About OGRE for Xcode Template Demo Error

Platform : Mac OS X 10.6.3
XCode 3.2.3
OGRE 1.7.1

otools check

#otool -L Ogre.app/Contents/MacOS/OgreOgre.app/Contents/MacOS/Ogre:
/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 15.0.0)
/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 152.0.0)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
@executable_path/../Library/Frameworks/Cg.framework/Cg (compatibility version 0.0.0, current version 0.0.0)
@executable_path/../Frameworks/Ogre.framework/Versions/1.7.1/Ogre (compatibility version 0.0.0, current version 1.7.1)
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
@executable_path/../Plugins/Plugin_CgProgramManager.dylib (compatibility version 0.0.0, current version 0.0.0)
@executable_path/../Plugins/Plugin_OctreeSceneManager.dylib (compatibility version 0.0.0, current version 0.0.0)
@executable_path/../Plugins/RenderSystem_GL.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 550.29.0)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 38.0.0)

Template Create Application Build Success .. but Debug This Application report Error:

dyld: Library not loaded: @executable_path/../Library/Frameworks/Cg.framework/Cg
Referenced from: /Users/song/Documents/xcode/Ogre/build/Debug/Ogre.app/Contents/MacOS/Ogre
Reason: image not found

so.. I turned on Ogre.app/Contents/ is not found Library/Frameworks
Library/Frameworks/Cg.framework

so i cd Ogre.app/Contents/ make link some folder..

cd /Users/song/Documents/xcode/Ogre/build/Debug/Ogre.app/Contents/
mkdir Library && cd Library
ln -s ../Frameworks .

application program run successes..

fixed then project

arget add -> New build Phase - New Run Script build phase
Libs="$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Library/Frameworks"
if [ ! -d "$Libs" ]; then
mkdir -p "$Libs"
cd "$Libs"
ln -s ../../Frameworks/Cg.framework .
fi
Fixed Ogre For mac osx
Jul 13th, 2010 by song

[code]
CPack: Create package using PackageMaker
CPack: Install projectsCPack: - Install project: OGRE
CPack: Compress package
CPack Error: Bad file extension specified: . Currently only .rtfd, .rtf, .html, and .txt files allowed.
CPack Error: Problem copying the resource files
CPack Error: Problem compressing the directory
CPack Error: Error when generating package: OGREmake: *** [package_buildpart_0] Error 1Command /bin/sh failed with exit code 2[/code]

The error message comes from the CPack PackageMakerGenerator regarding these
settings:

SET(CPACK_RESOURCE_FILE_LICENSE “/hg/ogre/COPYING.txt”)
SET(CPACK_RESOURCE_FILE_README “/Applications/CMake 2.8-2.app/Contents/share/cmake-2.8/Templates/CPack.GenericDescription.txt”)
SET(CPACK_RESOURCE_FILE_WELCOME “/Applications/CMake 2.8-2.app/Contents/share/cmake-2.8/Templates/CPack.GenericWelcome.txt”)
SET(CPACK_SET_DESTDIR “OFF”)

Try naming your COPYING file with a txt extension: “COPYING.txt” (Or…
configure COPYING into your binary tree as “COPYING.txt” and then reference
that as your CPACK_RESOURCE_FILE_LICENSE setting.)

These files get displayed in the installer generated by the PackageMaker
generator. CPack is trying to ensure that the installer will know how to
display the file inside its UI. That’s why the limitation on the types of
the files used for this setting with the PackageMaker generator.

SIDEBAR
»
S
I
D
E
B
A
R
«
»  Substance:WordPress   »