<div dir="ltr">Hi TJ,<div><br></div><div>I did some simple tests on Kerbin(windows10 + VS2015). By simply removing **<span style="background-color:rgb(236,253,240);color:rgb(153,153,153);font-family:menlo,"liberation mono",consolas,"dejavu sans mono","ubuntu mono","courier new","andale mono","lucida console",monospace;font-size:12px;font-weight:bold;white-space:pre-wrap">#include "pqComponentsModule.h"</span>** and **<span style="background-color:rgb(236,253,240);color:rgb(51,51,51);font-family:menlo,"liberation mono",consolas,"dejavu sans mono","ubuntu mono","courier new","andale mono","lucida console",monospace;font-size:12px;white-space:pre-wrap">PQCOMPONENTS_EXPORT</span>** in pqSMTKInfoPanel.h, the build succeeds.</div><div><br></div><div>It seems that <span style="background-color:rgb(236,253,240);color:rgb(51,51,51);font-family:menlo,"liberation mono",consolas,"dejavu sans mono","ubuntu mono","courier new","andale mono","lucida console",monospace;font-size:12px;white-space:pre-wrap">PQCOMPONENTS_EXPORT </span>is used in ParView to export model pqComponents symbol, may I ask why we need it in CMB? </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 13, 2017 at 9:57 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">Hi TJ,<br>
<br>
In my version of CMB (admittedly not the latest master, but close), there is no EXPORT macro in the "class pqSMTKMeshInfo" declaration.<br>
<span class="HOEnZb"><font color="#888888"><br>
David<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
> On Apr 13, 2017, at 08:52, <<a href="mailto:tj.corona@kitware.com">tj.corona@kitware.com</a>> <<a href="mailto:tj.corona@kitware.com">tj.corona@kitware.com</a>> wrote:<br>
><br>
> This got bounced from cmb-developers, so I am resending it here<br>
><br>
> Sent from Mail for Windows 10<br>
><br>
> From: <a href="mailto:tj.corona@kitware.com">tj.corona@kitware.com</a><br>
> Sent: Thursday, April 13, 2017 7:49 AM<br>
> To: <a href="mailto:cmb-developers@kitware.com">cmb-developers@kitware.com</a>; Shawn Waldon<br>
> Subject: automoc symbol issues<br>
><br>
> Hi all,<br>
><br>
> I am trying to fix a bug I introduced into the windows build of ModelBuilder, and am having little luck. It looks like the auto-MOC’d file generated for my class has bad dll linkage. This is the perfect storm of Windows, Qt and linking for me, and I am completely out of my depth. Does anyone have any idea why my class (which looks exactly like the other Qt-derived classes in this directory) won’t compile on Windows? Here’s a snipped of the errors I’m getting:<br>
><br>
> c:\dev\cmb_sb_vs2015\<wbr>superbuild\cmb\build\source\<wbr>applications\modelbuilder\<wbr>ModelBuilder_automoc.dir/moc_<wbr>pqSMTKMeshInfo_OPAOOSEHZX24R7.<wbr>cpp(52): warning C4273: 'staticMetaObject': inconsistent dll linkage<br>
><br>
> c:\dev\cmb_sb_vs2015\<wbr>superbuild\cmb\build\source\<wbr>applications\modelbuilder\<wbr>modelbuilder_automoc.dir\../..<wbr>/../../../src/Source/<wbr>Applications/ModelBuilder/<wbr>pqSMTKMeshInfo.h(38): note: see previous definition of 'public: static QMetaObject const pqSMTKMeshInfo::<wbr>staticMetaObject'<br>
><br>
> c:\dev\cmb_sb_vs2015\<wbr>superbuild\cmb\build\source\<wbr>applications\modelbuilder\<wbr>ModelBuilder_automoc.dir/moc_<wbr>pqSMTKMeshInfo_OPAOOSEHZX24R7.<wbr>cpp(52): error C2491: 'pqSMTKMeshInfo::<wbr>staticMetaObject': definition of dllimport static data member not allowed<br>
><br>
> Thanks!<br>
><br>
> Sincerely,<br>
> T.J.<br>
><br>
> Sent from Mail for Windows 10<br>
<br>
</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>