Hello,

I am attempting to build OpenSG v2.0 with the latest code (as of Nov 16) with 
v1.8 compatibility turned on and the code isn't compiling.  The build machine 
is Debian Linux (Wheezy) using gcc 4.7 (uname is "Linux machine 3.2.0-4-amd64 
#1 SMP Debian 3.2.51-1 x86_64 GNU/Linux")

It looks like the code is assuming a size_t is an unsigned 32-bit int.

By changing the UInt32 to a SizeT in the OSGCubeTextureChunkBase.h and 
OSGCubeTextureChunkBase.cpp, the code was able to compile.  But, I wonder if 
there will be any other issues with compiling on a 64-bit platform with 
compatibility turned on.

Thanks!

Here is the cmake command:

    % cmake -DCMAKE_INSTALL_PREFIX=/mnt/third/dev/OpenSG-2.0 
-DOSGCOMPAT_ENABLE=1 -DOSGCOMPAT_ENABLE_DEPRECATED=1 
-DOSGCOMPAT_ENABLE_DEPRECATED_PROPS=1 ..

Here is the error I am getting when running make:

[ 11%] Building CXX object 
Build/OSGSystem/CMakeFiles/OSGSystem.dir/Depreciated/State/OpenGL/OSGCubeTextureChunk.cpp.o
In file included from 
/mnt/third/dev/OpenSG-2.0-git/Source/System/Depreciated/State/OpenGL/OSGCubeTextureChunk.h:45:0,
                 from 
/mnt/third/dev/OpenSG-2.0-git/Source/System/Depreciated/State/OpenGL/OSGCubeTextureChunk.cpp:54:
/mnt/third/dev/OpenSG-2.0-git/Source/System/Depreciated/State/OpenGL/OSGCubeTextureChunkBase.h:109:40:
 warning: left shift count >= width of type [enabled by default]
/mnt/third/dev/OpenSG-2.0-git/Source/System/Depreciated/State/OpenGL/OSGCubeTextureChunkBase.h:111:40:
 warning: left shift count >= width of type [enabled by default]
/mnt/third/dev/OpenSG-2.0-git/Source/System/Depreciated/State/OpenGL/OSGCubeTextureChunkBase.h:113:40:
 warning: left shift count >= width of type [enabled by default]
/mnt/third/dev/OpenSG-2.0-git/Source/System/Depreciated/State/OpenGL/OSGCubeTextureChunkBase.h:115:40:
 warning: left shift count >= width of type [enabled by default]
/mnt/third/dev/OpenSG-2.0-git/Source/System/Depreciated/State/OpenGL/OSGCubeTextureChunkBase.h:194:20:
 error: conflicting return type specified for 'virtual OSG::UInt32 
OSG::CubeTextureChunkBase::getBinSize(ConstFieldMaskArg)'
In file included from 
/mnt/third/dev/OpenSG-2.0-git/Source/System/Depreciated/State/OSGTextureChunk.h:49:0,
                 from 
/mnt/third/dev/OpenSG-2.0-git/Source/System/Depreciated/State/OpenGL/OSGCubeTextureChunkBase.h:66,
                 from 
/mnt/third/dev/OpenSG-2.0-git/Source/System/Depreciated/State/OpenGL/OSGCubeTextureChunk.h:45,
                 from 
/mnt/third/dev/OpenSG-2.0-git/Source/System/Depreciated/State/OpenGL/OSGCubeTextureChunk.cpp:54:
/mnt/third/dev/OpenSG-2.0-git/Source/System/Depreciated/State/OSGTextureChunkBase.h:465:20:
 error:   overriding 'virtual OSG::SizeT 
OSG::TextureChunkBase::getBinSize(ConstFieldMaskArg)'
make[2]: *** 
[Build/OSGSystem/CMakeFiles/OSGSystem.dir/Depreciated/State/OpenGL/OSGCubeTextureChunk.cpp.o]
 Error 1
make[1]: *** [Build/OSGSystem/CMakeFiles/OSGSystem.dir/all] Error 2
make: *** [all] Error 2

[cid:farscapenowonpivotb8e02f] <http://www.pivot.tv/shows/farscape>

<<inline: farscapenowonpivotb8e02f>>

------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to