Package Search
 
Members: 351 | Topics: 765 | Posts: 3209
We welcome our newest member: Somewhat Reticent
Info
» You aren't logged in, login or registerOnline: No members and 5 guests | Time: 10:17
Luxrender recompile and install scripts
paldo Support Forum    Upkg    Package Specifications
Reply Reply   Subscribe Topic Subscribe Topic
5 posts found.
 Luxrender recompile and install scripts
Senior Mitglied
 
 
 
Posts: 216
Registered: 2008-07-04
The package lux needs recompilation against libpng:

(...)
Processing time: 0.050849

Running Luxrender:
(nice -n 0 "/usr/bin/luxrender" -i 180 "/tmp/default.lxs")&
libpng warning: Application was compiled with png.h from libpng-1.4.1
libpng warning: Application is running with png.c from libpng-1.2.7
libpng error: Incompatible libpng version in application and library
Saved session recovery to /tmp/quit.blend

It also is not installing the Blender scripts they are not present on the source package it is located at : http://src.luxrender.net/luxblend/
 
..............................
OSs: Paldo-testing x86_64 :: HP Pavilion dv9680ez
Profile   Private Message   E-Mail
Created: 2010-06-06 19:20
Highlight selected Text   Edit   Delete   Quote Reply
 Re: Luxrender recompile and install scripts
Senior Mitglied
 
 
 
Posts: 216
Registered: 2008-07-04
EDIT: PATCH REMOVED BECAUSE IT IS NOT NEEDED
 
..............................
OSs: Paldo-testing x86_64 :: HP Pavilion dv9680ez
Profile   Private Message   E-Mail
Created: 2010-06-06 19:22 | Modified: 2010-06-07 00:49 by diogo
Highlight selected Text   Edit   Delete   Quote Reply
 Re: Luxrender recompile and install scripts
Senior Mitglied
 
 
 
Posts: 216
Registered: 2008-07-04
It still didn't fix my problem and the patch is not needed since there is a sed command that does the job

luxrender points to libpng14 but still crashes after 2 minutes when trying to save a png on /tmp because of imcompatible png.c

EDIT: As of today luxrender released version 0.7.0RC3, which I called 0.6.99 (last RC). So I'm compiling it to see if the problem is really luxrender or does it rely on png or wxgtk... And also to see if the next version is going to be worth the upgrade. The only case is that new luxrender requires freeimage which I had to search and create a package before. If the new version fix the png problem, I'll post in here the the specs for freeimage and the spec for luxrender (there are some modification from the original spec for 0.6.1)
 
..............................
OSs: Paldo-testing x86_64 :: HP Pavilion dv9680ez
Profile   Private Message   E-Mail
Created: 2010-06-07 00:33 | Modified: 2010-06-07 01:37 by diogo
Highlight selected Text   Edit   Delete   Quote Reply
 Re: Luxrender recompile and install scripts
Senior Mitglied
 
 
 
Posts: 216
Registered: 2008-07-04
OK new version of luxrender works great but not because the bug has being fixed, its because luxrender no longer uses a wxgtk interface, they ported the gui to qt4.

So the problem is actually related to WxGtk which needs a rebuild adding the following options to the configure line:

Code[In neuem Fenster öffnen]
--with-libpng=sys --with-libxpm=sys --with-libjpeg=sys --with-libtiff=sys


Since the wxGTK 2.8.x is not compatible with the png_sig call we need to do a sed before the configure so that the compilation don't fail:

Code[In neuem Fenster öffnen]
sed -i -e 's:png_check_sig:png_sig_cmp:g' ../wxGTK-$VERSION/configure


This need to come before configure line.

Only requiring for wxgtk to not use static libraries doesn't seem to do the trick so you need to add these the configure command. In fact wxGTK doesn't use static libraries but instead it uses it's own libraries for png (builtins) which is version 1.2.7 while all the rest of the system is version 1.4.1.

Now to have the new luxrender version which seems to be faster a better you need to add another package before called freeimage : http://freeimage.sourceforge.net/ so there you need to download the source code version 3.13.1 and save as FreeImage-3.13.1.tar.bz2. here is the spec file for freeimage

