<div dir="ltr">Hi,<div><br></div><div>Seems several issues are mixed in here. First one is related on `install_deps.sh --with-osl` not doing OpenEXR compilation but still tries to use the latest OpenEXR libraries for OSL. You might try something like this: `install_deps.sh --with-all --skip-opencollada`. This might install a bit more packages and compile some extra libs than you need just for Cycles but it should work.</div><div><br></div><div>Second issue is caused by the fact that we don&#39;t really support OSL 1.4 anymore. In fact, the only supported versions are either current 1.6 development branch or 1.5 version from our github repository with the backported closure alignment fixes. This is because all other versions are not stable for usage in Blender.</div><div><br></div><div>Alternatively, you can just compile latest OSL and OIIO manually with cmake, it&#39;s pretty simple actually and guaranteed to work :)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 6, 2015 at 6:18 PM, lorenzo angeli <span dir="ltr">&lt;<a href="mailto:lorenzo.angeli@efestolab.uk" target="_blank">lorenzo.angeli@efestolab.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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><div><img src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div><span class="HOEnZb"><font color="#888888"><br clear="all"><br>-- <br><div><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: <a href="tel:%2B44%207961031018" value="+447961031018" target="_blank">+44 7961031018</a></font></div><div><font size="1"><br></font></div></div></div>
</font></span></div>
<br>_______________________________________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-cycles" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div><span style="color:rgb(102,102,102)">With best regards, Sergey Sharybin</span></div></div>
</div>