Opened 12 years ago

Closed 3 years ago

#38624 closed defect (fixed)

Ogre build fails

Reported by: glen@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: cooljeanius (Eric Gallager), kyle.j.kauffman@…, arto@…, macports@…
Port: ogre

Description

Using OSX 10.8.2, Ogre install fails. Logfile attached.

> sudo port install ogre
.
.
.

--->  Configuring ogre
Error: org.macports.configure for port ogre returned: configure failure: command execution failed
Please see the log file for port ogre for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ogre/ogre/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port ogre failed

Attachments (4)

main.log (70.4 KB) - added by glen@… 12 years ago.
main.log
main.2.log (532.1 KB) - added by glen@… 12 years ago.
buildfile.txt (862.9 KB) - added by glen@… 12 years ago.
verbose build log using cmake 2.8.8 and replacement of pbxcp with ditto
main.3.log (793.2 KB) - added by glen@… 12 years ago.
main log using cmake 2.8.8 and replacing spbcx or whatever the hell it is with ditto

Change History (18)

Changed 12 years ago by glen@…

Attachment: main.log added

main.log

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: ogre removed
Owner: changed from macports-tickets@… to marin.saric@…

comment:2 Changed 12 years ago by glen@…

Sorry, I'm using OSX 10.8.3, not 10.8.2 as reported in the original ticket. The machine is a mid-2012 11 inch MacBook Air.

comment:3 Changed 12 years ago by cooljeanius (Eric Gallager)

Relevant part of log:

:info:configure -----------------------------------------------------------------------------
:info:configure -- The following OPTIONAL packages could NOT be located on your system.
:info:configure -- Consider installing them to enable more features from this software.
:info:configure + POCO: POCO framework <http://pocoproject.org/>
:info:configure + tbb: Threading Building Blocks <http://www.threadingbuildingblocks.org/>
:info:configure + CppUnit: Library for performing unit tests <http://cppunit.sourceforge.net>
:info:configure -----------------------------------------------------------------------------
:info:configure 
:info:configure -- Found BZip2: /opt/local/lib/libbz2.a (found version "1.0.6") 
:info:configure -- Looking for BZ2_bzCompressInit in /opt/local/lib/libbz2.a
:info:configure CMake Error at /opt/local/share/cmake-2.8/Modules/Platform/Darwin.cmake:190 (message):
:info:configure   CMAKE_OSX_DEPLOYMENT_TARGET is '10.5' but CMAKE_OSX_SYSROOT:
:info:configure 
:info:configure    "/"
:info:configure 
:info:configure   is not set to a MacOSX SDK with a recognized version.  Either set
:info:configure   CMAKE_OSX_SYSROOT to a valid SDK or set CMAKE_OSX_DEPLOYMENT_TARGET to
:info:configure   empty.
:info:configure Call Stack (most recent call first):
:info:configure   /opt/local/share/cmake-2.8/Modules/CMakeSystemSpecificInformation.cmake:36 (include)
:info:configure   CMakeLists.txt:3 (PROJECT)
:info:configure 
:info:configure 
:info:configure CMake Error: Internal CMake error, TryCompile configure of cmake failed
:info:configure -- Configuring incomplete, errors occurred!
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ogre/ogre/work/ogre_src_v1-7-3" && /opt/local/bin/cmake -DCMAKE_INSTALL_PREFIX=/opt/local -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_INSTALL_NAME_DIR=/opt/local/lib -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_MODULE_PATH=/opt/local/share/cmake/modules -DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev -DMACPORTS=TRUE -DOGRE_BUILD_TOOLS=TRUE -DOGRE_COPY_DEPENDENICES=FALSE -DOGRE_INSTALL_DEPENDENCIES=FALSE -DOGRE_BUILD_SAMPLES=TRUE -DOGRE_INSTALL_DOCS=TRUE -DOGRE_INSTALL_SAMPLES=TRUE -DOGRE_INSTALL_SAMPLES_SOURCE=TRUE -DOGRE_INSTALL_TOOLS=TRUE -DOGRE_STATIC=TRUE -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_SYSROOT=/ -DCMAKE_OSX_DEPLOYMENT_TARGET="" 

comment:4 Changed 12 years ago by glen@…

NB that executing

> sudo port install ogre
... (failure messages)
> export CMAKE_OSX_DEPLOYMENT_TARGET=
> sudo port install ogre