Code[In neuem Fenster öffnen]
<?xml version="1.0"?>
<package name="freeimage">
<description>Library project for developers who would like to support popular graphics image formats</description>
<!-- Contribution: Diogo Lima -->
<releases>
<release version="3.13.1" revision="1" branch="testing">
<deps>
<dep name="gcc" />
</deps>
<build>
<script>
<!-- Source Code: http://downloads.sourceforge.net/freeimage/FreeImage3131.zip -->
<archive name="FreeImage-$VERSION">
<cmd>make</cmd>
<cmd>make install</cmd>
<!-- Extra -->
<cmd>make -f Makefile.fip</cmd>
<cmd>make -f Makefile.fip install</cmd>
</archive>
</script>
</build>
</release>
</releases>
</package>


After making freeimage package you need to update luxrender to version 0.6.99. You'll need to grab the source code from http://src.luxrender.net/lux/archive/dd0a5b5acd79.tar.bz2 and save it as lux-0.6.99.tar.bz2 , as addition the blender export scripts needs to be download from http://src.luxrender.net/luxblend/archive/24cc23d2fa2e.tar.bz2 and then extract the files and put LuxBlend_0.1.py and Icon_gen.py together with the lux-0.6.99.tar.bz2 on $REPO/sources/lux/ now you need to rename LuxBlend_0.1.py to LuxBlend-0.6.99.py and Icon_gen.py to Icon_gen-0.6.99.py (this last step is to actually don't make file confusion since the script have changed and still are named the same way as the 0.6.1 version)

Now here is the spec for lux version 0.6.99:

Code[In neuem Fenster öffnen]
<?xml version="1.0"?>
<package name="lux">
<!-- http://www.luxrender.net/ -->
<!-- Maintainer: Richard Nespithal -->
<!-- Contribution#23/11/2009: Diogo Lima -->
<description>Unbiased Renderer for Blender</description>
<releases>
<release version="0.6.99" revision="2" branch="testing">
<deps>
<dep name="boost"/>
<dep name="cmake"/>
<dep name="wxGTK"/>
<dep name="qt-4" />
<dep name="blender"/>
<dep name="libpng"/>
<dep name="jpeg"/>
<dep name="tiff"/>
<dep name="freeimage"/>
</deps>
<build>
<script>
<!-- Source Codes: http://src.luxrender.net/lux/archive/dd0a5b5acd79.tar.bz2
http://src.luxrender.net/luxblend/archive/24cc23d2fa2e.tar.bz2 -->
<archive name="lux-$VERSION">
<!-- fix build with libpng 1.4 -->
<cmd>sed -i -e 's/int_p_NULL/NULL/g' -e 's/png_set_gray_1_2_4_to_8/png_set_expand_gray_1_2_4_to_8/' core/external/cimg.h</cmd>

<!-- do not use /usr/lib64 -->
<cmd>sed -i -e '/LIB_SUFFIX 64/d' CMakeLists.txt</cmd>

<cmd>cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .</cmd>
<cmd>make</cmd>
<cmd>make install</cmd>
<install name="Icon_gen-0.6.99.py" dest="/usr/lib/blender/scripts/Icon_gen.py"/>
<install name="LuxBlend-0.6.99.py" dest="/usr/lib/blender/scripts/LuxBlend_0.1.py"/>
</archive>
</script>
</build>
</release>
</releases>
</package>


Now the observations, since the version 0.7 hasn't dropped the Wxgtk interface yet (they use as fallback when qt doesn't work) then the wxgtk dependency is needed, also since I added the blender export scripts on the spec the dependency for blender is necessary. Qt-4 is needed as explained above.

This doesn't mean that wxgtk problem is gone (it is gone for luxrender since it dropped it). Please fix the wxgtk so that other distributions don't crash, like amule and others.

After the wxGTK upgrade luxrender 0.6.1 needs to be rebuilt against it and all the packages that require it needs rebuild as well
 
..............................
OSs: Paldo-testing x86_64 :: HP Pavilion dv9680ez
Profile   Private Message   E-Mail
Created: 2010-06-07 02:08 | Modified: 2010-06-07 02:26 by diogo
Highlight selected Text   Edit   Delete   Quote Reply
 Re: Luxrender recompile and install scripts
Administrator
 
 
 
Posts: 426
Registered: 2004-09-09
It looks like wxGTK 2.8.11 already contains the necessary changes, I've triggered a build of the new version in testing.
Profile   Private Message   Web
Created: 2010-06-07 09:45
Highlight selected Text   Edit   Delete   Quote Reply
Subscribe Topic Subscribe Topic
powered by bitron board 1.23a