Error building Ogre 1.6 under Mac OS X

Problems building or running the engine, queries about how to use features etc.
atorkhov
Gnoblar
Posts: 24
Joined: Sat Sep 13, 2008 5:29 pm
Location: Moscow, Russia

Error building Ogre 1.6 under Mac OS X

Post by atorkhov »

When building ogre 1.6 under Mac OS X I'm getting the following error:

Code: Select all

Processing /Users/worldforge/build/ogre/Mac/Ogre/../build/Debug/Plugin_OctreeZone.bundle/Contents/Info.plist "/Us
ers/steve/projects/Shoggoth/ogre/Mac/Ogre/./plist/OctreeZone Plugin-Info.plist"
    mkdir /Users/worldforge/build/ogre/Mac/Ogre/../build/Debug/Plugin_OctreeZone.bundle/Contents
    cd /Users/worldforge/build/ogre/Mac/Ogre
    <com.apple.tools.info-plist-utility> "/Users/steve/projects/Shoggoth/ogre/Mac/Ogre/./plist/OctreeZone Plugin-
Info.plist" -expandbuildsettings -o /Users/worldforge/build/ogre/Mac/Ogre/../build/Debug/Plugin_OctreeZone.bundle
/Contents/Info.plist
error: The file OctreeZone Plugin-Info.plist does not exist.
It refers to some hardcoded path in /Users/steve/projects... How to fix it?
bmakuch
Gnoblar
Posts: 1
Joined: Sat Nov 08, 2008 10:24 pm

Post by bmakuch »

I just had to deal with this problem in another project. This is probably a hardcoded path in on of the project.pbxproj file inside the xcode project.

Open up terminal and go the the root of your Ogre source tree. Use grep to find the file with the problem:

$ grep -R "steve" *

This will do a recursive search of the directory for the word steve. You may want to use "Shoggoth" instead if the first search doesn't narrow it down enough.

You should see the matching files with the filename, a colon, and then part of the matching line.

You can then use pico from shell to edit the file:

$ pico <filepath found by grep>

Use ctl+W to locate your search term and correct the path to the plist. There should be others in that file which will give you the right path prefix. Make your change and then ctrl+x to exit, press 'y' to save and enter to accept the filename.

Go back to xcode and try to build again.

If there are multiple deployment targets, you may need to correct the same problem again.
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 67

Post by sinbad »

Argh, I hate XCode for putting absolute paths in by default. :x

I'll sort this out for next time.
cloud
Gremlin
Posts: 196
Joined: Tue Aug 08, 2006 6:45 pm
x 14

Post by cloud »

If you havn't figured this out already atorkhov, all you need to do is get info in Xcode on the OctreeZone plugin go to build tab scroll down to packaging section change the path for the feild info.plist File to ./plist/OctreeZone Plugin-Info.plist, just like the others.