<div dir="ltr"><div><div>Hi all, <br></div>I&#39;m trying to get cycles standalone built with OSL, but I&#39;m having some problems.<br><br></div>I tried first with blender/build_files/build_environment/install_deps.sh --with-osl<br clear="all"><div>But this resulted in this error :<br><br>Building OpenShadingLanguage-1.5.11<br>Ensuring /opt/lib exists and is writable by us<br>From <a href="https://github.com/Nazg-Gul/OpenShadingLanguage" target="_blank">https://github.com/Nazg-Gul/OpenShadingLanguage</a><br> * branch            blender-fixes -&gt; FETCH_HEAD<br>Already up-to-date.<br>HEAD is now at 22ee5ea... Workaround to make OSl compilable with older OIIO library<br>HEAD is now at 22ee5ea Workaround to make OSl compilable with older OIIO library<br>-- The C compiler identification is GNU 4.8.2<br>-- The CXX compiler identification is GNU 4.8.2<br>-- Check for working C compiler: /usr/bin/cc<br>-- Check for working C compiler: /usr/bin/cc -- works<br>-- Detecting C compiler ABI info<br>-- Detecting C compiler ABI info - done<br>-- Check for working CXX compiler: /usr/bin/c++<br>-- Check for working CXX compiler: /usr/bin/c++ -- works<br>-- Detecting CXX compiler ABI info<br>-- Detecting CXX compiler ABI info - done<br>-- Project source dir = /home/efesto/src/blender-deps/OpenShadingLanguage-1.5.11<br>-- Project build dir = /home/efesto/src/blender-deps/OpenShadingLanguage-1.5.11/build<br>-- Using gcc 4.8 as the compiler<br>-- CMAKE_CXX_COMPILER is /usr/bin/c++<br>-- CMAKE_CXX_COMPILER_ID is GNU<br>-- platform = linux64<br>-- OPENIMAGEIOHOME = /opt/lib/oiio<br>-- #define ILMBASE_VERSION_STRING &quot;2.1.0&quot;<br>-- Looking for include file pthread.h<br>-- Looking for include file pthread.h - found<br>-- Looking for pthread_create<br>-- Looking for pthread_create - not found<br>-- Looking for pthread_create in pthreads<br>-- Looking for pthread_create in pthreads - not found<br>-- Looking for pthread_create in pthread<br>-- Looking for pthread_create in pthread - found<br>-- Found Threads: TRUE  <br>CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):<br>  Could NOT find IlmBase (missing: ILMBASE_IEX-2_1_LIBRARIES<br>  ILMBASE_IMATH-2_1_LIBRARIES ILMBASE_ILMTHREAD-2_1_LIBRARIES)<br>Call Stack (most recent call first):<br>  /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)<br>  src/cmake/modules/FindIlmBase.cmake:214 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)<br>  src/cmake/externalpackages.cmake:37 (find_package)<br>  CMakeLists.txt:200 (include)<br><br></div><div>I then tried to rely on the system libraries (I&#39;m on mint 17).<br></div><div>(osl version is 1.4.2 )<br></div><div><br></div><div>But it fails during the compilation with : <br></div><div><br>/home/efesto/SRC/cycles/src/kernel/osl/osl_closures.cpp: In function ‘void ccl::register_closure(OSL::ShadingSystem*, const char*, int, OSL::ClosureParam*, OSL::PrepareClosureFunc)’:<br>/home/efesto/SRC/cycles/src/kernel/osl/osl_closures.cpp:182:58:
 error: invalid conversion from ‘int’ to ‘OSL::CompareClosureFunc {aka 
bool (*)(int, const void*, const void*)}’ [-fpermissive]<br>  ss-&gt;register_closure(name, id, params, prepare, NULL, 16);<br>                                                          ^<br>In file included from /home/efesto/SRC/cycles/src/kernel/osl/osl_closures.h:40:0,<br>                 from /home/efesto/SRC/cycles/src/kernel/osl/osl_closures.cpp:36:<br>/usr/include/OSL/oslexec.h:290:18: error:   initializing argument 6 of ‘virtual void OSL::ShadingSystem::register_closure(const
 char*, int, const OSL::ClosureParam*, OSL::PrepareClosureFunc, 
OSL::SetupClosureFunc, OSL::CompareClosureFunc)’ [-fpermissive]<br>     virtual void register_closure(const char *name, int id, const ClosureParam *params,<br>                  ^<br>make[2]: *** [src/kernel/osl/CMakeFiles/cycles_kernel_osl.dir/osl_closures.cpp.o] Error 1<br>make[1]: *** [src/kernel/osl/CMakeFiles/cycles_kernel_osl.dir/all] Error 2<br>make: *** [all] Error 2<br><br></div>Thanks.<div class=""><div id=":1g6" class="" tabindex="0"><img class="" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><font size="1">-------------------------------------------------------------------------------------------------------------------<br>Efesto Lab LTD, Chancery Station House, 31-33 High Holborn, London WC1V 6AX<br>-------------------------------------------------------------------------------------------------------------------</font><br><div><font size="1"><a href="http://www.efestolab.uk" target="_blank">www.efestolab.uk</a><br><br></font></div><div><font size="1">skype: lorenzo.efestolab</font></div><div><font size="1">phone: +44 7961031018</font></div><div><font size="1"><br></font></div></div></div>
</div>