[osg-users] osg build errors
Sid Boyce
sboyce at blueyonder.co.uk
Sun Dec 9 14:51:51 PST 2007
Recently subscribed to this list, perhaps this is one more appropriate
to the developers list.
# cat /etc/SuSE-release
openSUSE 11.0 (X86-64) Alpha0
VERSION = 11.0
# gcc -v
Using built-in specs.
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada
--enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3
--enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/
--with-pkgversion='SUSE Linux' --disable-libgcj --with-slibdir=/lib64
--with-system-zlib --enable-__cxa_atexit
--enable-libstdcxx-allocator=new --disable-libstdcxx-pch
--program-suffix=-4.3 --enable-version-specific-runtime-libs
--without-system-libunwind --with-cpu=generic --build=x86_64-suse-linux
Thread model: posix
gcc version 4.3.0 20071129 (experimental) [trunk revision 130511] (SUSE
Linux)
# make
[ 0%] Built target OpenThreads
[ 0%] Building CXX object src/osg/CMakeFiles/osg.dir/DisplaySettings.o
/ftp/dec07/OSG/OpenSceneGraph/src/osg/DisplaySettings.cpp: In member
function ‘void osg::DisplaySettings::readEnvironmentalVariables()’:
/ftp/dec07/OSG/OpenSceneGraph/src/osg/DisplaySettings.cpp:178: error:
‘strcmp’ was not declared in this scope
/ftp/dec07/OSG/OpenSceneGraph/src/osg/DisplaySettings.cpp:201: error:
‘strcmp’ was not declared in this scope
/ftp/dec07/OSG/OpenSceneGraph/src/osg/DisplaySettings.cpp:241: error:
‘strcmp’ was not declared in this scope
/ftp/dec07/OSG/OpenSceneGraph/src/osg/DisplaySettings.cpp:274: error:
‘strcmp’ was not declared in this scope
/ftp/dec07/OSG/OpenSceneGraph/src/osg/DisplaySettings.cpp:293: error:
‘strcmp’ was not declared in this scope
/ftp/dec07/OSG/OpenSceneGraph/src/osg/DisplaySettings.cpp:306: error:
‘strcmp’ was not declared in this scope
/ftp/dec07/OSG/OpenSceneGraph/src/osg/DisplaySettings.cpp:329: error:
‘strcmp’ was not declared in this scope
/ftp/dec07/OSG/OpenSceneGraph/src/osg/DisplaySettings.cpp:342: error:
‘strcmp’ was not declared in this scope
make[2]: *** [src/osg/CMakeFiles/osg.dir/DisplaySettings.o] Error 1
make[1]: *** [src/osg/CMakeFiles/osg.dir/all] Error 2
make: *** [all] Error 2
I added "#include <string.h>" to DisplaySettings.cpp and got the
following error.
# make
[ 0%] Built target OpenThreads
Scanning dependencies of target osg
[ 0%] Building CXX object src/osg/CMakeFiles/osg.dir/DisplaySettings.o
[ 0%] Building CXX object src/osg/CMakeFiles/osg.dir/DrawPixels.o
[ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/Drawable.o
[ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/Fog.o
[ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/FragmentProgram.o
[ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/FrameBufferObject.o
[ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/FrameStamp.o
[ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/FrontFace.o
[ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/GLExtensions.o
[ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/GLObjects.o
[ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/Geode.o
[ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/Geometry.o
[ 2%] Building CXX object src/osg/CMakeFiles/osg.dir/GraphicsContext.o
[ 2%] Building CXX object src/osg/CMakeFiles/osg.dir/GraphicsThread.o
[ 2%] Building CXX object src/osg/CMakeFiles/osg.dir/Group.o
[ 2%] Building CXX object src/osg/CMakeFiles/osg.dir/Hint.o
[ 2%] Building CXX object src/osg/CMakeFiles/osg.dir/Image.o
/ftp/dec07/OSG/OpenSceneGraph/src/osg/Image.cpp: In copy constructor
‘osg::Image::Image(const osg::Image&, const osg::CopyOp&)’:
/ftp/dec07/OSG/OpenSceneGraph/src/osg/Image.cpp:68: error: ‘memcpy’ was
not declared in this scope
/ftp/dec07/OSG/OpenSceneGraph/src/osg/Image.cpp: In member function
‘void osg::Image::deallocateData()’:
/ftp/dec07/OSG/OpenSceneGraph/src/osg/Image.cpp:82: error: ‘::free’ has
not been declared
/ftp/dec07/OSG/OpenSceneGraph/src/osg/Image.cpp: In member function
‘void osg::Image::flipHorizontal()’:
/ftp/dec07/OSG/OpenSceneGraph/src/osg/Image.cpp:940: error: ‘memcpy’ was
not declared in this scope
make[2]: *** [src/osg/CMakeFiles/osg.dir/Image.o] Error 1
make[1]: *** [src/osg/CMakeFiles/osg.dir/all] Error 2
make: *** [all] Error 2
Looks like this is a problem associated with the version of gcc in openSUSE.
OpenSceneGraph SVN At revision 7639, also 2.2.0 and up to the latest level.
Regards
Sid.
--
Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot
Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support
Specialist, Cricket Coach
Microsoft Windows Free Zone - Linux used for all Computing Tasks
More information about the osg-users
mailing list