Can't compile hello world in MacOSX

Problems building or running the engine, queries about how to use features etc.

Can't compile hello world in MacOSX

Postby teamamus » Sat Mar 24, 2012 9:56 pm

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/Installing+the+Ogre+SDK?tikiversion=Mac+OS+X
http://www.ogre3d.org/tikiwiki/Building+Ogre and http://www.tonybhimani.com/2011/06/25/guide-to-installing-ogre3d-on-macosx-xcode-ogre-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.
teamamus
Gnoblar
 
Posts: 4
Kudos: 0
Joined: 11 Aug 2008

Re: Can't compile hello world in MacOSX

Postby Kojack » Sat Mar 24, 2012 10:14 pm

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.
User avatar
Kojack
OGRE Moderator
OGRE Moderator
 
Posts: 6467
Kudos: 411
Joined: 25 Jan 2004
Location: Brisbane, Australia

Re: Can't compile hello world in MacOSX

Postby teamamus » Sat Mar 24, 2012 11:38 pm

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.jpg
Ogre Error
teamamus
Gnoblar
 
Posts: 4
Kudos: 0
Joined: 11 Aug 2008

Re: Can't compile hello world in MacOSX

Postby masterfalcon » Sun Mar 25, 2012 12:31 am

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.
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
 
Posts: 4264
Kudos: 129
Joined: 25 Feb 2007
Location: Bloomington, MN

Re: Can't compile hello world in MacOSX

Postby teamamus » Sun Mar 25, 2012 1:24 am

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!
teamamus
Gnoblar
 
Posts: 4
Kudos: 0
Joined: 11 Aug 2008

Re: Can't compile hello world in MacOSX

Postby masterfalcon » Sun Mar 25, 2012 2:56 am

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.
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
 
Posts: 4264
Kudos: 129
Joined: 25 Feb 2007
Location: Bloomington, MN

Re: Can't compile hello world in MacOSX

Postby teamamus » Sun Mar 25, 2012 1:27 pm

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.
teamamus
Gnoblar
 
Posts: 4
Kudos: 0
Joined: 11 Aug 2008

Re: Can't compile hello world in MacOSX

Postby masterfalcon » Sun Mar 25, 2012 7:20 pm

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.
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
 
Posts: 4264
Kudos: 129
Joined: 25 Feb 2007
Location: Bloomington, MN


Return to Help

Who is online

Users browsing this forum: Google [Bot] and 8 guests