On 6/02/12 3:26 PM, Larry Gritz wrote:
Compile in debug mode "make debug" and run the app in gdb to see what line it
crashes on?
Building it in debug mode
/Users/nyue/projects/oiio/oiio_git/src/libtexture/texture3d.cpp:367:
error: ‘__LITTLE_ENDIAN__’ was not declared in this scope
uncover the following lines in
363 valid_storage.ivalid = 0;
364 DASSERT (sizeof(valid_storage) >= 6*sizeof(bool));
365 const unsigned long long none_valid = 0;
366 const unsigned long long all_valid = 0x010101010101LL;
367 DASSERT (__LITTLE_ENDIAN__ && "this trick won't work with big endian");
368 bool *svalid = valid_storage.bvalid;
369 bool *tvalid = valid_storage.bvalid + 2;
Lots of us were certainly running 32 bit when we started developing OIIO, so if
there are non-64 bit breaks, it's probably a minor issue to fix. But I'm not
sure we ever compiled and tested for PPC.
Probably not.
Given the that PowerPC is now on the decline, I won't pursue this and
look for other alternative.
However, looking at wikipedia (I am no CPU expert), it says that PPC and
ARM are both bi-endian.
If we have problem with PPC and given ARM's rising popularity, this
problem may (not sure about hardware opcode and endian settings) resurface.
Thanks for the feedback.
I will not pursue this for now.
Regards
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org