Hi guys, I've been having some trouble compiling osg 2.0 recently. I'm using suse 11.1 and got it to compile several weeks back, though after a recent svn update I'm getting linking errors for all executables.
Linking CXX executable ../bin/testCSM cd /local_disk/cputter/osg2.0/opensg/build/Test && /usr/bin/cmake -E cmake_link_script CMakeFiles/testCSM.dir/link.txt --verbose=1 /usr/bin/c++ -msse2 -mfpmath=sse -O3 -DNDEBUG -fPIC CMakeFiles/testCSM.dir/testCSM.cpp.o -o ../bin/testCSM -rdynamic ../bin/libOSGEffectGroups.so.2.0.0 ../bin/libOSGImageFileIO.so.2.0.0 ../bin/libOSGContribCSM.so.2.0.0 -ltiff -lpng -ljpeg ../bin/libOSGCluster.so.2.0.0 ../bin/libOSGFileIO.so.2.0.0 ../bin/libOSGUtil.so.2.0.0 ../bin/libOSGGroup.so.2.0.0 ../bin/libOSGText.so.2.0.0 ../bin/libOSGDrawable.so.2.0.0 ../bin/libOSGState.so.2.0.0 -lfreetype -lfontconfig ../bin/libOSGWindowGLUT.so.2.0.0 -lXmu -lXi ../bin/libOSGWindowX.so.2.0.0 ../bin/libOSGWindow.so.2.0.0 ../bin/libOSGSystem.so.2.0.0 ../bin/libOSGBase.so.2.0.0 -ldl -lpthread -lz -lGL -lGLU -lX11 -lglut -Wl,-rpath,/local_disk/cputter/osg2.0/opensg/build/bin ../bin/libOSGBase.so.2.0.0: undefined reference to `__sync_fetch_and_or_4' collect2: ld returned 1 exit status make[2]: *** [bin/testCSM] Error 1 make[2]: Leaving directory `/local_disk/cputter/osg2.0/opensg/build' make[1]: *** [Test/CMakeFiles/testCSM.dir/all] Error 2 make[1]: Leaving directory `/local_disk/cputter/osg2.0/opensg/build' make: *** [all] Error 2 After googling for while it seems that this linking error comes up when gcc isn't getting the right CXXFLAGS, specifically -march. I added -march=i586 manually using cmake to the flags though that hasn't solved the problem. Any ideas what I could try to solve this? Hope you're all having a great day, -Christian ------------------------------------------------------------------------------ _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
