<div dir="ltr">Hi Sergey, many thanks for that.  I&#39;ll try building the upstream branch as you suggested, and the bisection process.  One quick thing -- I was trying to build by running cmake, and pointing it to all the pre-built mac libraries that I downloaded from <a href="http://blender.org">blender.org</a>.  Presumably this is what you do?  The problems I&#39;m having seem to be related to static linking, and I notice most of the prebuilt libs are static libraries.</div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 1, 2015 at 4:59 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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Linux build environment uses gcc-4.7 (which could make affect on the linking issue you&#39;re having). I also just tested with clang-3.5 here and it worked just fine. So afraid not much help can provide you, however:<br></div><div><br></div><div>- Try building upstream version 1.5.11 and see if it works fine (1.5.11 is what the branch is based on, plus some commits on top of it). If it works then you&#39;ll narrow possible build regressions form our side to 3 commits. It if fails. If it doesn&#39;t compile:</div><div>- Try building latest OSL upstream version</div><div><br></div><div>If latest upstream compiles fine then you can start bisecting for the commit which solves compilation for you. If it fails then we&#39;re unable to help you and you need to contact OSL guys in their ML.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 31, 2015 at 5:05 PM, Kevin Atkinson <span dir="ltr">&lt;<a href="mailto:kevin.atkinson@gmail.com" target="_blank">kevin.atkinson@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">Hi Sergey,<div><br></div><div>Thanks for the reply.  </div><span><div><br></div><div>&gt;<span style="font-size:12.8000001907349px">Is it OSL which has issues with compilation or it&#39;s blender which fails to link against OSL library you built?</span></div><div><br></div></span><div>It&#39;s compilation of the patched version of OSL that is used in Blender.  The libraries actually compile without errors, but anything that links against them (e.g., the test executables in OSL or Blender) will have missing symbols.  All the missing symbols are from the C++ standard library.  So it&#39;s lots of this:</div><div><br></div><div>















<p><b><i>Linking CXX executable accum_test</i></b></p><p><i>Undefined symbols for architecture x86_64:</i></p>
<p><i>  &quot;std::string::find_first_of(char const*, unsigned long, unsigned long) const&quot;, referenced from:</i></p>
<p><i>      OpenImageIO::v1_4::Strutil::get_rest_arguments(std::string const&amp;, std::string&amp;, std::map&lt;std::string, std::string, std::less&lt;std::string&gt;, std::allocator&lt;std::pair&lt;std::string const, std::string&gt; &gt; &gt;&amp;) in libOpenImageIO.a(strutil.cpp.o)</i></p>
<p><i>  &quot;std::string::find(char, unsigned long) const&quot;, referenced from:</i></p>
<p><i>      bool boost::char_separator&lt;char, std::char_traits&lt;char&gt; &gt;::operator()&lt;__gnu_cxx::__normal_iterator&lt;char const*, std::string&gt;, std::string&gt;(__gnu_cxx::__normal_iterator&lt;char const*, std::string&gt;&amp;, __gnu_cxx::__normal_iterator&lt;char const*, std::string&gt;, std::string&amp;) in libOpenImageIO.a(strutil.cpp.o)</i></p>
<p><i>  &quot;std::basic_stringbuf&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;::str() const&quot;, referenced from:</i></p>
<p><i>      OpenImageIO::v1_4::ustring::getstats(bool) in libOpenImageIO.a(ustring.cpp.o)</i></p>
<p><i>      OpenImageIO::v1_4::Strutil::wordwrap(OpenImageIO::v1_4::string_view, int, int) in libOpenImageIO.a(strutil.cpp.o)</i></p>
<p><i>      std::string OpenImageIO::v1_4::Strutil::format&lt;long long&gt;(char const*, long long const&amp;) in libOpenImageIO.a(strutil.cpp.o)</i></p>
<p><i>      std::string OpenImageIO::v1_4::Strutil::format&lt;int, double, char const*&gt;(char const*, int const&amp;, double const&amp;, char const* const&amp;) in libOpenImageIO.a(strutil.cpp.o)</i></p>
<p><i>      std::string OpenImageIO::v1_4::Strutil::format&lt;int, int&gt;(char const*, int const&amp;, int const&amp;) in libOpenImageIO.a(strutil.cpp.o)</i></p>
<p><i>      std::string OpenImageIO::v1_4::Strutil::format&lt;int&gt;(char const*, int const&amp;) in libOpenImageIO.a(strutil.cpp.o)</i></p>
<p><i>      std::string OpenImageIO::v1_4::Strutil::format&lt;int, int, double&gt;(char const*, int const&amp;, int const&amp;, double const&amp;) in libOpenImageIO.a(strutil.cpp.o)</i></p>
<p>      ...</p></div><div><br></div><div>All the libraries that I link OSL to are the prebuilt ones for mac in darwin-9.x.universal.  I&#39;m using clang 6.0 on Mavericks.</div>







