[Cmb-users] automoc symbol issues
Haocheng Liu
haocheng.liu at kitware.com
Thu Apr 13 10:39:42 EDT 2017
Hi TJ,
I did some simple tests on Kerbin(windows10 + VS2015). By simply removing
**#include "pqComponentsModule.h"** and **PQCOMPONENTS_EXPORT** in
pqSMTKInfoPanel.h, the build succeeds.
It seems that PQCOMPONENTS_EXPORT is used in ParView to export model
pqComponents symbol, may I ask why we need it in CMB?
On Thu, Apr 13, 2017 at 9:57 AM, David Thompson <david.thompson at kitware.com>
wrote:
> Hi TJ,
>
> In my version of CMB (admittedly not the latest master, but close), there
> is no EXPORT macro in the "class pqSMTKMeshInfo" declaration.
>
> David
>
> > On Apr 13, 2017, at 08:52, <tj.corona at kitware.com> <
> tj.corona at kitware.com> wrote:
> >
> > This got bounced from cmb-developers, so I am resending it here
> >
> > Sent from Mail for Windows 10
> >
> > From: tj.corona at kitware.com
> > Sent: Thursday, April 13, 2017 7:49 AM
> > To: cmb-developers at kitware.com; Shawn Waldon
> > Subject: automoc symbol issues
> >
> > Hi all,
> >
> > 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:
> >
> > c:\dev\cmb_sb_vs2015\superbuild\cmb\build\source\
> applications\modelbuilder\ModelBuilder_automoc.dir/moc_
> pqSMTKMeshInfo_OPAOOSEHZX24R7.cpp(52): warning C4273: 'staticMetaObject':
> inconsistent dll linkage
> >
> > c:\dev\cmb_sb_vs2015\superbuild\cmb\build\source\
> applications\modelbuilder\modelbuilder_automoc.dir\../..
> /../../../src/Source/Applications/ModelBuilder/pqSMTKMeshInfo.h(38):
> note: see previous definition of 'public: static QMetaObject const
> pqSMTKMeshInfo::staticMetaObject'
> >
> > c:\dev\cmb_sb_vs2015\superbuild\cmb\build\source\
> applications\modelbuilder\ModelBuilder_automoc.dir/moc_
> pqSMTKMeshInfo_OPAOOSEHZX24R7.cpp(52): error C2491: 'pqSMTKMeshInfo::staticMetaObject':
> definition of dllimport static data member not allowed
> >
> > Thanks!
> >
> > Sincerely,
> > T.J.
> >
> > Sent from Mail for Windows 10
>
>
--
Best regards
Haocheng
Haocheng LIU
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4421 <(518)%20881-4421>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmb-users/attachments/20170413/ef626873/attachment.html>
More information about the Cmb-users
mailing list