[Bug 1120406] New: blender: "OSL support disabled in this build."
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406 Bug ID: 1120406 Summary: blender: "OSL support disabled in this build." Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.0 Hardware: x86-64 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: X11 Applications Assignee: bnc-team-screening@forge.provo.novell.com Reporter: Ulrich.Windl@rz.uni-regensburg.de QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- I have a book (ISBN 9783836244541) on Blender 2.7 that demonstrates OSL-Scripts (OSL = Open Shading Language). Unfortunately I cannot follow the books instructions (page 508) for a demonstration as Blender (blender-2.79b-lp150.2.3.1.x86_64) seems to be built without OSL support. When trying to activate a loaded script, the message is: "OSL support disabled in this build." The example script is: include "stdosl.h" shader sine_pattern( color Color = 0.8, float Time = 1.0, float Intensity = 1.0, int Stripes = 10, point Vector = P, output float Fac = 1.0, output color ColorOut = 0.8) { point Pos = Vector; float pattern_col = 0.0; for( float i = 0.0; i < Stripes; ++i ) { float t = Time/10.0 * (i); Pos[0] += sin( (Pos[1] + t) * 10.0 ) * 0.1; float f = abs(Intensity / Pos[0] * 0.001); pattern_col += f; } Fac = pattern_col; ColorOut = Color * Fac; } -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406
Andreas Stieger
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406#c1
Dave Plater
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406#c2
Andreas Stieger
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406#c3
Dave Plater
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406#c4
Dave Plater
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406#c5
--- Comment #5 from Dave Plater
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406#c6
Ulrich Windl
find blender-2.79-linux-glibc219-x86_64 -name stdosl.h blender-2.79-linux-glibc219-x86_64/2.79/scripts/addons/cycles/shader/stdosl.h
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406#c7
--- Comment #7 from Dave Plater
I had to install libboost_wave1_66_0 before rpm -vU blender-2.79b-lp150.280.1.x86_64.rpm liboslexec1_9-1.9.13-lp150.4.1.x86_64.rpm liboslcomp1_9-1.9.13-lp150.4.1.x86_64.rpm liboslquery1_9-1.9.13-lp150.4.1.x86_64.rpm. Is that a new dependency, or some mistake?
Unfortunately that build does not fix the problem (some files seem to be missing): --- WARNING: /tmp/tmp3ef8bqud.osl:0: warning: Unable to find "stdosl.h" ERROR: /tmp/tmp3ef8bqud.osl:1: error: error: could not find include file: /usr/share/blender/2.79/scripts/addons/cycles/shader/stdosl.h
WARNING: /tmp/tmp65h410w7.osl:0: warning: Unable to find "stdosl.h" ERROR: /tmp/tmp65h410w7.osl:1: error: error: could not find include file: /usr/share/blender/2.79/scripts/addons/cycles/shader/stdosl.h
Error: OSL script compilation failed, see console for errors All of the shader files are in OpenShadingLanguage-shaders-devel, I'll have a look at blenders build options and where it looks for the shader files otherwise I'll have to package the shaders in blender directories. I'll also ask the blender developers. Unfortunately only gentoo and archlinux have
Please don't use rpm for installation, I can't guarantee the integrity of your system. Use zypper, if you had it would have pulled in boost_wave as a dependency of liboslexec1_9 one of the many OpenShaderLanguage libraries. See: https://build.opensuse.org/package/binaries/home:plater:blender/OpenShadingL... for all of the built binaries. packaged OSL so I'm basically working blind. I'll repackage the shaders.
--- However I had tried some separate build of Blender 2.7 (blender-2.79-linux-glibc219-x86_64), and that one worked. And that build includes the file:
find blender-2.79-linux-glibc219-x86_64 -name stdosl.h blender-2.79-linux-glibc219-x86_64/2.79/scripts/addons/cycles/shader/stdosl.h
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406#c8
Dave Plater
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406#c9
--- Comment #9 from Ulrich Windl
Please don't use rpm for installation, I can't guarantee the integrity of your system. Use zypper, if you had it would have pulled in boost_wave as a dependency of liboslexec1_9 one of the many OpenShaderLanguage libraries. See: https://build.opensuse.org/package/binaries/home:plater:blender/ OpenShadingLanguage/Leap_15.0 for all of the built binaries.
Actually when I tried using zypper I got an error message like this: Refreshing service 'Blender-2.7'. Problem retrieving the repository index file for service 'Blender-2.7': File './repo/repoindex.xml' not found on medium 'https://download.opensuse.org/repositories/home:/plater:/blender/Leap_15.0?c...' Check if the URI is valid and accessible. -- So I used RPM (eventually even zypper uses RPM). (In reply to Dave Plater from comment #8)
Found the problem, please install blender-devel which in future will be pulled in automatically.
I hope this is a temporary work-around, and not the "solution". Is the blender-devel from your repository? I only found a blender-cycles-devel... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406#c10
Dave Plater
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406#c11
Dave Plater
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406#c12
Ulrich Windl
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406#c13
--- Comment #13 from Ulrich Windl
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406
http://bugzilla.opensuse.org/show_bug.cgi?id=1120406#c14
Dave Plater
participants (1)
-
bugzilla_noreply@novell.com