[Bf-committers] osl.h macro needed

Shane Neph euclidonomy at hotmail.com
Mon Dec 9 02:56:04 CET 2013


Hey Folks - new to blender, and this my first attempt at building it.  Where do I find current bug reports in the build process?  Seems like http://developer.blender.org/ may not be the appropriate place.
Grabbed source from git.blender.org/blender.gitusing instructions at http://wiki.blender.org/index.php/Dev:Doc/Tools/Git and http://wiki.blender.org/index.php/Dev:Doc/Building_Blender/Linux/Ubuntu/CMake
Ran into a simple problem with OSL turned off in blender/intern/cycles/render/osl.h  at line 146

 OSL::ShadingAttribStateRef compile_type(Shader *shader, ShaderGraph *graph, ShaderType type);
Had to slap:#ifdef WITH_OSL#endif
around that, or else I'd receive a

[ 82%] Building CXX object intern/cycles/blender/CMakeFiles/bf_intern_cycles.dir/blender_shader.cpp.o                                                                                                          In file included from blender/intern/cycles/blender/blender_shader.cpp:21:0:                                                                                                          blender/intern/cycles/render/osl.h:146:2: error: OSL does not name a type                                                                                             OSL::ShadingAttribStateRef compile_type(Shader *shader, ShaderGraph *graph, ShaderType type);                                                                                                                  ^                                                                                                                                                                                                            make[2]: *** [intern/cycles/blender/CMakeFiles/bf_intern_cycles.dir/blender_shader.cpp.o] Error 1                                                                                                              make[1]: *** [intern/cycles/blender/CMakeFiles/bf_intern_cycles.dir/all] Error 2                                                                                                                               make: *** [all] Error 2
Hope that's useful and non-redundant.  Thanks for making such a great application.
Shane 		 	   		  


More information about the Bf-committers mailing list