Hi Björn,

Yesterday I tried out building the osgoculusviewer under Kubnutu 14.10,
against OSG-svn/trunk and ovr_sdk_linux_0.4.4 and found quite a few
warnings generated from OSG headers so I've cleaned these up where I can
and have just checked these fixes into svn/trunk.

I couldn't get everything to compile, as there was one error, and a number
of warnings for the OVR SDK, and one warning from a forward declare of
Image in oculushealthwarning.h.  I've attached the error/warnings.  Are the
OVR team responsive to fixes to their code?

Cheers,
Robert.
[ 12%] Building CXX object 
src/CMakeFiles/OsgOculus.dir/oculushealthwarning.cpp.o
In file included from /usr/include/c++/4.9/cstdint:35:0,
                 from oculushealthwarning.cpp:10:
/usr/include/c++/4.9/bits/c++0x_warning.h:32:2: error: #error This file 
requires compiler and library support for the ISO C++ 2011 standard. This 
support is currently experimental, and must be enabled with the -std=c++11 or 
-std=gnu++11 compiler options.
 #error This file requires compiler and library support for the \
  ^
In file included from 
/home/robert/3rdParty/ovr_sdk_linux_0.4.4/LibOVR/Include/../Src/Kernel/OVR_Math.h:39:0,
                 from 
/home/robert/3rdParty/ovr_sdk_linux_0.4.4/LibOVR/Include/OVR.h:31,
                 from oculusdevice.h:12,
                 from oculushealthwarning.cpp:18:
/home/robert/3rdParty/ovr_sdk_linux_0.4.4/LibOVR/Include/../Src/Kernel/OVR_Alg.h:847:31:
 warning: use of C++11 long long integer constant [-Wlong-long]
                  ((v&uint64_t(0x00FF000000000000ULL))>>40) |
                               ^
/home/robert/3rdParty/ovr_sdk_linux_0.4.4/LibOVR/Include/../Src/Kernel/OVR_Alg.h:848:31:
 warning: use of C++11 long long integer constant [-Wlong-long]
                  ((v&uint64_t(0x0000FF0000000000ULL))>>24) |
                               ^
/home/robert/3rdParty/ovr_sdk_linux_0.4.4/LibOVR/Include/../Src/Kernel/OVR_Alg.h:849:31:
 warning: use of C++11 long long integer constant [-Wlong-long]
                  ((v&uint64_t(0x000000FF00000000ULL))>>8)  |
                               ^
/home/robert/3rdParty/ovr_sdk_linux_0.4.4/LibOVR/Include/../Src/Kernel/OVR_Alg.h:850:31:
 warning: use of C++11 long long integer constant [-Wlong-long]
                  ((v&uint64_t(0x00000000FF000000ULL))<<8)  |
                               ^
/home/robert/3rdParty/ovr_sdk_linux_0.4.4/LibOVR/Include/../Src/Kernel/OVR_Alg.h:851:31:
 warning: use of C++11 long long integer constant [-Wlong-long]
                  ((v&uint64_t(0x0000000000FF0000ULL))<<24) |
                               ^
/home/robert/3rdParty/ovr_sdk_linux_0.4.4/LibOVR/Include/../Src/Kernel/OVR_Alg.h:852:31:
 warning: use of C++11 long long integer constant [-Wlong-long]
                  ((v&uint64_t(0x000000000000FF00ULL))<<40) |
                               ^
In file included from /home/robert/OpenSceneGraph/include/osg/State:24:0,
                 from /home/robert/OpenSceneGraph/include/osg/RenderInfo:17,
                 from /home/robert/OpenSceneGraph/include/osg/Drawable:21,
                 from /home/robert/OpenSceneGraph/include/osgText/Text:18,
                 from 
/home/robert/OpenSceneGraph/include/osgViewer/ViewerEventHandlers:18,
                 from oculushealthwarning.h:11,
                 from oculushealthwarning.cpp:7:
/home/robert/OpenSceneGraph/include/osg/Timer:24:27: warning: ISO C++ 1998 does 
not support ‘long long’ [-Wlong-long]
     typedef unsigned long long Timer_t;
                           ^
In file included from oculushealthwarning.cpp:7:0:
oculushealthwarning.h:14:12: warning: declaration ‘class osg::Image’ does not 
declare anything
 class osg::Image;
            ^
In file included from 
/home/robert/3rdParty/ovr_sdk_linux_0.4.4/LibOVR/Include/OVR.h:31:0,
                 from oculusdevice.h:12,
                 from oculushealthwarning.cpp:18:
/home/robert/3rdParty/ovr_sdk_linux_0.4.4/LibOVR/Include/../Src/Kernel/OVR_Math.h:230:2:
 warning: extra ‘;’ [-Wpedantic]
 };
  ^
/home/robert/3rdParty/ovr_sdk_linux_0.4.4/LibOVR/Include/../Src/Kernel/OVR_Math.h:238:2:
 warning: extra ‘;’ [-Wpedantic]
 };
  ^
In file included from 
/home/robert/3rdParty/ovr_sdk_linux_0.4.4/LibOVR/Include/OVR.h:33:0,
                 from oculusdevice.h:12,
                 from oculushealthwarning.cpp:18:
/home/robert/3rdParty/ovr_sdk_linux_0.4.4/LibOVR/Include/../Src/OVR_CAPI.h:220:45:
 warning: comma at end of enumerator list [-Wpedantic]
     ovrTrackingCap_Idle             = 0x0100,
                                             ^
/home/robert/3rdParty/ovr_sdk_linux_0.4.4/LibOVR/Include/../Src/OVR_CAPI.h:239:58:
 warning: comma at end of enumerator list [-Wpedantic]
     ovrDistortionCap_ProfileNoTimewarpSpinWaits = 0x10000,  /// Use when 
profiling with timewarp to remove false positives
                                                          ^
src/CMakeFiles/OsgOculus.dir/build.make:126: recipe for target 
'src/CMakeFiles/OsgOculus.dir/oculushealthwarning.cpp.o' failed
make[2]: *** [src/CMakeFiles/OsgOculus.dir/oculushealthwarning.cpp.o] Error 1
CMakeFiles/Makefile2:189: recipe for target 'src/CMakeFiles/OsgOculus.dir/all' 
failed
make[1]: *** [src/CMakeFiles/OsgOculus.dir/all] Error 2
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to