OSL script comilation fails #78065
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Asset System
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
8 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#78065
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Darwin-19.5.0-x86_64-i386-64bit 64 Bits
Graphics card: AMD Radeon Pro 555 OpenGL Engine ATI Technologies Inc. 4.1 ATI-3.9.15
Blender Version
Broken: version: 2.83.0, branch: master, commit date: 2020-06-03 14:38, hash:
211b6c29f7
Worked: (newest version of Blender that worked as expected)
Short description of error
OSL script compilation fails, Also when using the Blender documentation example
https://docs.blender.org/manual/en/latest/render/shader_nodes/osl.html#script-node
Exact steps for others to reproduce the error
See if OSL works on your mac.
BlenderTest.osl
Added subscriber: @Hemdrup
OSL script comilation failesto OSL script comilation failes and no message in the console.Added subscriber: @Josephbburg
That isn't the console. On MacOS you have to start Blender from a terminal window to see the console prints. Only Windows opens from a console by default. You should use a terminal anyways-- you can't have multiple instances otherwise (well, on a Mac).
This probably isn't a bug, but if the OSL documentation example fails to compile, that is a problem that is worth fixing.
Added subscriber: @Joseph
@Joseph Brandenburg (TheAngerSpecialist)
Opened Blender with the terminal. The terminal says;
ERROR: /Applications/Blender.app/Contents/Resources/2.83/scripts/addons/cycles/shader/stdcycles.h:31: error: error: could not find include file: stdosl.h
OSL script comilation failes and no message in the console.to OSL script comilation failsOdd, If I'm not mistaken, that is what Cycles says when it has not been built with OSL support. Did you build Blender or download it?
I suppose this sort of thing may also happen if a package is not found on the system, but I don't know if that's true in Mac like it is in the Linux world. I doubt Blender would rely on system packages like that on a Mac... Even on Linux, Blender is available as a snap package.
Added subscriber: @iss
I had no problem compiling this shader on windows. Can't check on mac really
@Joseph Brandenburg (TheAngerSpecialist)
I download Blender and then drag it into the application folder to replace the previous version of Blender in the Application folder.
No expert on how the Mac apps work. But, this is how I understand it.
Each application is like an app on Mac with all its content inside like a folder, why the drag and drop works, and why there is no uninstall or install on Mac. Just drag and drop.
Added subscriber: @vitorbalbio-3
Added subscriber: @IPv6
Have same problem on Mac... OSL shaders are not compilable anymore
I have the same problem in MacOs (Catalina 10.15.16). Compilation of any OLS-script is failed with error message "Unable to find stdosl.h". The problem exists in current official release 2.83.4 and an latest 2.91
This OSL files was perfectly compilable on same machine in 2.82a (!)
i managed to workaround problem, may be this can help:
I checked content of "/scripts/addons/cycles/shader/" folders and there is no stdosl.h, see screenshots -
But the file present in same path in 2.82a, see screenshots -
after copying stdosl.h, oslutil.h, vector2.h, vector4.h from 2.82 into 2.83 on same location - OSL shaders started to compile without errors
So probably dmg bundling miss some OSL-related files... with missing files compilation works as expected
Removed subscriber: @Joseph
This issue was referenced by
421ce37f9c
This issue was referenced by
c5519d4b6f
Changed status from 'Needs Triage' to: 'Resolved'