<div dir="ltr">Hi 雪柯,<div><br></div><div>Thank you! I have built the Cycles successfully now.</div><div><br></div><div>Best,</div><div>Lin</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 8, 2016 at 3:51 AM, 裴雪柯 <span dir="ltr">&lt;<a href="mailto:yuzukyo@gmail.com" target="_blank">yuzukyo@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"><table style="padding:8px 4px;border-spacing:0px;color:rgb(0,0,0);font-family:sans-serif"><tbody><tr><td style="padding:2px 5px;font-size:13px;vertical-align:top">you can get the stand alone cycles code form here <a href="https://git.blender.org/cycles.git" target="_blank">https://git.blender.org/cycles.git</a></td></tr></tbody></table> and use the lib which blender use for link.<div style="color:rgb(0,0,0);font-family:sans-serif"></div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">2016-03-07 17:53 GMT+08:00 Lin M <span dir="ltr">&lt;<a href="mailto:majcjc@gmail.com" target="_blank">majcjc@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Sergey,<div><br></div><div>Thank you for the reply. I&#39;m building Cycles from within Blender&#39;s sources and I have double checked out libraries from SVN.</div><div><br></div><div>I only deleted the &quot;OPTIMIZED&quot; and &quot;DEBUG&quot; before entering the macro target_link_libraries_decoupled because I found that they will be added back in the macro. If I don&#39;t delete them, there would be duplicated &quot;OPTIMIZED&quot; and &quot;DEBUG&quot; there which leads cmake to report errors.</div><div><br></div><div>Do you have some suggestions about my issue? Do I need to change to linux for example?</div><div><br></div><div>Best,</div><div>Lin</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Mon, Mar 7, 2016 at 5:29 PM, Sergey Sharybin <span dir="ltr">&lt;<a href="mailto:sergey.vfx@gmail.com" target="_blank">sergey.vfx@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><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"><span>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></span><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><span><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></span><div>This exactly because your script screwed libraries up and used debug libraries for release build (or vice verse).</div></div><span><font color="#888888"><br clear="all"><div><br></div>-- <br><div><div><span style="color:rgb(102,102,102)">With best regards, Sergey Sharybin</span></div></div>
</font></span></div></div>
<br></div></div>_______________________________________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org" target="_blank">Bf-cycles@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org" target="_blank">Bf-cycles@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div>裴雪柯<br>成都一环路东四段光明路69号<br>kidux Blendercg.com<br></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" rel="noreferrer" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
<br></blockquote></div><br></div>