<div><br></div><div><br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 31, 2015 at 5:23 AM, Sergey Sharybin <span dir="ltr">&lt;<a href="mailto:sergey.vfx@gmail.com" target="_blank">sergey.vfx@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">Hi,<div><br></div><div>That&#39;s a bit vague information. Is it OSL which has issues with compilation or it&#39;s blender which fails to link against OSL library you built?</div><div><br></div><div>In any case, having an exact error messages would help.</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Sat, Jan 31, 2015 at 7:41 AM, Kevin Atkinson <span dir="ltr">&lt;<a href="mailto:kevin.atkinson@gmail.com" target="_blank">kevin.atkinson@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">I&#39;m using OSL gabor noise for displacements in Blender, and I&#39;ve been noticing nasty circle artifacts, coming from the rather coarse thresholding of the gaussian kernel.  I&#39;ve been doing experiments with the gabor noise code outside of blender, and got very good results by simply changing the line<div><br></div><div>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">static</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">const</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">float</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Gabor_Truncate</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">0.02f;</span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, sans-serif"><span style="white-space:normal">to</span></font></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, sans-serif"><span style="white-space:normal"><br></span></font></pre><pre style="margin-top:0px;margin-bottom:0px"><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">static</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">const</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">float</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Gabor_Truncate</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">0.0002f;</span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:arial,sans-serif;white-space:normal">This causes the search radius for impulses to be about half again as large, at some performance cost.  But not bad for reducing the artifact magnitude by a factor of a hundred.</span><br></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:arial,sans-serif;white-space:normal"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, sans-serif"><span style="white-space:normal">I&#39;d like to get this working in Blender just for my own use and further testing, but I&#39;m having trouble building OSL for blender.  I&#39;ve checked out the &quot;blender-fixes&quot; branch, but I get linking errors because for some reason it doesn&#39;t link to the C++ standard library.  </span></font></pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, sans-serif"><span style="white-space:normal">I don&#39;t know much about CMake, and I am under the gun a bit, so I&#39;m trying to</span></font><span style="white-space:normal;font-family:arial,sans-serif"> to get in touch with whoever built the mac OSL library for blender to see if they have any suggestions.  Would that be </span><font face="arial, sans-serif"><span style="white-space:normal">Lukas Tönne?</span></font></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, sans-serif"><span style="white-space:normal"><br></span></font></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, sans-serif"><span style="white-space:normal">Many thanks, and any help much appreciated,</span></font></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, sans-serif"><span style="white-space:normal"><br></span></font></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, sans-serif"><span style="white-space:normal">Kevin Atkinson</span></font></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial, sans-serif"><span style="white-space:normal"><br></span></font></pre><div><font face="arial, sans-serif"><span style="white-space:normal"><br></span></font></div></pre></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" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
<br></blockquote></div><span><font color="#888888"><br><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>
<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" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
<br></blockquote></div><br></div>
</div></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" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div><span style="color:rgb(102,102,102)">With best regards, Sergey Sharybin</span></div></div>
</div>
</div></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></div>