luni, 19 iulie 2010

Sunflow rendering on Fedora 13

How to install Sunflow ?
It's pretty simple. Download the zip archive from here.
Unzip and edit the sh script sunflow.sh
from the sunflow folder.
By default the script is :

#/bin/sh

mem=1G

java -Xmx$mem -server -jar sunflow.jar $*
If we run this script will have this error :

$ sh sunflow.sh 
Invalid maximum heap size: -Xmx1G
Could not create the Java virtual machine.
The solution is:

$ whereis java
java: /usr/bin/java ...
Now change the script :

#!/bin/bash
/usr/bin/java -Xmx1024M -server -jar sunflow.jar $*
And run it ...

$ sh sunflow.sh 
The result is :

Un comentariu:

Alexander Kurtakov spunea...

Once upon a time I've packaged sunflow in Mandriva. If someone wants to bring this work into Fedora it would be way cool.
See http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/sunflow/releases/0%3A0.07.2/0.0.2mdv2010.0/SPECS/sunflow.spec?revision=434217&view=markup for details.

Trimiteți un comentariu