Ogre build problem in current MacPort

Problems building or running the engine, queries about how to use features etc.
Post Reply
ogreogre
Halfling
Posts: 59
Joined: Mon Aug 13, 2007 8:30 pm

Ogre build problem in current MacPort

Post by ogreogre »

Hi,
I'm trying to install Ogre from MacPort (sudo port install ogre). First I had the problem with pbxcp (I'm using Xcode 4.4.1 where pbxcp was removed) but after I copied over pbxcp from the Xcode 3 installation from another machine, I got over that problem. Now the problem is "Undefined symbols for architecture x86_64" from boost, as pasted below. In my googling of the problem, there was a thread where MasterFalcon pointed out that the boost that was linked again is the wrong one. However, the boost (and the only one on the system) is from MacPort itself (in the macport tree /opt/..., as indicated earlier in the log). I'm stumped. Has anybody else had this problem before? I'd appreciate any insights. Thanks, Steve.


:info:build Undefined symbols for architecture x86_64:
:info:build "boost::system::system_category()", referenced from:
:info:build boost::unique_lock<boost::recursive_mutex>::lock() in main.cpp.o
:info:build boost::recursive_mutex::recursive_mutex() in main.cpp.o
:info:build __GLOBAL__I_a in main.cpp.o
:info:build boost::unique_lock<boost::recursive_mutex>::lock() in libOgreMainStatic.a(OgreLogManager.cpp.o)
:info:build boost::recursive_mutex::recursive_mutex() in libOgreMainStatic.a(OgreLogManager.cpp.o)
:info:build __GLOBAL__I_a in libOgreMainStatic.a(OgreLogManager.cpp.o)
:info:build __GLOBAL__I_a in libOgreMainStatic.a(OgreString.cpp.o)
:info:build ...
:info:build "boost::system::generic_category()", referenced from:
:info:build __GLOBAL__I_a in main.cpp.o
:info:build __GLOBAL__I_a in libOgreMainStatic.a(OgreLogManager.cpp.o)
:info:build __GLOBAL__I_a in libOgreMainStatic.a(OgreString.cpp.o)
:info:build __GLOBAL__I_a in libOgreMainStatic.a(OgreVertexIndexData.cpp.o)
:info:build __GLOBAL__I_a in libOgreMainStatic.a(OgreMeshManager.cpp.o)
:info:build __GLOBAL__I_a in libOgreMainStatic.a(OgreHardwareVertexBuffer.cpp.o)
:info:build __GLOBAL__I_a in libOgreMainStatic.a(OgreMeshSerializer.cpp.o)
:info:build ...
:info:build ld: symbol(s) not found for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[2]: *** [bin/OgreMeshUpgrader] Error 1
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: Ogre build problem in current MacPort

Post by masterfalcon »

I think you're going to have to take that up with the maintainer of the MacPorts package. I don't know who it is but it's not someone on our team.
ogreogre
Halfling
Posts: 59
Joined: Mon Aug 13, 2007 8:30 pm

Re: Ogre build problem in current MacPort

Post by ogreogre »

Thanks for the reply. I have fixed the issue in a hacky way, but got it going for me. The missing symbols were because, for newer versions of boost, Boost.system libs must be linked. I have no idea where to add boost libs to Ogre cmake related files, so I had to find and sed on link.txt files in the build directory. After that I got ogre to build.
Post Reply