[MacPorts] #38624: Ogre build fails

MacPorts noreply at macports.org
Tue Apr 9 13:52:47 PDT 2013


#38624: Ogre build fails
---------------------+---------------------------
  Reporter:  glen@…  |      Owner:  marin.saric@…
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.1.3
Resolution:          |   Keywords:
      Port:  ogre    |
---------------------+---------------------------

Comment (by glen@…):

 I'm still banging my head against this, and have made some progress.

 Note, first, that similar errors to the one originally reported are known
 regarding CMake 2.8.10. See, e.g., the following thread on the CMake
 mailing list:

 http://www.mail-archive.com/cmake@cmake.org/msg44357.html

 It appears from the thread that something in python distutils is
 (incorrectly?) setting the value of CMAKE_OSX_SYSROOT. In the thread, the
 reported fix is to do something like:

 {{{
 $ export SDKROOT=/Developer/SDKs/MacOSX10.6.sdk
 }}}

 which theoretically tells CMake where the proper SDK is. Of course, the
 entire /Developer directory went away with XCode 4.3, but the current
 equivalent would seem to be:

 {{{
 $ export
 SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
 }}}

 Unfortunately, this does not seem to solve the problem; the configure
 still halts for me with the same error. However, simply ignoring the error
 and re-issuing:

 {{{
 $ sudo port configure ogre
 }}}

 after the first configure fails (apparently) allows the configure to
 complete. But then the build fails, complaining that there is no "pbxcp"
 command. The reason for this is that as of (I think) XCode 4.4, the pbxcp
 command disappeared. So I have been doing the following:

 {{{
 $ sudo port clean ogre
 $ sudo port fetch ogre
 $ sudo port extract ogre
 $ sudo port patch ogre
 $ cd
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/graphics/ogre/work
 $ sudo find . -name CMakeLists.txt -exec sed -E -i bak
 "s:/Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp
 [ARGS ]*-exclude .DS_Store -exclude .hg -exclude \'CMakeLists.txt\'
 -resolve-src-symlinks:ditto:" {} \;
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 replaces calls to pbxcp with calls to ditto in all CMakeLists.txt files

 $ sudo port configure
 }}}

 the configure fails at this point with the original error. However, as
 noted above, if I just ignore this error and do

 {{{
 $ sudo port configure ogre
 $ sudo port build ogre
 }}}

 the configure completes and the build gets a fairly long way. Eventually,
 it halts with:


 {{{
 :info:build /usr/bin/ranlib ../../lib/libRenderSystem_GLStatic.a
 :info:build /usr/bin/ranlib: file:
 ../../lib/libRenderSystem_GLStatic.a(OgreOSXCarbonWindow.cpp.o) has no
 symbols
 }}}

 Still working on this one.

-- 
Ticket URL: <https://trac.macports.org/ticket/38624#comment:6>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list