<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Compiling shaders using mingw in Arnold General Rendering Forum</title>
    <link>https://forums.autodesk.com/t5/arnold-general-rendering-forum/compiling-shaders-using-mingw/m-p/11050615#M2395</link>
    <description>&lt;P&gt;I tested this and while I'm able to load the plugin, it crashes as soon as it's executed. Was worth the try anyway.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jun 2019 17:08:11 GMT</pubDate>
    <dc:creator>zenop</dc:creator>
    <dc:date>2019-06-07T17:08:11Z</dc:date>
    <item>
      <title>Compiling shaders using mingw</title>
      <link>https://forums.autodesk.com/t5/arnold-general-rendering-forum/compiling-shaders-using-mingw/m-p/11050605#M2385</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Is it possible to compile shaders to windows .dll's from Linux? I've been trying through mingw, but even though the compilation succeeds, it seems the shader can't be loaded (unable to load dynamic library some_shader.dll: The specified module could not be found.)&lt;/P&gt;&lt;P&gt;I've been trying with x86_64-w64-mingw32-g++ .&lt;/P&gt;&lt;P&gt;Has anyone had any luck on this front? Is this supposed to work?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 04:45:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-general-rendering-forum/compiling-shaders-using-mingw/m-p/11050605#M2385</guid>
      <dc:creator>zenop</dc:creator>
      <dc:date>2019-06-04T04:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling shaders using mingw</title>
      <link>https://forums.autodesk.com/t5/arnold-general-rendering-forum/compiling-shaders-using-mingw/m-p/11050606#M2386</link>
      <description>&lt;P&gt;Lol you are a shading god, I loved your tutorials on flipperd normals. Shouldn't windows be used to compile dll's is using Linux really right?&lt;/P&gt;&lt;P&gt;@zeno pelgrims&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 09:35:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-general-rendering-forum/compiling-shaders-using-mingw/m-p/11050606#M2386</guid>
      <dc:creator>hitecom8172</dc:creator>
      <dc:date>2019-06-04T09:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling shaders using mingw</title>
      <link>https://forums.autodesk.com/t5/arnold-general-rendering-forum/compiling-shaders-using-mingw/m-p/11050607#M2387</link>
      <description>&lt;P&gt;Don't the dependencies (ai.lib) have to be cross-compiled too?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 11:52:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-general-rendering-forum/compiling-shaders-using-mingw/m-p/11050607#M2387</guid>
      <dc:creator>Stephen.Blair</dc:creator>
      <dc:date>2019-06-04T11:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling shaders using mingw</title>
      <link>https://forums.autodesk.com/t5/arnold-general-rendering-forum/compiling-shaders-using-mingw/m-p/11050608#M2388</link>
      <description>&lt;P&gt;Use (http://www.dependencywalker.com/depends22_x64.zip) to check what your dll is missing that is preventing it to be seen/loaded.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 17:22:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-general-rendering-forum/compiling-shaders-using-mingw/m-p/11050608#M2388</guid>
      <dc:creator>maxtarpini</dc:creator>
      <dc:date>2019-06-04T17:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling shaders using mingw</title>
      <link>https://forums.autodesk.com/t5/arnold-general-rendering-forum/compiling-shaders-using-mingw/m-p/11050609#M2389</link>
      <description>&lt;P&gt;@stephenblair, is this something that is possible to do from a user perspective?&lt;/P&gt;&lt;P&gt;@maxtarpini, thanks for that pointer - I checked with &lt;A href="https://github.com/lucasg/Dependencies"&gt;https://github.com/lucasg/Dependencies&lt;/A&gt; (an up to date version of dependency walker) and it does seem there's some clearly crucial missing dependencies:&lt;/P&gt;&lt;P&gt;- libgcc_s_seh-1.dll&lt;/P&gt;&lt;P&gt;- libstdc++-6.dll&lt;/P&gt;&lt;P&gt;- ai.dll&lt;/P&gt;&lt;P&gt;The quest continues!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 02:47:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-general-rendering-forum/compiling-shaders-using-mingw/m-p/11050609#M2389</guid>
      <dc:creator>zenop</dc:creator>
      <dc:date>2019-06-05T02:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling shaders using mingw</title>
      <link>https://forums.autodesk.com/t5/arnold-general-rendering-forum/compiling-shaders-using-mingw/m-p/11050610#M2390</link>
      <description>&lt;P&gt;I think Stephen is correct - I don't think it's possible after all to link MSVC libs (e.g arnold) to mingw, unless solidangle compiles arnold on their side in mingw.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 05:00:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-general-rendering-forum/compiling-shaders-using-mingw/m-p/11050610#M2390</guid>
      <dc:creator>zenop</dc:creator>
      <dc:date>2019-06-05T05:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling shaders using mingw</title>
      <link>https://forums.autodesk.com/t5/arnold-general-rendering-forum/compiling-shaders-using-mingw/m-p/11050611#M2391</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://answers.arnoldrenderer.com/users/62/zenopelgrimsty3wa.html" nodeid="62"&gt;@Zeno Pelgrims&lt;/A&gt; I think you are better off using OSL for all of your shading needs. dll's dont always are the best option.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 07:01:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-general-rendering-forum/compiling-shaders-using-mingw/m-p/11050611#M2391</guid>
      <dc:creator>hitecom8172</dc:creator>
      <dc:date>2019-06-05T07:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling shaders using mingw</title>
      <link>https://forums.autodesk.com/t5/arnold-general-rendering-forum/compiling-shaders-using-mingw/m-p/11050612#M2392</link>
      <description>&lt;P&gt;&lt;EM&gt;Zeno said : "I don't think it's possible after all to link MSVC libs (e.g arnold) to mingw, unless solidangle compiles arnold on their side in mingw."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Not necessarly.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;It would be like that if you call the DLL explicitly at runtime  not if you use an 'import library' like ai.lib that contains additional info for the linker at compile time. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Having compiled a simple shader in fact it simply loads correctly and is available from maya UI and all of that. It even renders &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;&lt;P&gt;Compiled with: /opt/mingw64/bin/x86_64-w64-mingw32-g++ romboMix2Shaders.cpp  -I"/home/max/git/RomboArnold/romboext/_aisdk/include" -std=c++11 -fpic -O3 -c&lt;/P&gt;&lt;P&gt;Linked with: /opt/mingw64/bin/x86_64-w64-mingw32-g++ -shared -o romboTESTlib.dll romboMix2Shaders.o -l:ai.lib (note the colon ':' to be able to explicitely spec the lib name)&lt;/P&gt;&lt;P&gt;Rename rombotestlib.txt to rombotestlib.dll and check it to see it has been compiled with mingw.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;However some other shader could crash at arnold runtime because of some other stuff that's assumed to be 'windows' alike and where maybe mingw is not fully compliant.. aka threading, alignments, handlers etc. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;
For example I just tested that if I use arnold 'closures' it badly crashes.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 17:40:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-general-rendering-forum/compiling-shaders-using-mingw/m-p/11050612#M2392</guid>
      <dc:creator>maxtarpini</dc:creator>
      <dc:date>2019-06-05T17:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling shaders using mingw</title>
      <link>https://forums.autodesk.com/t5/arnold-general-rendering-forum/compiling-shaders-using-mingw/m-p/11050613#M2393</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.arnoldrenderer.com/users/194/maxtarpini.html" nodeid="194"&gt;@Max Tarpini&lt;/A&gt; you legend! I'll try that out when I get home. This is super helpful man, much appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 18:50:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-general-rendering-forum/compiling-shaders-using-mingw/m-p/11050613#M2393</guid>
      <dc:creator>zenop</dc:creator>
      <dc:date>2019-06-05T18:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling shaders using mingw</title>
      <link>https://forums.autodesk.com/t5/arnold-general-rendering-forum/compiling-shaders-using-mingw/m-p/11050614#M2394</link>
      <description>&lt;P&gt;I appreciate the input but in this case OSL can't be used.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 18:53:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-general-rendering-forum/compiling-shaders-using-mingw/m-p/11050614#M2394</guid>
      <dc:creator>zenop</dc:creator>
      <dc:date>2019-06-05T18:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling shaders using mingw</title>
      <link>https://forums.autodesk.com/t5/arnold-general-rendering-forum/compiling-shaders-using-mingw/m-p/11050615#M2395</link>
      <description>&lt;P&gt;I tested this and while I'm able to load the plugin, it crashes as soon as it's executed. Was worth the try anyway.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 17:08:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-general-rendering-forum/compiling-shaders-using-mingw/m-p/11050615#M2395</guid>
      <dc:creator>zenop</dc:creator>
      <dc:date>2019-06-07T17:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling shaders using mingw</title>
      <link>https://forums.autodesk.com/t5/arnold-general-rendering-forum/compiling-shaders-using-mingw/m-p/11050616#M2396</link>
      <description>&lt;P&gt;yep also it looks like latest mingw uses gcc 4.9 which is 6 years old so all 'modern' c++ is barely supported (ie. only a subset of C++11). Btw if your problem is cross-compilation you can use cmake as your builder on linux and then use visual studio that from 2017 support cmake projects.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 18:05:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/arnold-general-rendering-forum/compiling-shaders-using-mingw/m-p/11050616#M2396</guid>
      <dc:creator>maxtarpini</dc:creator>
      <dc:date>2019-06-07T18:05:46Z</dc:date>
    </item>
  </channel>
</rss>

