jojo
29-10-2006 11:04:17
Hello,
I have a problem compiling PLSM on Linux.
The compilation always fails with the error: "libtool: link: only absolute run-paths are allowed".
Here's what I did:
Some information on my system:
Arch Linux, gcc version 4.1.1, Ogre 1.2.2 or 1.2.3 (selfcompiled), OGRE install in /opt/ogre.
Can anybody please help me with this problem?
I think there is something wrong with the configure script, it really should handle --includedir and --libdir so I don't have to use the environment variables.
Thank you and bye
I have a problem compiling PLSM on Linux.
The compilation always fails with the error: "libtool: link: only absolute run-paths are allowed".
Here's what I did:
$ ./bootstrap
$ env CPPFLAGS="-I/opt/ogre/include/OGRE -I/opt/ogre/include" LDFLAGS="-L/opt/ogre/lib -L/opt/ogre/lib/OGRE" ./configure
# alternatively, here's another way but it fails. Looks like the #--includedir parameter of the configure script is ignored:
#/configure --prefix=/opt/ogre --exec-prefix=/opt/ogre --includedir=/opt/ogre/include/OGRE --libdir=/opt/ogre/lib --with-ogre=/opt/ogre
$ make
(runs fine until linking)
[snip..]
g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../PlugIns/PagingLandScape2/include -I/opt/ogre/include/OGRE -I/opt/ogre/include -g -O2 -MT OgrePagingLandScapeOcclusionQuerySet.lo -MD -MP -MF .deps/OgrePagingLandScapeOcclusionQuerySet.Tpo -c OgrePagingLandScapeOcclusionQuerySet.cpp -o OgrePagingLandScapeOcclusionQuerySet.o >/dev/null 2>&1
/bin/sh ../../../libtool --tag=CXX --mode=link g++ -g -O2 -L/opt/ogre/lib -L/opt/ogre/lib/OGRE -o Plugin_PagingLandScape2.la -rpath -module -shared DRGNURBSSurface.lo filetutils.lo OgrePagingLandScapeOctreeAxisAlignedBoxSceneQuery.lo OgrePagingLandScapeOctreeCamera.lo OgrePagingLandScapeOctree.lo OgrePagingLandScapeOctreeIntersectionSceneQuery.lo OgrePagingLandScapeOctreeNode.lo OgrePagingLandScapeOctreePlaneBoundedVolumeListSceneQuery.lo OgrePagingLandScapeOctreeRaySceneQuery.lo OgrePagingLandScapeOctreeSceneManager.lo OgrePagingLandScapeOctreeSphereSceneQuery.lo OgrePagingLandScapeCamera.lo OgrePagingLandScapeData2D.lo OgrePagingLandScapeData2D_HeightField.lo OgrePagingLandScapeData2D_HeightFieldN.lo OgrePagingLandScapeData2D_HeightFieldNTC.lo OgrePagingLandScapeData2D_HeightFieldRaw.lo OgrePagingLandScapeData2D_HeightFieldRawTC.lo OgrePagingLandScapeData2D_HeightFieldTC.lo OgrePagingLandScapeData2D_HeightFieldBlendNeighbor.lo OgrePagingLandScapeData2DManager.lo OgrePagingLandScapeData2D_Spline.lo OgrePagingLandScapeHorizon.lo OgrePagingLandScapeIndexBuffer.lo OgrePagingLandScapeListenerManager.lo OgrePagingLandScapeOptions.lo OgrePagingLandScapePage.lo OgrePagingLandScapePageManager.lo OgrePagingLandScapePageRenderable.lo OgrePagingLandScapeRaySceneQuery.lo OgrePagingLandScapeRenderable.lo OgrePagingLandScapeRenderableManager.lo OgrePagingLandScapeTextureCoordinatesManager.lo OgrePagingLandScapeSceneManager.lo OgrePagingLandScapeSceneManagerDll.lo OgrePagingLandScapeTexture_BaseTexture2.lo OgrePagingLandScapeTexture_BaseTexture.lo OgrePagingLandScapeTexture.lo OgrePagingLandScapeTexture_Image.lo OgrePagingLandScapeTexture_InstantBaseTexture.lo OgrePagingLandScapeTexture_InstantBaseTextureShadowed.lo OgrePagingLandScapeTexture_InstantBaseTextureEdit.lo OgrePagingLandScapeTextureManager.lo OgrePagingLandScapeTexture_Splatting2.lo OgrePagingLandScapeTexture_Splatting2Edit.lo OgrePagingLandScapeTexture_Splatting3.lo OgrePagingLandScapeTexture_Splatting4.lo OgrePagingLandScapeTexture_Splatting5.lo OgrePagingLandScapeTexture_Splatting6.lo OgrePagingLandScapeTexture_Splatting7.lo OgrePagingLandScapeTexture_Splatting7Edit.lo OgrePagingLandScapeTexture_SplattingShader.lo OgrePagingLandScapeTexture_SplattingShaderEdit.lo OgrePagingLandScapeTexture_Splatting.lo OgrePagingLandScapeTile.lo OgrePagingLandScapeTileManager.lo OgrePagingLandScapeOcclusion.lo OgrePagingLandScapeOcclusionElement.lo OgrePagingLandScapeOcclusionCameraTraversal.lo OgrePagingLandScapeOcclusionTraversal.lo OgrePagingLandScapeOcclusionCHCTraversal.lo OgrePagingLandScapeOcclusionSWTraversal.lo OgrePagingLandScapeOcclusionDebugTraversal.lo OgrePagingLandScapeOcclusionVFTraversal.lo OgreDebugRectangle2D.lo OgreOcclusionBoundingBox.lo OgrePagingLandScapeOcclusionQuerySet.lo -lOgreMain -lILU -lIL -lz -lm -ldl
libtool: link: only absolute run-paths are allowed
make[4]: *** [Plugin_PagingLandScape2.la] Error 1
make[4]: Leaving directory `/home/jojo/ogre3d/ogreaddons/paginglandscape/PlugIns/PagingLandScape2/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/jojo/ogre3d/ogreaddons/paginglandscape/PlugIns/PagingLandScape2'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jojo/ogre3d/ogreaddons/paginglandscape/PlugIns'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jojo/ogre3d/ogreaddons/paginglandscape'
make: *** [all] Error 2
Some information on my system:
Arch Linux, gcc version 4.1.1, Ogre 1.2.2 or 1.2.3 (selfcompiled), OGRE install in /opt/ogre.
Can anybody please help me with this problem?
I think there is something wrong with the configure script, it really should handle --includedir and --libdir so I don't have to use the environment variables.
Thank you and bye