Can't compile hello world in MacOSX

Problems building or running the engine, queries about how to use features etc.
Post Reply
teamamus
Gnoblar
Posts: 4
Joined: Mon Aug 11, 2008 1:32 pm

Can't compile hello world in MacOSX

Post by teamamus »

Hi Ogre community,

I wasn't unable to successfully compile a Hello World of Ogre in MacOSX.
I followed the instructions http://www.ogre3d.org/tikiwiki/Installi ... n=Mac+OS+X
http://www.ogre3d.org/tikiwiki/Building+Ogre and http://www.tonybhimani.com/2011/06/25/g ... sdk-1-7-3/ and without any success.

There is my macbook configurations:
  • Xcode 4.2
  • Snow Leopard 10.6.8
  • CMake 2.8 installed
I do a lot of things to make it right, but here is the summary:
  • Dependencies in the OgreSDK folder
  • Cg installed
  • Xcode 4 template installed
The followed errors:
  • gregorian_calendar.ipp 2 unreconized warnings and 1 ???? error
Please help me!
Thank you for the attention,
Best Regards.
User avatar
Kojack
OGRE Moderator
OGRE Moderator
Posts: 7157
Joined: Sun Jan 25, 2004 7:35 am
Location: Brisbane, Australia
x 534

Re: Can't compile hello world in MacOSX

Post by Kojack »

Since clairvoyance tends to have trouble with source code, it might help to actually tell us what the error is, not just the number of them.
teamamus
Gnoblar
Posts: 4
Joined: Mon Aug 11, 2008 1:32 pm

Re: Can't compile hello world in MacOSX

Post by teamamus »

Kojack wrote:Since clairvoyance tends to have trouble with source code, it might help to actually tell us what the error is, not just the number of them.
Here is it.
Attachments
Ogre Error
Ogre Error
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: Can't compile hello world in MacOSX

Post by masterfalcon »

Sorry, that still doesn't help. Could you copy the exact error and not give a screenshot where the output is truncated?

Click on it, click the ... Button to expand it and copy the results.
teamamus
Gnoblar
Posts: 4
Joined: Mon Aug 11, 2008 1:32 pm

Re: Can't compile hello world in MacOSX

Post by teamamus »

masterfalcon wrote:Sorry, that still doesn't help. Could you copy the exact error and not give a screenshot where the output is truncated?

Click on it, click the ... Button to expand it and copy the results.
Hi Mr. MasterFalcon,

The error shows that:
CpResource TemOgre/media/packs/.. /Users/jonathanpintosperafico/Library/Developer/Xcode/DerivedData/TemOgre-dhelcovazzeqybfscsffbqvldies/Build/Products/Debug/TemOgre.app/Contents/Resources/..
cd "/Users/jonathanpintosperafico/Documents/Xcode Projects/TemOgre"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks "/Users/jonathanpintosperafico/Documents/Xcode Projects/TemOgre/TemOgre/media/packs/.." /Users/jonathanpintosperafico/Library/Developer/Xcode/DerivedData/TemOgre-dhelcovazzeqybfscsffbqvldies/Build/Products/Debug/TemOgre.app/Contents/Resources

error: make directory /Users/jonathanpintosperafico/Library/Developer/Xcode/DerivedData/TemOgre-dhelcovazzeqybfscsffbqvldies/Build/Products/Debug/TemOgre.app/Contents/Resources/..: No such file or directory
And the warning doesn't show anything else than
/Users/jonathanpintosperafico/Documents/Xcode Projects/BIBLIOTECAS/OgreSDK/Dependencies/include/boost/date_time/gregorian_calendar.ipp:50:15:{50:10-50:20}: warning: equality comparison with extraneous parentheses [-Wparentheses,3]
I hope that helps now,
Thank you for the support!
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: Can't compile hello world in MacOSX

Post by masterfalcon »

Ah, I've seen that error before. In out right now but I will send you the fix when I get home. It is related to the post build script.
teamamus
Gnoblar
Posts: 4
Joined: Mon Aug 11, 2008 1:32 pm

Re: Can't compile hello world in MacOSX

Post by teamamus »

masterfalcon wrote:Ah, I've seen that error before. In out right now but I will send you the fix when I get home. It is related to the post build script.
Ok thank you very much Mr. Master Falcon.
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: Can't compile hello world in MacOSX

Post by masterfalcon »

The solution, for now, is to remove the zip and cfg files from the copy bundle resources build phase. They get copied in the post build script anyway.
Post Reply