[CMake] Testing Qt 5 RC 1 CMake files
lonka
lonka.radek at gmail.com
Tue Mar 19 04:10:00 EDT 2013
Hi Stephen,
I have tried to build vtk from master (applying your patch) with qt5 but I
can not succeed.
What I get is:
In file included from
/home/rlonka/Qt5.0.1/5.0.1/gcc_64/include/QtCore/qobject.h:55:0,
from
/home/rlonka/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/qwidget.h:46,
from
/home/rlonka/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/QWidget:1,
from
/home/rlonka/VTK/GUISupport/Qt/vtkQtDebugLeaksView.h:28,
from
/home/rlonka/VTK/GUISupport/Qt/vtkQtDebugLeaksView.cxx:15:
/home/rlonka/Qt5.0.1/5.0.1/gcc_64/include/QtCore/qmetatype.h: In
instantiation of
‘QtPrivate::IsPointerToTypeDerivedFromQObject<vtkObjectBase*>’:
/home/rlonka/Qt5.0.1/5.0.1/gcc_64/include/QtCore/qmetatype.h:557:14:
instantiated from ‘QtPrivate::QMetaTypeTypeFlags<vtkObjectBase*>’
/home/rlonka/Qt5.0.1/5.0.1/gcc_64/include/QtCore/qmetatype.h:590:71:
instantiated from ‘int qRegisterNormalizedMetaType(const QByteArray&, T*,
typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined &&
(! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType) [with T = vtkObjectBase*,
typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined &&
(! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType =
QtPrivate::MetaTypeDefinedHelper<vtkObjectBase*, true>::DefinedType]’
/home/rlonka/Qt5.0.1/5.0.1/gcc_64/include/QtCore/qmetatype.h:618:77:
instantiated from ‘int qRegisterMetaType(const char*, T*, typename
QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (!
QMetaTypeId2<T>::IsBuiltIn))>::DefinedType) [with T = vtkObjectBase*,
typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined &&
(! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType =
QtPrivate::MetaTypeDefinedHelper<vtkObjectBase*, true>::DefinedType]’
/home/rlonka/VTK/GUISupport/Qt/vtkQtDebugLeaksView.cxx:208:1: instantiated
from here
/home/rlonka/Qt5.0.1/5.0.1/gcc_64/include/QtCore/qmetatype.h:464:9: error:
invalid application of ‘sizeof’ to incomplete type ‘vtkObjectBase’
make[2]: ***
[GUISupport/Qt/CMakeFiles/vtkGUISupportQt.dir/vtkQtDebugLeaksView.cxx.o]
Error 1
make[1]: *** [GUISupport/Qt/CMakeFiles/vtkGUISupportQt.dir/all] Error 2
make: *** [all] Error 2
I am not sure if it has anything to do with the fact that the type argument
to the Q_DECLARE_METATYPE macro must be fully defined, not forward declared
as described here:
porting-from-qt-4-to-qt-5/ <http://www.kdab.com/porting-from-qt-4-to-qt-5/>
In GUISupport/Qt/vtkQtDebugLeaksView.cxx:208
Q_DECLARE_METATYPE(vtkObjectBase*);
I am using Ubunty 12.10. x86_64.
gcc version 4.6.3
Do you have any idea if there is anything I can do to get it compiled?
--
View this message in context: http://cmake.3232098.n2.nabble.com/Testing-Qt-5-Beta-2-CMake-files-tp7582503p7583723.html
Sent from the CMake mailing list archive at Nabble.com.
More information about the CMake
mailing list