This is a patch for devil-1.6.7 so it only links against libpng-1.2 instead of libpng-3. You also need to apply the libpng patch in bug 83602 for this to work. This (and the libpng patch) let ogre-1.0 to correctly load png images without crashing. Please see bug 83602 and bug 83306 for more information Reproducible: Always Steps to Reproduce: 1. emerge devil 2. emerge ogre 3. run any ogre app that load png images Actual Results: ogre crashes Expected Results: ogre should load and display the images this is for amd64 only! I haven't tested this on x86 or any other archs!
Created attachment 52324 [details] patch for devil-1.6.7 under amd64 only to link against libpng-1.2 instead of libpng3
Assigned to the correct architecture team.
Created attachment 53643 [details, diff] Changes the types that are passed to png_get_IHDR from ILuint to png_uint_32 Using libpng-1.2.8 still doesn't work, this patch fixes DevIL to use the correct types.
I added a patch to fix the data types passed to png_get_IHDR from DevIL.
Does this mean libpng no longer needs the extra patches too? Please see bug #83602 for more info on the libpng patch,
Changing the typedefs in libpng would require recompiling everything that uses it, otherwise things like Gnome become totally hosed. I think the best fix is to have DevIL use the correct types (as defined in png.h).
please post an example .c so we can test/debug this w/out screwing with libpng
libpng-1.2.8 works fine for me after applying the patch from comment #3, which I think is the correct fix. Ogre now works fine. Nothing else was patched. This is with devil 1.6.7
libpng will not be patched, it'll break a ton of apps
Yes, I finally got Ogre working here with only the patch from comment #3 applied to devil (and an unmodified libpng-1.2.8). Should be applied, IMO.
I agree with comment #10, this patch does work.
added the 2nd patch to cvs, thanks