Plugin build error

only_a_ptr

21-07-2009 14:31:26

Hello.

I need some advice with building the PLSM2 plugin.
I follow the guide at http://www.ogre3d.org/wiki/index.php/Paging_Scene_Manager_Installation#Linux_Install_2. Everything compiles fine, but linking yields this error:
libtool: link: only absolute run-paths are allowed
Anyone knows what's the problem?

Here's the complete log:
an00bis@hpnx6310:~/source/ogreaddons/paginglandscape/paginglandscape$ make
make all-recursive
make[1]: Entering directory `/home/an00bis/source/ogreaddons/paginglandscape/paginglandscape'
Making all in PlugIns
make[2]: Entering directory `/home/an00bis/source/ogreaddons/paginglandscape/paginglandscape/PlugIns'
Making all in PagingLandScape2
make[3]: Entering directory `/home/an00bis/source/ogreaddons/paginglandscape/paginglandscape/PlugIns/PagingLandScape2'
Making all in src
make[4]: Entering directory `/home/an00bis/source/ogreaddons/paginglandscape/paginglandscape/PlugIns/PagingLandScape2/src'
/bin/sh ../../../libtool --tag=CXX --mode=link g++ -g -O2 -module -shared -avoid-version -Wl,-z,defs -o Plugin_PagingLandScape2.la -rpath Plugin_PagingLandScape2_la-DRGNURBSSurface.lo Plugin_PagingLandScape2_la-filetutils.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOctreeAxisAlignedBoxSceneQuery.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOctreeCamera.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOctree.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOctreeIntersectionSceneQuery.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOctreeNode.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOctreePlaneBoundedVolumeListSceneQuery.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOctreeRaySceneQuery.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOctreeSceneManager.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOctreeSphereSceneQuery.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeAxisAlignedBoxSceneQuery.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeCamera.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeData2D.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeData2D_HeightField.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeData2D_HeightFieldN.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeData2D_HeightFieldNTC.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeData2D_HeightFieldRaw.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeData2D_HeightFieldRawTC.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeData2D_HeightFieldTC.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeData2D_HeightFieldBlendNeighbor.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeData2DManager.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeData2D_Spline.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeHorizon.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeIndexBuffer.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeListenerManager.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeMeshDecal.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOptions.lo Plugin_PagingLandScape2_la-OgrePagingLandScapePage.lo Plugin_PagingLandScape2_la-OgrePagingLandScapePageManager.lo Plugin_PagingLandScape2_la-OgrePagingLandScapePageRenderable.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeRaySceneQuery.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeRenderable.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeRenderableManager.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTextureCoordinatesManager.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManager.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeSceneManagerDll.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_BaseTexture2.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_BaseTexture.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Image.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_InstantBaseTexture.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_InstantBaseTextureShadowed.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_InstantBaseTextureEdit.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTextureManager.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Splatting2.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Splatting2Edit.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Splatting3.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Splatting4.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Splatting5.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Splatting6.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Splatting7.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Splatting7Edit.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_SplattingShader.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_SplattingShaderEdit.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTexture_Splatting.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTile.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeTileManager.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOcclusion.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOcclusionElement.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOcclusionCameraTraversal.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOcclusionTraversal.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOcclusionCHCTraversal.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOcclusionSWTraversal.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOcclusionDebugTraversal.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOcclusionVFTraversal.lo Plugin_PagingLandScape2_la-OgreDebugRectangle2D.lo Plugin_PagingLandScape2_la-OgreOcclusionBoundingBox.lo Plugin_PagingLandScape2_la-OgrePagingLandScapeOcclusionQuerySet.lo -lz -lm -ldl
libtool: link: only absolute run-paths are allowed
make[4]: *** [Plugin_PagingLandScape2.la] Error 1
make[4]: Leaving directory `/home/an00bis/source/ogreaddons/paginglandscape/paginglandscape/PlugIns/PagingLandScape2/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/an00bis/source/ogreaddons/paginglandscape/paginglandscape/PlugIns/PagingLandScape2'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/an00bis/source/ogreaddons/paginglandscape/paginglandscape/PlugIns'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/an00bis/source/ogreaddons/paginglandscape/paginglandscape'
make: *** [all] Error 2


I'm using:
  1. PLSM2 svn version rev.2720 (latest)
    slackware 12.2
    gcc 4.2.4
    ogre 1.6.1 (source package)
    libtool 2.2.6 (latest)
    GNU ld (Linux/GNU Binutils) 2.18.50.0.9.20080822[/list:u]

    Thanks for any help.
    ~An00biS

dermont

23-07-2009 11:37:14

From your log it appears that the build isn't finding the OgreMain lib, what does pkg-config --cflags --libs OGRE output? How did you run bootstrap and configure?