i.e. manually setting the value of CMAKE_OSX_DEPLOYMENT_TARGET to null, allows the build to succeed, but it then fails further along. Second log file attached.

Changed 12 years ago by glen@…

Attachment: main.2.log added

comment:5 in reply to:  4 Changed 12 years ago by glen@…

Relevant part of log:

:info:build Copying OS X content lib/Resources/ogrelogo.png
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ogre/ogre/work/ogre_src_v1-7-3/OgreMain && /opt/local/bin/cmake -P CMakeFiles/OgreMain.dir/cmake_clean_target.cmake
:info:build /opt/local/bin/cmake -E copy /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ogre/ogre/work/ogre_src_v1-7-3/OgreMain/include/OSX/ogrelogo.png lib/Resources/ogrelogo.png
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ogre/ogre/work/ogre_src_v1-7-3/OgreMain && /opt/local/bin/cmake -E cmake_link_script CMakeFiles/OgreMain.dir/link.txt --verbose=1
:info:build /usr/bin/ar cr ../lib/libOgreMainStatic.a  CMakeFiles/OgreMain.dir/src/OgreAlignedAllocator.cpp.o CMakeFiles/OgreMain.dir/src/OgreAnimable.cpp.o CMakeFiles/OgreMain.dir/src/OgreAnimation.cpp.o CMakeFiles/OgreMain.dir/src/OgreAnimationState.cpp.o CMakeFiles/OgreMain.dir/src/OgreAnimationTrack.cpp.o CMakeFiles/OgreMain.dir/src/OgreArchiveManager.cpp.o CMakeFiles/OgreMain.dir/src/OgreAutoParamDataSource.cpp.o CMakeFiles/OgreMain.dir/src/OgreAxisAlignedBox.cpp.o CMakeFiles/OgreMain.dir/src/OgreBillboard.cpp.o CMakeFiles/OgreMain.dir/src/OgreBillboardChain.cpp.o CMakeFiles/OgreMain.dir/src/OgreBillboardParticleRenderer.cpp.o CMakeFiles/OgreMain.dir/src/OgreBillboardSet.cpp.o CMakeFiles/OgreMain.dir/src/OgreBone.cpp.o CMakeFiles/OgreMain.dir/src/OgreBorderPanelOverlayElement.cpp.o CMakeFiles/OgreMain.dir/src/OgreCamera.cpp.o CMakeFiles/OgreMain.dir/src/OgreCodec.cpp.o CMakeFiles/OgreMain.dir/src/OgreColourValue.cpp.o CMakeFiles/OgreMain.dir/src/OgreCommon.cpp.o CMakeFiles/OgreMain.dir/src/OgreCompositionPass.cpp.o CMakeFiles/OgreMain.dir/src/OgreCompositionTargetPass.cpp.o CMakeFiles/OgreMain.dir/src/OgreCompositionTechnique.cpp.o CMakeFiles/OgreMain.dir/src/OgreCompositor.cpp.o CMakeFiles/OgreMain.dir/src/OgreCompositorChain.cpp.o CMakeFiles/OgreMain.dir/src/OgreCompositorInstance.cpp.o CMakeFiles/OgreMain.dir/src/OgreCompositorManager.cpp.o CMakeFiles/OgreMain.dir/src/OgreConfigFile.cpp.o CMakeFiles/OgreMain.dir/src/OgreControllerManager.cpp.o CMakeFiles/OgreMain.dir/src/OgreConvexBody.cpp.o CMakeFiles/OgreMain.dir/src/OgreDataStream.cpp.o CMakeFiles/OgreMain.dir/src/OgreDefaultHardwareBufferManager.cpp.o CMakeFiles/OgreMain.dir/src/OgreDefaultSceneQueries.cpp.o CMakeFiles/OgreMain.dir/src/OgreDistanceLodStrategy.cpp.o CMakeFiles/OgreMain.dir/src/OgreDynLib.cpp.o CMakeFiles/OgreMain.dir/src/OgreDynLibManager.cpp.o CMakeFiles/OgreMain.dir/src/OgreEdgeListBuilder.cpp.o CMakeFiles/OgreMain.dir/src/OgreEntity.cpp.o CMakeFiles/OgreMain.dir/src/OgreException.cpp.o CMakeFiles/OgreMain.dir/src/OgreExternalTextureSource.cpp.o CMakeFiles/OgreMain.dir/src/OgreExternalTextureSourceManager.cpp.o CMakeFiles/OgreMain.dir/src/OgreFileSystem.cpp.o CMakeFiles/OgreMain.dir/src/OgreFont.cpp.o CMakeFiles/OgreMain.dir/src/OgreFontManager.cpp.o CMakeFiles/OgreMain.dir/src/OgreFrustum.cpp.o CMakeFiles/OgreMain.dir/src/OgreGpuProgram.cpp.o CMakeFiles/OgreMain.dir/src/OgreGpuProgramManager.cpp.o CMakeFiles/OgreMain.dir/src/OgreGpuProgramParams.cpp.o CMakeFiles/OgreMain.dir/src/OgreGpuProgramUsage.cpp.o CMakeFiles/OgreMain.dir/src/OgreHardwareBufferManager.cpp.o CMakeFiles/OgreMain.dir/src/OgreHardwareIndexBuffer.cpp.o CMakeFiles/OgreMain.dir/src/OgreHardwareOcclusionQuery.cpp.o CMakeFiles/OgreMain.dir/src/OgreHardwarePixelBuffer.cpp.o CMakeFiles/OgreMain.dir/src/OgreHardwareVertexBuffer.cpp.o CMakeFiles/OgreMain.dir/src/OgreHighLevelGpuProgram.cpp.o CMakeFiles/OgreMain.dir/src/OgreHighLevelGpuProgramManager.cpp.o CMakeFiles/OgreMain.dir/src/OgreImage.cpp.o CMakeFiles/OgreMain.dir/src/OgreInstancedGeometry.cpp.o CMakeFiles/OgreMain.dir/src/OgreKeyFrame.cpp.o CMakeFiles/OgreMain.dir/src/OgreLight.cpp.o CMakeFiles/OgreMain.dir/src/OgreLodStrategy.cpp.o CMakeFiles/OgreMain.dir/src/OgreLodStrategyManager.cpp.o CMakeFiles/OgreMain.dir/src/OgreLog.cpp.o CMakeFiles/OgreMain.dir/src/OgreLogManager.cpp.o CMakeFiles/OgreMain.dir/src/OgreManualObject.cpp.o CMakeFiles/OgreMain.dir/src/OgreMaterial.cpp.o CMakeFiles/OgreMain.dir/src/OgreMaterialManager.cpp.o CMakeFiles/OgreMain.dir/src/OgreMaterialSerializer.cpp.o CMakeFiles/OgreMain.dir/src/OgreMath.cpp.o CMakeFiles/OgreMain.dir/src/OgreMatrix3.cpp.o CMakeFiles/OgreMain.dir/src/OgreMatrix4.cpp.o CMakeFiles/OgreMain.dir/src/OgreMemoryAllocatedObject.cpp.o CMakeFiles/OgreMain.dir/src/OgreMemoryNedAlloc.cpp.o CMakeFiles/OgreMain.dir/src/OgreMemoryNedPooling.cpp.o CMakeFiles/OgreMain.dir/src/OgreMemoryTracker.cpp.o CMakeFiles/OgreMain.dir/src/OgreMesh.cpp.o CMakeFiles/OgreMain.dir/src/OgreMeshManager.cpp.o CMakeFiles/OgreMain.dir/src/OgreMeshSerializer.cpp.o CMakeFiles/OgreMain.dir/src/OgreMeshSerializerImpl.cpp.o CMakeFiles/OgreMain.dir/src/OgreMovableObject.cpp.o CMakeFiles/OgreMain.dir/src/OgreMovablePlane.cpp.o CMakeFiles/OgreMain.dir/src/OgreNode.cpp.o CMakeFiles/OgreMain.dir/src/OgreNumerics.cpp.o CMakeFiles/OgreMain.dir/src/OgreOptimisedUtil.cpp.o CMakeFiles/OgreMain.dir/src/OgreOptimisedUtilGeneral.cpp.o CMakeFiles/OgreMain.dir/src/OgreOptimisedUtilSSE.cpp.o CMakeFiles/OgreMain.dir/src/OgreOverlay.cpp.o CMakeFiles/OgreMain.dir/src/OgreOverlayContainer.cpp.o CMakeFiles/OgreMain.dir/src/OgreOverlayElement.cpp.o CMakeFiles/OgreMain.dir/src/OgreOverlayElementCommands.cpp.o CMakeFiles/OgreMain.dir/src/OgreOverlayElementFactory.cpp.o CMakeFiles/OgreMain.dir/src/OgreOverlayManager.cpp.o CMakeFiles/OgreMain.dir/src/OgrePanelOverlayElement.cpp.o CMakeFiles/OgreMain.dir/src/OgreParticle.cpp.o CMakeFiles/OgreMain.dir/src/OgreParticleEmitter.cpp.o CMakeFiles/OgreMain.dir/src/OgreParticleEmitterCommands.cpp.o CMakeFiles/OgreMain.dir/src/OgreParticleIterator.cpp.o CMakeFiles/OgreMain.dir/src/OgreParticleSystem.cpp.o CMakeFiles/OgreMain.dir/src/OgreParticleSystemManager.cpp.o CMakeFiles/OgreMain.dir/src/OgrePass.cpp.o CMakeFiles/OgreMain.dir/src/OgrePatchMesh.cpp.o CMakeFiles/OgreMain.dir/src/OgrePatchSurface.cpp.o CMakeFiles/OgreMain.dir/src/OgrePixelCountLodStrategy.cpp.o CMakeFiles/OgreMain.dir/src/OgrePixelFormat.cpp.o CMakeFiles/OgreMain.dir/src/OgrePlane.cpp.o CMakeFiles/OgreMain.dir/src/OgrePlatformInformation.cpp.o CMakeFiles/OgreMain.dir/src/OgrePolygon.cpp.o CMakeFiles/OgreMain.dir/src/OgrePose.cpp.o CMakeFiles/OgreMain.dir/src/OgrePrecompiledHeaders.cpp.o CMakeFiles/OgreMain.dir/src/OgrePredefinedControllers.cpp.o CMakeFiles/OgreMain.dir/src/OgrePrefabFactory.cpp.o CMakeFiles/OgreMain.dir/src/OgreProfiler.cpp.o CMakeFiles/OgreMain.dir/src/OgreProgressiveMesh.cpp.o CMakeFiles/OgreMain.dir/src/OgreQuaternion.cpp.o CMakeFiles/OgreMain.dir/src/OgreRectangle2D.cpp.o CMakeFiles/OgreMain.dir/src/OgreRenderQueue.cpp.o CMakeFiles/OgreMain.dir/src/OgreRenderQueueInvocation.cpp.o CMakeFiles/OgreMain.dir/src/OgreRenderQueueSortingGrouping.cpp.o CMakeFiles/OgreMain.dir/src/OgreRenderSystem.cpp.o CMakeFiles/OgreMain.dir/src/OgreRenderSystemCapabilities.cpp.o CMakeFiles/OgreMain.dir/src/OgreRenderSystemCapabilitiesManager.cpp.o CMakeFiles/OgreMain.dir/src/OgreRenderSystemCapabilitiesSerializer.cpp.o CMakeFiles/OgreMain.dir/src/OgreRenderTarget.cpp.o CMakeFiles/OgreMain.dir/src/OgreRenderTexture.cpp.o CMakeFiles/OgreMain.dir/src/OgreRenderToVertexBuffer.cpp.o CMakeFiles/OgreMain.dir/src/OgreRenderWindow.cpp.o CMakeFiles/OgreMain.dir/src/OgreResource.cpp.o CMakeFiles/OgreMain.dir/src/OgreResourceBackgroundQueue.cpp.o CMakeFiles/OgreMain.dir/src/OgreResourceGroupManager.cpp.o CMakeFiles/OgreMain.dir/src/OgreResourceManager.cpp.o CMakeFiles/OgreMain.dir/src/OgreRibbonTrail.cpp.o CMakeFiles/OgreMain.dir/src/OgreRoot.cpp.o CMakeFiles/OgreMain.dir/src/OgreRotationSpline.cpp.o CMakeFiles/OgreMain.dir/src/OgreSceneManager.cpp.o CMakeFiles/OgreMain.dir/src/OgreSceneManagerEnumerator.cpp.o CMakeFiles/OgreMain.dir/src/OgreSceneNode.cpp.o CMakeFiles/OgreMain.dir/src/OgreSceneQuery.cpp.o CMakeFiles/OgreMain.dir/src/OgreScriptCompiler.cpp.o CMakeFiles/OgreMain.dir/src/OgreScriptLexer.cpp.o CMakeFiles/OgreMain.dir/src/OgreScriptParser.cpp.o CMakeFiles/OgreMain.dir/src/OgreScriptTranslator.cpp.o CMakeFiles/OgreMain.dir/src/OgreSerializer.cpp.o CMakeFiles/OgreMain.dir/src/OgreShadowCameraSetup.cpp.o CMakeFiles/OgreMain.dir/src/OgreShadowCameraSetupFocused.cpp.o CMakeFiles/OgreMain.dir/src/OgreShadowCameraSetupLiSPSM.cpp.o CMakeFiles/OgreMain.dir/src/OgreShadowCameraSetupPlaneOptimal.cpp.o CMakeFiles/OgreMain.dir/src/OgreShadowCameraSetupPSSM.cpp.o CMakeFiles/OgreMain.dir/src/OgreShadowCaster.cpp.o CMakeFiles/OgreMain.dir/src/OgreShadowTextureManager.cpp.o CMakeFiles/OgreMain.dir/src/OgreShadowVolumeExtrudeProgram.cpp.o CMakeFiles/OgreMain.dir/src/OgreSimpleRenderable.cpp.o CMakeFiles/OgreMain.dir/src/OgreSimpleSpline.cpp.o CMakeFiles/OgreMain.dir/src/OgreSkeleton.cpp.o CMakeFiles/OgreMain.dir/src/OgreSkeletonInstance.cpp.o CMakeFiles/OgreMain.dir/src/OgreSkeletonManager.cpp.o CMakeFiles/OgreMain.dir/src/OgreSkeletonSerializer.cpp.o CMakeFiles/OgreMain.dir/src/OgreStaticGeometry.cpp.o CMakeFiles/OgreMain.dir/src/OgreStreamSerialiser.cpp.o CMakeFiles/OgreMain.dir/src/OgreString.cpp.o CMakeFiles/OgreMain.dir/src/OgreStringConverter.cpp.o CMakeFiles/OgreMain.dir/src/OgreStringInterface.cpp.o CMakeFiles/OgreMain.dir/src/OgreSubEntity.cpp.o CMakeFiles/OgreMain.dir/src/OgreSubMesh.cpp.o CMakeFiles/OgreMain.dir/src/OgreTagPoint.cpp.o CMakeFiles/OgreMain.dir/src/OgreTangentSpaceCalc.cpp.o CMakeFiles/OgreMain.dir/src/OgreTechnique.cpp.o CMakeFiles/OgreMain.dir/src/OgreTextAreaOverlayElement.cpp.o CMakeFiles/OgreMain.dir/src/OgreTexture.cpp.o CMakeFiles/OgreMain.dir/src/OgreTextureManager.cpp.o CMakeFiles/OgreMain.dir/src/OgreTextureUnitState.cpp.o CMakeFiles/OgreMain.dir/src/OgreUnifiedHighLevelGpuProgram.cpp.o CMakeFiles/OgreMain.dir/src/OgreUserObjectBindings.cpp.o CMakeFiles/OgreMain.dir/src/OgreUTFString.cpp.o CMakeFiles/OgreMain.dir/src/OgreVector2.cpp.o CMakeFiles/OgreMain.dir/src/OgreVector3.cpp.o CMakeFiles/OgreMain.dir/src/OgreVector4.cpp.o CMakeFiles/OgreMain.dir/src/OgreVertexIndexData.cpp.o CMakeFiles/OgreMain.dir/src/OgreViewport.cpp.o CMakeFiles/OgreMain.dir/src/OgreWindowEventUtilities.cpp.o CMakeFiles/OgreMain.dir/src/OgreWireBoundingBox.cpp.o CMakeFiles/OgreMain.dir/src/OgreWorkQueue.cpp.o CMakeFiles/OgreMain.dir/src/OgreFreeImageCodec.cpp.o CMakeFiles/OgreMain.dir/src/OgreDDSCodec.cpp.o CMakeFiles/OgreMain.dir/src/OgreZip.cpp.o CMakeFiles/OgreMain.dir/src/OSX/OgreConfigDialog.mm.o CMakeFiles/OgreMain.dir/src/OSX/OgreErrorDialog.mm.o CMakeFiles/OgreMain.dir/src/OSX/OgreTimer.cpp.o CMakeFiles/OgreMain.dir/src/OSX/macUtils.cpp.o CMakeFiles/OgreMain.dir/src/OgreSearchOps.cpp.o CMakeFiles/OgreMain.dir/src/Threading/OgreDefaultWorkQueueStandard.cpp.o
:info:build /usr/bin/ranlib ../lib/libOgreMainStatic.a
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ogre/ogre/work/ogre_src_v1-7-3/OgreMain && mkdir -p /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ogre/ogre/work/ogre_src_v1-7-3/lib//Ogre.framework/Headers/Threading
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ogre/ogre/work/ogre_src_v1-7-3/OgreMain && /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude .hg -exclude 'CMakeLists.txt' -resolve-src-symlinks /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ogre/ogre/work/ogre_src_v1-7-3/OgreMain/include/Threading/* /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ogre/ogre/work/ogre_src_v1-7-3/lib//Ogre.framework/Headers/Threading/
:info:build /bin/sh: /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp: No such file or directory
:info:build make[2]: *** [lib/libOgreMainStatic.a] Error 127
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ogre/ogre/work/ogre_src_v1-7-3'
:info:build make[1]: *** [OgreMain/CMakeFiles/OgreMain.dir/all] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ogre/ogre/work/ogre_src_v1-7-3'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ogre/ogre/work/ogre_src_v1-7-3'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ogre/ogre/work/ogre_src_v1-7-3" && /usr/bin/make -j4 -w all 
:info:build Exit code: 2
:error:build org.macports.build for port ogre returned: command execution failed
:debug:build Error code: CHILDSTATUS 9158 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for ogre: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Please see the log file for port ogre for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ogre/ogre/main.log

comment:6 Changed 12 years ago 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.

comment:7 Changed 12 years ago by glen@…

Next data point: manually reverting to cmake 2.8.8 (instead of the current 2.8.10) allows the configure to complete with no errors. But the build still fails with the error

: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

so it appears that the configure error is (probably) unrelated to the problem with libRenderSystem_GLStatic.a.

Changed 12 years ago by glen@…

Attachment: buildfile.txt added

verbose build log using cmake 2.8.8 and replacement of pbxcp with ditto

Changed 12 years ago by glen@…

Attachment: main.3.log added

main log using cmake 2.8.8 and replacing spbcx or whatever the hell it is with ditto

comment:8 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:9 Changed 11 years ago by kyle.j.kauffman@…

For our purposes over at ROS, I've developed an OGRE port that builds on Mavericks (https://github.com/kyonifer/ros-macports/tree/master/patched_macports/ros-ogre). The port is called ros-ogre to avoid dependency conflicts with the macports package. Its based on the homebrew recipe and resolves both this issue and #34502, as well as a bunch of macports specific issues (issues finding freetype, conflicts with macports tinyxml (newer api than ogre 1.7)).

However, it does some things differently than the macports port, e.g. builds dynamic instead of static. Feel free to merge any changes into the macports ogre package. If there's interest, I can submit a port upgrade ticket here with that port attached, but I'm guessing the macports maintainer has some specific goals in mind with the static build.

comment:10 Changed 11 years ago by kyle.j.kauffman@…

Cc: kyle.j.kauffman@… added

Cc Me!

comment:11 Changed 9 years ago by arto@…

Cc: arto@… added

Cc Me!

comment:12 Changed 9 years ago by macports@…

Cc: macports@… added

Cc Me!

comment:13 Changed 8 years ago by kurthindenburg (Kurt Hindenburg)

Owner: changed from marin.saric@… to macports-tickets@…
Status: newassigned

comment:14 Changed 3 years ago by catap (Kirill A. Korinsky)

Resolution: fixed
Status: assignedclosed

In 26967e90ad84d82f58f95fb8a65a41512c9035b1/macports-ports (master):

ogre: update to 13.0.1

This port is technically rewritten from scratch.

I've also used as close as possible to mainstream way to build it, which
includes moving to dynamic linking.

Closes: #53338
Closes: #38624
Closes: #37734
Closes: #34502
See: #47197

Note: See TracTickets for help on using tickets.