I am unable to compile ogre.
I have downloaded the CVS version 1.4-3, as it was not possible to download
a src package from sourceforge. Seems to be broken.
Anyway, when compiling ogre, I get this error:
Code: Select all
g++ -shared -nostdlib /usr/lib/gcc/x86_64-unknown-linux-gnu/4.2.1/../../../../lib/crti.o /usr/lib/gcc/x86_64-unknown-linux-gnu/4.2.1/crtbeginS.o .libs/OgreGLEngineDll.o .libs/OgreGLPlugin.o .libs/OgreGLGpuProgram.o .libs/OgreGLGpuNvparseProgram.o .libs/OgreGLGpuProgramManager.o .libs/OgreGLRenderSystem.o .libs/OgreGLSupport.o .libs/OgreGLTexture.o .libs/OgreGLTextureManager.o .libs/OgreGLHardwareBufferManager.o .libs/OgreGLHardwareIndexBuffer.o .libs/OgreGLHardwareOcclusionQuery.o .libs/OgreGLHardwareVertexBuffer.o .libs/OgreGLHardwarePixelBuffer.o .libs/OgreGLDefaultHardwareBufferManager.o .libs/OgreGLContext.o .libs/OgreGLPixelFormat.o .libs/OgreGLRenderTexture.o .libs/OgreGLFBORenderTexture.o .libs/OgreGLPBRenderTexture.o .libs/OgreGLFBOMultiRenderTarget.o .libs/OgreGLFrameBufferObject.o .libs/glew.o -Wl,--whole-archive ../../../RenderSystems/GL/src/GLX/.libs/libsupport.a ../../../RenderSystems/GL/src/GLSL/src/.libs/libGLSL.a ../../../RenderSystems/GL/src/nvparse/.libs/libnvparse.a ../../../RenderSystems/GL/src/atifs/src/.libs/libatifs.a -Wl,--no-whole-archive -Wl,--rpath -Wl,/home/martin/eclipse-workspace/ogre-1.4.3/build/OgreMain/src/.libs -Wl,--rpath -Wl,/opt/ogre/lib -L/home/martin/eclipse-workspace/ogre-1.4.3/build/OgreMain/src -lGLU -lX11 -lXext -lGL -lXrandr -lXxf86vm /home/martin/eclipse-workspace/ogre-1.4.3/build/OgreMain/src/.libs/libOgreMain.so -lfreeimage -lpthread -lz -ldl -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.2.1 -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.2.1/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.2.1/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-unknown-linux-gnu/4.2.1/crtendS.o /usr/lib/gcc/x86_64-unknown-linux-gnu/4.2.1/../../../../lib/crtn.o -Wl,-z -Wl,defs -Wl,-soname -Wl,RenderSystem_GL.so -o .libs/RenderSystem_GL.so
/usr/bin/ld: ../../../RenderSystems/GL/src/atifs/src/.libs/libatifs.a(Compiler2Pass.o): relocation R_X86_64_PC32 against `vtable for Compiler2Pass' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[4]: *** [RenderSystem_GL.la] Fehler 1
I try to compile it on this system:
Code: Select all
Intel Core2Duo E6400
Nvidia GF-7600GT
ArchLinux - 64Bit
gcc-4.2
Code: Select all
../configure --prefix=/opt/ogre --disable-cg --with-platform=GLX
Tnx
