[Paraview-developers] Paraview and VS2013 compile errors
Frank TT
frank.tt at einseinself.org
Thu Sep 4 13:34:01 EDT 2014
On Thu, 2014-09-04 at 13:23 +0000, Lodron, Gerald wrote:
> Hi
>
> I am compiling PV with qt 5.2.1, internal VTK and boost 1.55 (for ReebGraph), under 64bit (without python) and get following errors:
>
> Min max unknown in protobuf, following patch works:
> https://code.google.com/p/protobuf/issues/detail?id=531
>
> I also get many
> 2>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\type_traits(1220): error C2065: 'max_align_t' : undeclared identifier
>
> Adding #include <stddef.h> to common.h of protobuf solved that in porotobuf but I get it also in CommandLineArguments.cxx of vtksys where that solution does not worked...
>
> Additionally I get many linker errors:
> 6>QtTesting_automoc.obj : error LNK2005: "public: static struct QMetaObject const pqComboBoxEventTranslator::staticMetaObject" (?staticMetaObject at pqComboBoxEventTranslator@@2UQMetaObject@@B) already defined in moc_pqComboBoxEventTranslator.obj
> 9>QVTKWidgetPlugin_automoc.obj : error LNK2005: "public: virtual struct QMetaObject const * __cdecl QVTKPlugin::metaObject(void)const " (?metaObject at QVTKPlugin@@UEBAPEBUQMetaObject@@XZ) already defined in moc_Q4VTKWidgetPlugin.obj
> 6>QtTesting_automoc.obj : error LNK2005: "private: static void __cdecl pqComboBoxEventTranslator::qt_static_metacall(class QObject *,enum QMetaObject::Call,int,void * *)" (?qt_static_metacall at pqComboBoxEventTranslator@@CAXPEAVQObject@@W4Call at QMetaObject@@HPEAPEAX at Z) already defined in moc_pqComboBoxEventTranslator.obj
> 9>QVTKWidgetPlugin_automoc.obj : error LNK2005: "public: virtual void * __cdecl QVTKPlugin::qt_metacast(char const *)" (?qt_metacast at QVTKPlugin@@UEAAPEAXPEBD at Z) already defined in moc_Q4VTKWidgetPlugin.obj
> 9>QVTKWidgetPlugin_automoc.obj : error LNK2005: "public: virtual int __cdecl QVTKPlugin::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall at QVTKPlugin@@UEAAHW4Call at QMetaObject@@HPEAPEAX at Z) already defined in moc_Q4VTKWidgetPlugin.obj
> 9>QVTKWidgetPlugin_automoc.obj : error LNK2005: "private: static void __cdecl QVTKPlugin::qt_static_metacall(class QObject *,enum QMetaObject::Call,int,void * *)" (?qt_static_metacall at QVTKPlugin@@CAXPEAVQObject@@W4Call at QMetaObject@@HPEAPEAX at Z) already defined in moc_Q4VTKWidgetPlugin.obj
> 9>QVTKWidgetPlugin_automoc.obj : error LNK2005: "public: virtual struct QMetaObject const * __cdecl QVTKWidget::metaObject(void)const " (?metaObject at QVTKWidget@@UEBAPEBUQMetaObject@@XZ) already defined in moc_Q4VTKWidgetPlugin.obj
> 9>QVTKWidgetPlugin_automoc.obj : error LNK2005: "public: virtual void * __cdecl QVTKWidget::qt_metacast(char const *)" (?qt_metacast at QVTKWidget@@UEAAPEAXPEBD at Z) already defined in moc_Q4VTKWidgetPlugin.obj
> 9>QVTKWidgetPlugin_automoc.obj : error LNK2005: "public: virtual int __cdecl QVTKWidget::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall at QVTKWidget@@UEAAHW4Call at QMetaObject@@HPEAPEAX at Z) already defined in moc_Q4VTKWidgetPlugin.obj
> 9>QVTKWidgetPlugin_automoc.obj : error LNK2005: "private: static void __cdecl QVTKWidget::qt_static_metacall(class QObject *,enum QMetaObject::Call,int,void * *)" (?qt_static_metacall at QVTKWidget@@CAXPEAVQObject@@W4Call at QMetaObject@@HPEAPEAX at Z) already defined in moc_Q4VTKWidgetPlugin.obj
> 9>QVTKWidgetPlugin_automoc.obj : error LNK2005: qt_plugin_query_metadata already defined in moc_Q4VTKWidgetPlugin.obj
> 9>QVTKWidgetPlugin_automoc.obj : error LNK2005: qt_plugin_instance already defined in moc_Q4VTKWidgetPlugin.obj
>
On my first build I've got similar errors.
You see in the last pasted line "… moc_Q4VTKWidgetPlugin.obj" a hint. I
used Qt 4.8.6 and it builds. If you have a look in the CMakeLists.txt
there will it be more clear. For PV 4.1.0 you will find this in line 409
ff.
Maybe you try Qt 4.8.* to build PV.
Greetings
Frank
More information about the Paraview-developers
mailing list