Robert Osfield wrote:
> Hi Sid,
> 
> On Dec 9, 2007 10:51 PM, Sid Boyce <[EMAIL PROTECTED]> wrote:
>> Recently subscribed to this list, perhaps this is one more appropriate
>> to the developers list.
> 
> There is no separate developers list, we're all user-developers ;-)
> 
>> '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
> 
> I've got 4.1.3 installed on my Kubuntu system so haven't seen these
> errors pop up.  My guess is that there might well be quite a few of
> these types of errors if you've already found two in the core osg.
> I've added string.h to both DisplaySettings.cpp and Image.cpp which
> should fix these errors, but my guess more will follow along behind,
> please just post them, or even better patched files to the
> osg-submissions list.
> 
> Robert.
> 
> 

Looks very much like changes to gcc-4.2.x. I also had to add malloc.h to 
Image.cpp, then it moves on to:
/ftp/dec07/OSG/OpenSceneGraph/src/osg/Notify.cpp: In function ‘bool 
osg::initNotifyLevel()’:
/ftp/dec07/OSG/OpenSceneGraph/src/osg/Notify.cpp:47: error: ‘getenv’ was 
not declared in this scope
make[2]: *** [src/osg/CMakeFiles/osg.dir/Notify.o] Error 1
make[1]: *** [src/osg/CMakeFiles/osg.dir/all] Error 2
make: *** [all] Error 2

Fixed by adding stdlib.h to Notify.cpp, then it moves on to 
src/osgDB/Field.cpp files with what seems similar errors.
I shall plough through find/fix and see if it's successful.
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

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to