impossible to link Ogre on Mac

Problems building or running the engine, queries about how to use features etc.
Ricco
Gnoblar
Posts: 6
Joined: Sat Jan 08, 2005 6:07 pm

impossible to link Ogre on Mac

Post by Ricco »

Hi all,

I don't understand how frameworks work so i need many help on mac to compile the ogre framework.

I have this error :
/Developer/Private/jam -d1 -j1 JAMBASE=/Developer/Makefiles/pbx_jamfiles/ProjectBuilderJambase JAMFILE=- build ACTION=build _DEFAULT_GCC_VERSION=3.3 BUILD_STYLE=Development CPP_HEADERMAP_FILE=/Users/ricco/Public/DVD/Dev/libs/ogrenew/Mac/XCode/OgreFramework/build/OgreFramework.build/OgreMain.build/Ogre.hmap SRCROOT=/Users/ricco/Public/DVD/Dev/libs/ogrenew/Mac/XCode/OgreFramework OBJROOT=/Users/ricco/Public/DVD/Dev/libs/ogrenew/Mac/XCode/OgreFramework/build SYMROOT=/Users/ricco/Public/DVD/Dev/libs/ogrenew/Mac/XCode/OgreFramework/build DSTROOT=/tmp/OgreFramework.dst

DynamicLibrary /Users/ricco/Public/DVD/Dev/libs/ogrenew/Mac/XCode/OgreFramework/build/Ogre.framework/Versions/A/Ogre

DynamicLibrary.LinkUsingFileList /Users/ricco/Public/DVD/Dev/libs/ogrenew/Mac/XCode/OgreFramework/build/Ogre.framework/Versions/A/Ogre
/usr/bin/g++-3.3 -o /Users/ricco/Public/DVD/Dev/libs/ogrenew/Mac/XCode/OgreFramework/build/Ogre.framework/Versions/A/Ogre "-L/Users/ricco/Public/DVD/Dev/libs/ogrenew/Mac/XCode/OgreFramework/build" "-F/Users/ricco/Public/DVD/Dev/libs/ogrenew/Mac/XCode/OgreFramework/build" "-F/Library/Frameworks" -filelist /Users/ricco/Public/DVD/Dev/libs/ogrenew/Mac/XCode/OgreFramework/build/OgreFramework.build/OgreMain.build/Objects-normal/LinkFileList "-framework" "Carbon" "-lz" "-framework" "IL" "-framework" "freetype" "-arch" "ppc" "-prebind" "-Wl,-single_module" "-dynamiclib" "-compatibility_version" "0.13.0" "-current_version" "0.13.0" -install_name "`echo "@executable_path/../Frameworks/Ogre.framework/Versions/A/Ogre" | /usr/bin/sed 's!//*!/!g'`"
ld: warning prebinding disabled because dependent library: /Library/Frameworks/IL.framework/Versions/A/IL is not prebound
ld: Undefined symbols:
Ogre::MovablePlane::_getDerivedPlane() const
/usr/bin/libtool: internal link edit command failed
...failed DynamicLibrary.LinkUsingFileList /Users/ricco/Public/DVD/Dev/libs/ogrenew/Mac/XCode/OgreFramework/build/Ogre.framework/Versions/A/Ogre ...

Thanks
User avatar
johnnyfeego
Gnoblar
Posts: 16
Joined: Thu Sep 30, 2004 6:21 am
Location: Rome, Italy...

Post by johnnyfeego »

This was an old trouble. What version are you tring to build?
Johnny Petrantoni.
Rome, Italy.
http://www.meskalina.it
OSX & WinXP user.
Ricco
Gnoblar
Posts: 6
Joined: Sat Jan 08, 2005 6:07 pm

Post by Ricco »

Ogre3d: Linux / Mac OSX Source Release 0.15.1 [Hastur]
SDL : 1.2
Cg : 1.2
DevIL : 1.6.7
freetype : framework dl in the site

I will try with the CVS version to see it...
User avatar
johnnyfeego
Gnoblar
Posts: 16
Joined: Thu Sep 30, 2004 6:21 am
Location: Rome, Italy...

Post by johnnyfeego »

I don't think the cvs will work, I'll get more troubles, anyway you need SDL 1.2.7 but this will not solve the link trouble.
we solved the _getDerivedPlane trouble some time ago, I don't remember what you need to do but if you make a forum search you will find the solution.
Johnny Petrantoni.
Rome, Italy.
http://www.meskalina.it
OSX & WinXP user.
Ricco
Gnoblar
Posts: 6
Joined: Sat Jan 08, 2005 6:07 pm

Post by Ricco »

johnnyfeego wrote:I don't think the cvs will work
it doesn't work...
johnnyfeego wrote: I'll get more troubles, anyway you need SDL 1.2.7 but this will not solve the link trouble.
It's the 1.2.8.
johnnyfeego wrote:we solved the _getDerivedPlane trouble some time ago, I don't remember what you need to do but if you make a forum search you will find the solution.
I will do that to ;)
Ricco
Gnoblar
Posts: 6
Joined: Sat Jan 08, 2005 6:07 pm

Post by Ricco »

I may be found the soltion : http://www.ogre3d.org/phpBB2/viewtopic. ... rivedplane

The ogreframework dir is deprecated :(
Ricco
Gnoblar
Posts: 6
Joined: Sat Jan 08, 2005 6:07 pm

Post by Ricco »

THE lib is compiled :)

Thank you
User avatar
johnnyfeego
Gnoblar
Posts: 16
Joined: Thu Sep 30, 2004 6:21 am
Location: Rome, Italy...

Post by johnnyfeego »

sure, but we need the cvs HEAD too!! 8)
I think that a makefile even on the mac should be the best solution, since it would be similar to the linux one and will be up-to-date more often..
what do you think guys? (maybe this should go to feature request...)
Johnny Petrantoni.
Rome, Italy.
http://www.meskalina.it
OSX & WinXP user.
Ricco
Gnoblar
Posts: 6
Joined: Sat Jan 08, 2005 6:07 pm

Post by Ricco »

CVS is good when you make update only on running version, not for not finished code, i seems but i not a great dev.

Makefile is derecated to on Mac ;)
But make some clean up in the branch will be enjoyed by users :)
User avatar
johnnyfeego
Gnoblar
Posts: 16
Joined: Thu Sep 30, 2004 6:21 am
Location: Rome, Italy...

Post by johnnyfeego »

makefile is a unix (but even win) standard!! it's the only way to go when your project is very very big..

but yes mac developers aren't so terminal.app addicted...

8)
Johnny Petrantoni.
Rome, Italy.
http://www.meskalina.it
OSX & WinXP user.