<div dir="ltr">First of all ,are you building Cycles from standalone repository or from within Blender&#39;s sources?<div><br></div><div>Second of all. do you have libraries checked out from SVN?</div><div><br></div><div>Other replies are inlined.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 7, 2016 at 2:18 PM, Lin M <span dir="ltr">&lt;<a href="mailto:majcjc@gmail.com" target="_blank">majcjc@gmail.com</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><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></blockquote><div><br></div><div>&quot;OPTIMIZED&quot; and &quot;DEBUG&quot; are not unnecessary, they are required to make it possible to use different libraries for Release and Debug targets in MSVC.</div><div><br></div><div>Writing  anything to get rid of such suffixes is a wrong approach to solve your issue.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><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></blockquote><div><br></div><div>This exactly because your script screwed libraries up and used debug libraries for release build (or vice verse).</div></div><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></div>