<div dir="ltr">Hi David &TJ,<div><br></div><div>I got a good news, I think I know how to fix smtkPQOperatorViewsExt.lib problem :) Works on Kerbin.</div><div>So here is the problem(If I understand it correctly) : C++ Linkers would not create lib library when there are no symbols to be exported. You need to include $PATH/Exports.h and ${module_name}_EXPORT to the proper header file.  That's why we have smtkPQOperatorVIewsExt.dll but not lib.</div><div> In This case the code would look like:</div><div>```C++</div><div>
<pre style="margin-top:0px;margin-bottom:0px"><span style="background-color:rgb(0,0,0)"><span style="color:rgb(249,38,114)">#include</span><span style="color:rgb(62,61,50)"> </span><span style="color:rgb(230,219,116)">"smtk/extension/paraview/operators/Exports.h"</span></span></pre> <pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(249,38,114)">#include</span><span style="color:rgb(62,61,50)"> </span><span style="color:rgb(230,219,116)">"smtk/extension/qt/qtBaseView.h"</span></pre> <pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(249,38,114)">#include</span><span style="color:rgb(62,61,50)"> </span><span style="color:rgb(230,219,116)"><vtk_jsoncpp.h></span><span style="color:rgb(62,61,50)"> </span><span style="color:rgb(128,128,128)">//</span><span style="color:rgb(62,61,50)"> </span><span style="color:rgb(128,128,128)">for</span><span style="color:rgb(62,61,50)"> </span><span style="color:rgb(128,128,128)">Json::Value;</span><span style="color:rgb(62,61,50)"> </span><span style="color:rgb(128,128,128)">must</span><span style="color:rgb(62,61,50)"> </span><span style="color:rgb(128,128,128)">be</span><span style="color:rgb(62,61,50)"> </span><span style="color:rgb(128,128,128)">in</span><span style="color:rgb(62,61,50)"> </span><span style="color:rgb(128,128,128)">header</span><span style="color:rgb(62,61,50)"> </span><span style="color:rgb(128,128,128)">due</span><span style="color:rgb(62,61,50)"> </span><span style="color:rgb(128,128,128)">to</span><span style="color:rgb(62,61,50)"> </span><span style="color:rgb(128,128,128)">VTK</span><span style="color:rgb(62,61,50)"> </span><span style="color:rgb(128,128,128)">mangling</span></pre> <pre style="margin-top:0px;margin-bottom:0px"><br></pre> <pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(249,38,114)">class</span><span style="color:rgb(62,61,50)"> </span><span style="color:rgb(166,226,46)">QColor</span><span style="color:rgb(230,229,226)">;</span></pre> <pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(249,38,114)">class</span><span style="color:rgb(62,61,50)"> </span><span style="color:rgb(166,226,46)">QIcon</span><span style="color:rgb(230,229,226)">;</span></pre> <pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(249,38,114)">class</span><span style="color:rgb(62,61,50)"> </span><span style="color:rgb(166,226,46)">smtkAssignColorsViewInternals</span><span style="color:rgb(230,229,226)">;</span></pre> <pre style="margin-top:0px;margin-bottom:0px"><br></pre> <pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(249,38,114)">class</span><span style="color:rgb(62,61,50)"> </span><span style="color:rgb(249,38,114);background-color:rgb(0,0,0)">SMTKPQOPERATORVIEWSEXT_EXPORT</span><span style="color:rgb(62,61,50)"> </span><span style="color:rgb(166,226,46)">smtkAssignColorsView</span><span style="color:rgb(62,61,50)"> </span><span style="color:rgb(230,229,226)">:</span><span style="color:rgb(62,61,50)"> </span><span style="color:rgb(249,38,114)">public</span><span style="color:rgb(62,61,50)"> </span><span style="color:rgb(166,226,46)">smtk</span><span style="color:rgb(230,229,226)">::</span><span style="color:rgb(166,226,46)">extension</span><span style="color:rgb(230,229,226)">::</span><span style="color:rgb(166,226,46)">qtBaseView</span></pre></div><div>```</div><div><br></div><div>Credits to Ben.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 28, 2017 at 9:41 AM, David Thompson <span dir="ltr"><<a href="mailto:david.thompson@kitware.com" target="_blank">david.thompson@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div></div><div>Hi TJ,</div><div><br></div><div>I am not so good at the Windows either. And if I was, I would pretend to be worse. What I don't understand is why, if <span style="background-color:rgba(255,255,255,0)">smtkPQOperatorViewsExt.lib cannot be built, is the failure only reported when it is used as a dependency? What target should be creating it (smtkPQOperatorViewsExt.dll?), and can you look at that command line and see if there's something wrong there?</span></div><div><span style="background-color:rgba(255,255,255,0)"><br></span></div><div><span style="background-color:rgba(255,255,255,0)">    Thanks,</span></div><div><span style="background-color:rgba(255,255,255,0)">    David</span></div><div><div class="h5"><div><br>On Mar 28, 2017, at 09:01, <<a href="mailto:tj.corona@kitware.com" target="_blank">tj.corona@kitware.com</a>> <<a href="mailto:tj.corona@kitware.com" target="_blank">tj.corona@kitware.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div class="m_-4938272886695918397WordSection1"><p class="MsoNormal">I’m not so good at the Windows, but it looks like something has changed in the ParaView plugin code to prevent the construction of a smtkPQOperatorViewsExt.lib target. I can reproduce this on my windows machine:</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">C:\Dev\cmb_sb_vs2015\<wbr>superbuild\smtk\build>ninja</p><p class="MsoNormal">[30/47] Linking CXX shared library bin\TestBuild_smtk_extension_<wbr>paraview_operators.dll</p><p class="MsoNormal">FAILED: bin/TestBuild_smtk_extension_<wbr>paraview_operators.dll lib/TestBuild_smtk_extension_<wbr>paraview_operators.lib</p><p class="MsoNormal">cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_dll --intdir=smtk\extension\<wbr>paraview\operators\CMakeFiles\<wbr>TestBuild_smtk_extension_<wbr>paraview_operators.dir --manifests  -- C:\PROGRA~2\MICROS~1.0\VC\bin\<wbr>amd64\link.exe /nologo @CMakeFiles/TestBuild_smtk_<wbr>extension_paraview_operators.<wbr>rsp  /out:bin\TestBuild_smtk_<wbr>extension_paraview_operators.<wbr>dll /implib:lib\TestBuild_smtk_<wbr>extension_paraview_operators.<wbr>lib /pdb:bin\TestBuild_smtk_<wbr>extension_paraview_operators.<wbr>pdb /dll /version:0.0 /machine:x64  /INCREMENTAL:NO   && cd ."</p><p class="MsoNormal">LINK : fatal error LNK1181: cannot open input file 'lib\smtkPQOperatorViewsExt.<wbr>lib'</p><p class="MsoNormal">LINK failed. with 1181</p><p class="MsoNormal">[31/47] Linking CXX shared library bin\smtkPQOperatorViewsPlugin.<wbr>dll</p><p class="MsoNormal">FAILED: bin/smtkPQOperatorViewsPlugin.<wbr>dll lib/smtkPQOperatorViewsPlugin.<wbr>lib</p><p class="MsoNormal">cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_dll --intdir=smtk\extension\<wbr>paraview\operators\CMakeFiles\<wbr>smtkPQOperatorViewsPlugin.dir --manifests  -- C:\PROGRA~2\MICROS~1.0\VC\bin\<wbr>amd64\link.exe /nologo @CMakeFiles/<wbr>smtkPQOperatorViewsPlugin.rsp  /out:bin\<wbr>smtkPQOperatorViewsPlugin.dll /implib:lib\<wbr>smtkPQOperatorViewsPlugin.lib /pdb:bin\<wbr>smtkPQOperatorViewsPlugin.pdb /dll /version:0.0 /machine:x64  /INCREMENTAL:NO /MANIFEST:NO   && cd ."</p><p class="MsoNormal">LINK : fatal error LNK1181: cannot open input file 'lib\smtkPQOperatorViewsExt.<wbr>lib'</p><p class="MsoNormal">LINK failed. with 1181</p><p class="MsoNormal">[34/47] Linking CXX shared library bin\smtkExodusSessionPlugin.<wbr>dll</p><p class="MsoNormal">   Creating library lib\smtkExodusSessionPlugin.<wbr>lib and object lib\smtkExodusSessionPlugin.<wbr>exp</p><p class="MsoNormal">[37/47] Linking CXX shared library bin\smtkPolygonQtExt.dll</p><p class="MsoNormal">   Creating library lib\smtkPolygonQtExt.lib and object lib\smtkPolygonQtExt.exp</p><p class="MsoNormal">[38/47] Linking CXX shared module smtk\bridge\remote\_<wbr>smtkPybindRemoteSession.pyd</p><p class="MsoNormal">   Creating library lib\_smtkPybindRemoteSession.<wbr>lib and object lib\_smtkPybindRemoteSession.<wbr>exp</p><p class="MsoNormal">Generating code</p><p class="MsoNormal">Finished generating code</p><p class="MsoNormal">[39/47] Linking CXX shared module smtk\bridge\exodus\_<wbr>smtkPybindExodusSession.pyd</p><p class="MsoNormal">   Creating library lib\_smtkPybindExodusSession.<wbr>lib and object lib\_smtkPybindExodusSession.<wbr>exp</p><p class="MsoNormal">Generating code</p><p class="MsoNormal">Finished generating code</p><p class="MsoNormal">ninja: build stopped: subcommand failed.</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">C:\Dev\cmb_sb_vs2015\<wbr>superbuild\smtk\build>ninja smtkPQOperatorViewsExt.lib</p><p class="MsoNormal">ninja: error: unknown target 'smtkPQOperatorViewsExt.lib', did you mean 'smtkPQOperatorViewsExt.dll'?</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986" target="_blank">Mail</a> for Windows 10</p><p class="MsoNormal"><u></u> <u></u></p><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal" style="border:none;padding:0in"><b>From: </b><a href="mailto:haocheng.liu@kitware.com" target="_blank">Haocheng Liu</a><br><b>Sent: </b>Monday, March 27, 2017 9:21 PM<br><b>To: </b><a href="mailto:david.thompson@kitware.com" target="_blank">David Thompson</a><br><b>Cc: </b><a href="mailto:smtk-developers@smtk.org" target="_blank">smtk-developers@smtk.org</a><br><b>Subject: </b>Re: [Smtk-developers] Dashboard issues?</p></div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">Hi David,</p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I can try to do a clean super build on the new windows dashboard machine Kerbin tomorrow to see if I can reproduce this problem.</p></div></div><div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">On Mon, Mar 27, 2017 at 6:28 PM, David Thompson <<a href="mailto:david.thompson@kitware.com" target="_blank">david.thompson@kitware.com</a>> wrote:</p><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><p class="MsoNormal">Hi all,<br><br>I appear to have caused praxis a problem on SMTK's dashboard:<br><br>  <a href="https://open.cdash.org/viewBuildError.php?buildid=4827394" target="_blank">https://open.cdash.org/<wbr>viewBuildError.php?buildid=<wbr>4827394</a><br><br>which I cannot diagnose. (Incidentally, praxis never even tried to build my merge request here:<br><br>  <a href="https://open.cdash.org/index.php?compare1=61&filtercount=1&field1=revision&project=SMTK&showfilters=0&limit=100&value1=9d639e4be4bc1d2650fcbac51d25738ef0d05fb7&showfeed=0" target="_blank">https://open.cdash.org/index.<wbr>php?compare1=61&filtercount=1&<wbr>field1=revision&project=SMTK&<wbr>showfilters=0&limit=100&<wbr>value1=<wbr>9d639e4be4bc1d2650fcbac51d2573<wbr>8ef0d05fb7&showfeed=0</a><br><br>). Does anyone have an idea how to diagnose this?<br><br>        Thanks,<br>        David<br>______________________________<wbr>_________________<br>Smtk-developers mailing list<br><a href="mailto:Smtk-developers@smtk.org" target="_blank">Smtk-developers@smtk.org</a><br><a href="http://public.kitware.com/mailman/listinfo/smtk-developers" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/smtk-<wbr>developers</a></p></blockquote></div><p class="MsoNormal"><br><br clear="all"></p><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">-- </p><div><div><div><div><p class="MsoNormal">Best regards</p><div><p class="MsoNormal">Haocheng</p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Haocheng LIU</p></div></div></div></div></div></div><p class="MsoNormal"><span style="font-size:9.5pt;color:black">Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: </span><a href="tel:(518)%20881-4421" target="_blank"><span style="font-size:9.5pt;color:#1155cc">518-881-4421</span></a></p><p class="MsoNormal"><u></u> <u></u></p></div></div></blockquote></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Best regards<div>Haocheng</div><div><br></div><div>Haocheng LIU</div><div><span style="color:rgb(0,0,0);font-size:12.8px">Kitware, Inc.</span><br style="color:rgb(0,0,0);font-size:12.8px"><span style="color:rgb(0,0,0);font-size:12.8px">R&D Engineer</span><br style="color:rgb(0,0,0);font-size:12.8px"><span style="color:rgb(0,0,0);font-size:12.8px">21 Corporate Drive</span><br style="color:rgb(0,0,0);font-size:12.8px"><span style="color:rgb(0,0,0);font-size:12.8px">Clifton Park, NY 12065-8662</span><br style="color:rgb(0,0,0);font-size:12.8px"><span style="color:rgb(0,0,0);font-size:12.8px">Phone: </span><a href="tel:(518)%20881-4421" value="+15188814443" style="color:rgb(17,85,204);font-size:12.8px" target="_blank">518-881-4421</a><br></div></div></div></div></div>
</div>