Page 1 of 1

Can't compile hello world in MacOSX

Posted: Sat Mar 24, 2012 9:56 pm
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.

Re: Can't compile hello world in MacOSX

Posted: Sat Mar 24, 2012 10:14 pm
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.

Re: Can't compile hello world in MacOSX

Posted: Sat Mar 24, 2012 11:38 pm
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.

Re: Can't compile hello world in MacOSX

Posted: Sun Mar 25, 2012 12:31 am
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.

Re: Can't compile hello world in MacOSX

Posted: Sun Mar 25, 2012 1:24 am
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!

Re: Can't compile hello world in MacOSX

Posted: Sun Mar 25, 2012 2:56 am
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.

Re: Can't compile hello world in MacOSX

Posted: Sun Mar 25, 2012 1:27 pm
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.

Re: Can't compile hello world in MacOSX

Posted: Sun Mar 25, 2012 7:20 pm
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.