You are not logged in.

#1 2009-07-19 20:03:14

Devastator
Member
From: Poland
Registered: 2008-05-27
Posts: 179

[FIX AVAILABLE] yafray broken?

Hi,
I've been trying to render an arch-themed wallpaper, that someone asked for, but I just found out that yafray renderer does not work...
Blender console output says this:

Compiled with Python version 2.6.
Checking for installed Python... got it!
Starting scene conversion.
Scene conversion done.
No export directory set in user defaults!
Will try TEMP instead: /tmp
COMMAND: yafray -c 2 "/tmp/YBtest.xml"
sh: yafray: nie znaleziono polecenia
Executed -yafray -c 2 "/tmp/YBtest.xml"-
Yafray not found
Could not execute yafray. Is it in path?

No yafray... so I reinstalled it, but it didn't help...

pacman -Ql yafray output:

[devastator@bananana ~]$ pacman -Ql yafray
yafray /usr/
yafray /usr/lib/
yafray /usr/lib/libyafraycore.so
yafray /usr/lib/libyafrayplugin.so
yafray /usr/lib/yafray/
yafray /usr/lib/yafray/libarealight.so

Hmm... no yafray?

Any suggestions?

edit:
Further investigations involved using ABS. Here is the result of package building:

src/shaders/basictex.cc: In constructor 'yafray::textureImage_t::textureImage_t(const char*, const std::string&)':
src/shaders/basictex.cc:263: error: invalid conversion from 'const char*' to 'char*'
scons: *** [src/shaders/basictex.os] Error 1
scons: building terminated because of errors.

which was followed by creating a package.

Shall I post a bug report in such case?

2nd edit:
I did makepkg -o in /var/abs/extra/yafray to get the sources.
Replacing the line 263 in src/shaders/basictex.cc:

char *ext = strrchr(filename, '.');

with this one:

const char *ext = strrchr(filename, '.');

fixed thing.
after this just do makepkg -e (uses currently fetched sources)
and makepkg -i (to install)
Yafray is up and working now.

Last edited by Devastator (2009-07-20 05:21:40)


Some applications are WYSIWYG, and some are WYSIWTF.

Offline

#2 2009-07-19 22:04:31

sandstorm
Member
From: Zurich [CH] & Mannheim [DE]
Registered: 2005-08-13
Posts: 169

Re: [FIX AVAILABLE] yafray broken?

Very good work. I can confirm this error. Can we fix it somehow? I am currently using yafray.

Best regards,
Martin

Last edited by sandstorm (2009-07-19 22:08:35)

Offline

#3 2009-07-20 05:16:11

Devastator
Member
From: Poland
Registered: 2008-05-27
Posts: 179

Re: [FIX AVAILABLE] yafray broken?

I think the best way would be to provide a patch, that would be applied from the PKGBUILD level, and will fix things automatically, but unfortunately I am not familiar enough with patching to create it for a file that is not controlled by any versioning system.

Right now I have to go to work, but perhaps later I'll try to do something about it.


Some applications are WYSIWYG, and some are WYSIWTF.

Offline

Board footer

Powered by FluxBB