LibPNG version: FreeImage vs Blender 2.5

Discussion and help for Compilation problems and platform portability.

Moderator: coordinators

LibPNG version: FreeImage vs Blender 2.5

Postby SATtva » Sun Nov 14, 2010 8:37 am

There was a couple reports lately regarding compatibility problems in Blender 2.5 with PyLux. The problem is that Blender builds on graphicall are compiled with libpng-1.2.44, while I use libpng-1.4.3 for Lux builds. Now I've tried to switch to 1.2.44 for Lux, but got a bunch of errors on linking:

Code: Select all
Linking CXX executable luxrender
/root/luxbuild/target-64-sse3/lib/libfreeimage.a(pngerror.o): In function `png_set_error_fn':
pngerror.c:(.text+0x30): multiple definition of `png_set_error_fn'
/root/luxbuild/target-64-sse3/lib/libpng.a(libpng12_la-pngerror.o):pngerror.c:(.text+0x0): first defined here
/root/luxbuild/target-64-sse3/lib/libfreeimage.a(pngerror.o): In function `png_get_error_ptr':
pngerror.c:(.text+0x50): multiple definition of `png_get_error_ptr'
/root/luxbuild/target-64-sse3/lib/libpng.a(libpng12_la-pngerror.o):pngerror.c:(.text+0x20): first defined here
/root/luxbuild/target-64-sse3/lib/libfreeimage.a(pngerror.o): In function `png_warning':
pngerror.c:(.text+0x160): multiple definition of `png_warning'
/root/luxbuild/target-64-sse3/lib/libpng.a(libpng12_la-pngerror.o):pngerror.c:(.text+0x150): first defined here
/root/luxbuild/target-64-sse3/lib/libfreeimage.a(pngerror.o): In function `png_chunk_warning':
pngerror.c:(.text+0x1f0): multiple definition of `png_chunk_warning'
/root/luxbuild/target-64-sse3/lib/libpng.a(libpng12_la-pngerror.o):pngerror.c:(.text+0x270): first defined here
/root/luxbuild/target-64-sse3/lib/libfreeimage.a(pngerror.o): In function `png_error':
pngerror.c:(.text+0x240): multiple definition of `png_error'
/root/luxbuild/target-64-sse3/lib/libpng.a(libpng12_la-pngerror.o):pngerror.c:(.text+0x2c0): first defined here
/root/luxbuild/target-64-sse3/lib/libfreeimage.a(pngerror.o): In function `png_chunk_error':
pngerror.c:(.text+0x300): multiple definition of `png_chunk_error'
/root/luxbuild/target-64-sse3/lib/libpng.a(libpng12_la-pngerror.o):pngerror.c:(.text+0x4b0): first defined here
collect2: ld returned 1 exit status
make[2]: *** [luxrender] Error 1

And this seems to be due to FreeImage 3.14.0 which uses headers of libpng-1.4.3.

Any ideas on how to hit both birds with one stone?
Linux builds packager
聞くのは一時の恥、聞かぬのは一生の恥
User avatar
SATtva
Developer
 
Posts: 5487
Joined: Tue Apr 07, 2009 12:19 pm
Location: from Siberia with love

Re: LibPNG version: FreeImage vs Blender 2.5

Postby jeanphi » Sun Nov 14, 2010 11:57 am

Hi,

Is pylux statically linked? It should not try to use Blender symbols if it embeds them, right?

Jeanphi
jeanphi
Developer
 
Posts: 6570
Joined: Mon Jan 14, 2008 7:21 am

Re: LibPNG version: FreeImage vs Blender 2.5

Postby SATtva » Sun Nov 14, 2010 12:11 pm

Pylux is static as well as other binaries, here are the required dependencies for pylux:

Code: Select all
0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
0x0000000000000001 (NEEDED)             Shared library: [libGLU.so.1]
0x0000000000000001 (NEEDED)             Shared library: [libGL.so.1]
0x0000000000000001 (NEEDED)             Shared library: [libSM.so.6]
0x0000000000000001 (NEEDED)             Shared library: [libICE.so.6]
0x0000000000000001 (NEEDED)             Shared library: [libX11.so.6]
0x0000000000000001 (NEEDED)             Shared library: [libXext.so.6]
0x0000000000000001 (NEEDED)             Shared library: [libm.so.6]
0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
0x0000000000000001 (NEEDED)             Shared library: [ld-linux-x86-64.so.2]
Linux builds packager
聞くのは一時の恥、聞かぬのは一生の恥
User avatar
SATtva
Developer
 
Posts: 5487
Joined: Tue Apr 07, 2009 12:19 pm
Location: from Siberia with love

Re: LibPNG version: FreeImage vs Blender 2.5

Postby jeanphi » Sun Nov 14, 2010 12:20 pm

Hi,

The situation looks ugly :? I don't see how it will work. However the version we use fixes various security issues, so they might be better off with the new version too.

Jeanphi
jeanphi
Developer
 
Posts: 6570
Joined: Mon Jan 14, 2008 7:21 am

Re: LibPNG version: FreeImage vs Blender 2.5

Postby SATtva » Sun Nov 14, 2010 12:35 pm

Maybe we can ask ZanQdo to update libpng over the graphicall compilation systems?
Linux builds packager
聞くのは一時の恥、聞かぬのは一生の恥
User avatar
SATtva
Developer
 
Posts: 5487
Joined: Tue Apr 07, 2009 12:19 pm
Location: from Siberia with love

Re: LibPNG version: FreeImage vs Blender 2.5

Postby jeanphi » Sun Nov 14, 2010 1:16 pm

Hi,

Yes, that's what I was thinking and was just dropping him a note.

Jeanphi
jeanphi
Developer
 
Posts: 6570
Joined: Mon Jan 14, 2008 7:21 am


Return to Compilation & Portability

Who is online

Users browsing this forum: No registered users and 0 guests