Hello Patrick, On 11/16/2013 08:10 AM, Patrick Palmer wrote: > 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.
thanks for the report. It looks like the *Base.{h,cpp,inl} files for this code were not regenerated when the templates were modified. > 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. Hmm, perhaps someone else can chime in with their experience, but I don't usually build in compatibility mode, so I'd feel being disingenuous if I claimed there are no further issues ;) - but see below. > 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: I've regenerated the affected files and run a built with those options (x86_64 Fedora 17, gcc 4.7.2). My setup should be similar enough to yours that I'd hope your build will now work as well. Cheers, Carsten ------------------------------------------------------------------------------ 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