<div dir="ltr">Hi all,<div><br></div><div>I tried to compile Cycles standalone on windows/vs2013 yet met quite some problems (without checking WITH_CYCLES_STANDALONE and WITH_CYCLES_STANDALONE_GUI, blender can be built smoothly). I searched the documents but I can&#39;t find a very clear tutorial about that (or I missed it). I put the problems here. Thanks in advance if anyone could give some helps.</div><div><br></div><div>1. when I tried to config the project by cmake, it showed errors in blender/intern/cycles/app/CMakeLists.txt (line 83) when it went to target_link_libraries_decoupled(${target} OSL_LIBRARIES). It&#39;s because the OSL_LIBRARIES was appended by unnecessary &quot;optimized&quot; and &quot;debug&quot; which would be appended again in the macro target_link_libraries_decoupled. I wrote a small function to delete them and the VS solution can be generated successfully.</div><div><br></div><div><div>function(clean_lib_prefix_suffix lib_list_new lib_list)</div><div>  list(REMOVE_ITEM lib_list &quot;optimized&quot;)</div><div>  list(REMOVE_ITEM lib_list &quot;debug&quot;)</div><div>  foreach(_ele ${lib_list})</div><div>    string(REPLACE &quot;_d&quot; &quot;&quot; _ele ${_ele})</div><div>    list(APPEND lib_list_temp ${_ele})</div><div>  endforeach()</div><div>  list(REMOVE_DUPLICATES lib_list_temp)</div><div>  set(${lib_list_new} ${lib_list_temp} PARENT_SCOPE)</div><div>endfunction()</div></div><div><br></div><div>2. Then I tried to build the solution (release version). It output many similar errors when compiling the cycles project</div><div><br></div><div><div>63&gt;LLVMAnalysis.lib(ConstantFolding.obj) : error LNK2038: mismatch detected for &#39;_ITERATOR_DEBUG_LEVEL&#39;: value &#39;2&#39; doesn&#39;t match value &#39;0&#39; in cycles_standalone.obj</div></div><div><br></div><div>Can anyone give some clues? Thanks!</div><div><br></div><div>Best,</div><div>Lin</div></div>