LuxBlend25 and pylux on Ubuntu 64 - HELP!

Discussion related to the 'LuxBlend' Blender 2.4+ python exporter script.

Moderators: Ratow, SATtva, coordinators

Re: LuxBlend25 and pylux on Ubuntu 64 - HELP!

Postby Disnel » Sun Aug 28, 2011 5:58 am

I have the same problem. Libpng version 1.2.44 from ubuntu.
Disnel
 
Posts: 49
Joined: Fri Apr 17, 2009 3:49 am
Location: Praha, Czech republic

Re: LuxBlend25 and pylux on Ubuntu 64 - HELP!

Postby SATtva » Sun Aug 28, 2011 6:14 am

Have you tried upgrading to libpng-1.4.8?
Linux builds packager
聞くのは一時の恥、聞かぬのは一生の恥
User avatar
SATtva
Developer
 
Posts: 5498
Joined: Tue Apr 07, 2009 12:19 pm
Location: from Siberia with love

Re: LuxBlend25 and pylux on Ubuntu 64 - HELP!

Postby Disnel » Sun Aug 28, 2011 9:04 am

Tried to install libpng-1.4.8 into /opt/libpng-1.4.8 and set LD_LIBRARY_PATH to /opt/libpng-1.4.8/lib ... no luck. I also tried set LD_PRELOAD=/opt/libpng-1.4.8/lib/libpng.so ... no luck again. And I'am unable to find packaged version of libpng14 for my distrubution (Ubuntu 11.04).

If I try ldd blender, it shows line

libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007fea8b5e5000)

there may be the problem. Now I'am trying to recompile blender with libpng-1.4, but didn't succeeded yet (it uses system libpng, I don't know right way how to point it to another libpng, yet)\

EDIT> Why is luxrender compiled with version of libpng not available in current distributions?
Disnel
 
Posts: 49
Joined: Fri Apr 17, 2009 3:49 am
Location: Praha, Czech republic

Re: LuxBlend25 and pylux on Ubuntu 64 - HELP!

Postby SATtva » Sun Aug 28, 2011 9:15 am

I've rechecked: indeed, you have to compile Blender yourself against libpng-1.4x for PNG textures to work in material preview. Unfortunately, official Blender builds are statically linked with libpng-1.2x which conflicts with pylux module.
Linux builds packager
聞くのは一時の恥、聞かぬのは一生の恥
User avatar
SATtva
Developer
 
Posts: 5498
Joined: Tue Apr 07, 2009 12:19 pm
Location: from Siberia with love

Re: LuxBlend25 and pylux on Ubuntu 64 - HELP!

Postby Disnel » Sun Aug 28, 2011 9:27 am

I succeeded with recompilation, now I have blender using libpng14:

Code: Select all
ldd blender | grep png
   libpng14.so.14 => /opt/libpng-1.4.8/lib/libpng14.so.14 (0x00007f44d0579000)


But i get following errors and blender does not start at all:

Code: Select all
./blender
libpng warning: Application was compiled with png.h from libpng-1.2.44
libpng warning: Application  is  running with png.c from libpng-1.4.8
libpng warning: Incompatible libpng version in application and library
Cannot png_create_read_struct
Unknown fileformat
found bundled python: /home/disnel/programs/blender-svn/2.59/python
[Lux 2011-Aug-28 16:26:04] Using pylux version 0.8
libpng warning: Application was compiled with png.h from libpng-1.2.44
libpng warning: Application  is  running with png.c from libpng-1.4.8
libpng warning: Incompatible libpng version in application and library
Cannot png_create_read_struct
Unknown fileformat
libpng warning: Application was compiled with png.h from libpng-1.2.44
libpng warning: Application  is  running with png.c from libpng-1.4.8
libpng warning: Incompatible libpng version in application and library
Cannot png_create_read_struct
Unknown fileformat
Segmentation fault


Probably some other library is using older libpng. I don't know how to upgrade whole distribution to use libpng14, even in Oneiric is libpng12 and no libpng14 ....
Disnel
 
Posts: 49
Joined: Fri Apr 17, 2009 3:49 am
Location: Praha, Czech republic

Re: LuxBlend25 and pylux on Ubuntu 64 - HELP!

Postby SATtva » Sun Aug 28, 2011 2:20 pm

Sorry, can't help here, maybe more experienced Ubuntu/Debian users could suggest something (i'm a Gentoo user). Unfortunately, we cannot downgrade libpng for Lux due to Freeimage.
Linux builds packager
聞くのは一時の恥、聞かぬのは一生の恥
User avatar
SATtva
Developer
 
Posts: 5498
Joined: Tue Apr 07, 2009 12:19 pm
Location: from Siberia with love

Re: LuxBlend25 and pylux on Ubuntu 64 - HELP!

Postby Disnel » Sun Aug 28, 2011 2:28 pm

I gived it up and installed Blender and Luxrender from Launchpad ppa's, they works together (also it is a proof, that it can be done ;-). It is version 0.9dev, hope it will work for me as well as stable 0.8 (I didn't noticed any problem, yet).

Thank you for your help.
Disnel
 
Posts: 49
Joined: Fri Apr 17, 2009 3:49 am
Location: Praha, Czech republic

Re: LuxBlend25 and pylux on Ubuntu 64 - HELP!

Postby SATtva » Sun Aug 28, 2011 2:30 pm

You mean PNG textures are previewed ok? What about JPG?
Linux builds packager
聞くのは一時の恥、聞かぬのは一生の恥
User avatar
SATtva
Developer
 
Posts: 5498
Joined: Tue Apr 07, 2009 12:19 pm
Location: from Siberia with love

Re: LuxBlend25 and pylux on Ubuntu 64 - HELP!

Postby Disnel » Sun Aug 28, 2011 3:16 pm

Both PNG and JPG textures are working in preview. And internal mode render works as well. I used these ppas:

https://launchpad.net/~irie/+archive/blender
https://launchpad.net/~kayo-k11-4/+archive/lighter/

UPDATE: I forgot, that I must modify a bit file exporter/materials.py to get imagemaps working (othervise exporter crashes). Details I reported here:

viewtopic.php?f=11&t=4516&p=70390#p70390
Disnel
 
Posts: 49
Joined: Fri Apr 17, 2009 3:49 am
Location: Praha, Czech republic

Re: LuxBlend25 and pylux on Ubuntu 64 - HELP!

Postby BrunoCornelsen » Mon Sep 12, 2011 11:18 am

OMG, this "solution" is too hard for me. In a couple of days, MAYBE, I'll be able to understand it... :cry:

I'm just an CG artist, not a programmer. That why Windows or Macs are more popular.
BrunoCornelsen
 
Posts: 19
Joined: Thu May 14, 2009 12:05 pm

PreviousNext

Return to LuxBlend (Blender Exporter)

Who is online

Users browsing this forum: No registered users and 2 guests