[Ctk-developers] CTKWidgets compile errors

Dean Inglis dean.inglis at camris.ca
Wed Sep 15 20:36:35 UTC 2010


Hello,

some recent changes to the ctk source result in the following errors on 
Win32 Vista
MinGW (Qt SDK 4.6.3) which might not show on my experimental dashboard 
(hyoid)
submission since it is failing to compile/configure/test QtMobility (as 
mentioned in prev
message threads).

hth,
Dean

D:\Developer\Sources\CTK\Libs\Widgets\ctkWorkflowButtonBoxWidget.cpp: In 
member
function 'void 
ctkWorkflowButtonBoxWidgetPrivate::updateBackButton(ctkWorkflowSt
ep*)':
D:\Developer\Sources\CTK\Libs\Widgets\ctkWorkflowButtonBoxWidget.cpp:114: 
warnin
g: unused variable 'q' [-Wunused-variable]
D:\Developer\Sources\CTK\Libs\Widgets\ctkWorkflowButtonBoxWidget.cpp: In 
member
function 'void 
ctkWorkflowButtonBoxWidgetPrivate::updateNextButton(ctkWorkflowSt
ep*)':
D:\Developer\Sources\CTK\Libs\Widgets\ctkWorkflowButtonBoxWidget.cpp:156: 
warnin
g: unused variable 'q' [-Wunused-variable]
[ 31%] Building CXX object 
Libs/Widgets/CMakeFiles/CTKWidgets.dir/ctkWorkflowGro
upBox.cpp.obj
[ 32%] Building CXX object 
Libs/Widgets/CMakeFiles/CTKWidgets.dir/ctkWorkflowSta
ckedWidget.cpp.obj
[ 32%] Building CXX object 
Libs/Widgets/CMakeFiles/CTKWidgets.dir/ctkWorkflowTab
Widget.cpp.obj
[ 32%] Building CXX object 
Libs/Widgets/CMakeFiles/CTKWidgets.dir/ctkWorkflowWid
get.cpp.obj
[ 32%] Building CXX object 
Libs/Widgets/CMakeFiles/CTKWidgets.dir/ctkWorkflowWid
getStep.cpp.obj
[ 32%] Building CXX object 
Libs/Widgets/CMakeFiles/CTKWidgets.dir/moc_ctkWorkflo
wAbstractWidgetStep_p.cxx.obj
[ 33%] Building CXX object 
Libs/Widgets/CMakeFiles/CTKWidgets.dir/moc_ctkActions
Widget.cxx.obj
In file included from C:\Qt\qt\include/QtCore/qscopedpointer.h:1,
                 from 
C:\Qt\qt\include/QtCore/../../src/corelib/kernel/qobject.h
:54,
                 from C:\Qt\qt\include/QtCore/qobject.h:1,
                 from 
C:\Qt\qt\include/QtGui/../../src/gui/itemviews/qabstractit
emdelegate.h:45,
                 from C:\Qt\qt\include/QtGui/qabstractitemdelegate.h:1,
                 from 
C:\Qt\qt\include\QtGui/../../src/gui/itemviews/qstyleditem
delegate.h:45,
                 from C:\Qt\qt\include\QtGui/qstyleditemdelegate.h:1,
                 from C:\Qt\qt\include\QtGui/QStyledItemDelegate:1,
                 from 
D:\Developer\Releases\MinGW\SHARED\ctk\CTK-build\Libs\Widg
ets\/../../../../../../../Sources/CTK/Libs/Widgets/ctkActionsWidget.h:25,
                 from 
D:\Developer\Releases\MinGW\SHARED\ctk\CTK-build\Libs\Widg
ets\moc_ctkActionsWidget.cxx:10:
C:\Qt\qt\include/QtCore/../../src/corelib/tools/qscopedpointer.h: In static 
memb
er function 'static void QScopedPointerDeleter<T>::cleanup(T*) [with T = 
ctkSort
FilterActionsProxyModelPrivate]':
C:\Qt\qt\include/QtCore/../../src/corelib/tools/qscopedpointer.h:100: 
instanti
ated from 'QScopedPointer<T, Cleanup>::~QScopedPointer() [with T = 
ctkSortFilter
ActionsProxyModelPrivate, Cleanup = 
QScopedPointerDeleter<ctkSortFilterActionsPr
oxyModelPrivate>]'
D:\Developer\Releases\MinGW\SHARED\ctk\CTK-build\Libs\Widgets\/../../../../../..
/../Sources/CTK/Libs/Widgets/ctkActionsWidget.h:106:   instantiated from 
here
C:\Qt\qt\include/QtCore/../../src/corelib/tools/qscopedpointer.h:59: error: 
inva
lid application of 'sizeof' to incomplete type 
'ctkSortFilterActionsProxyModelPr
ivate'
C:\Qt\qt\include/QtCore/../../src/corelib/tools/qscopedpointer.h:59: error: 
crea
ting array with negative size ('-0x000000001')
C:\Qt\qt\include/QtCore/../../src/corelib/tools/qscopedpointer.h:62: 
warning: po
ssible problem detected in invocation of delete operator:
C:\Qt\qt\include/QtCore/../../src/corelib/tools/qscopedpointer.h:54: 
warning: 'p
ointer' has incomplete type
D:\Developer\Releases\MinGW\SHARED\ctk\CTK-build\Libs\Widgets\/../../../../../..
/../Sources/CTK/Libs/Widgets/ctkActionsWidget.h:33: warning: forward 
declaration
 of 'struct ctkSortFilterActionsProxyModelPrivate'
C:\Qt\qt\include/QtCore/../../src/corelib/tools/qscopedpointer.h:62: note: 
neith
er the destructor nor the class-specific operator delete will be called, 
even if
 they are declared when the class is defined.
mingw32-make[5]: *** 
[Libs/Widgets/CMakeFiles/CTKWidgets.dir/moc_ctkActionsWidge
t.cxx.obj] Error 1
mingw32-make[4]: *** [Libs/Widgets/CMakeFiles/CTKWidgets.dir/all] Error 2
mingw32-make[3]: *** [all] Error 2
mingw32-make[2]: *** [CMakeExternals/Stamp/CTK-build/CTK-build-build] Error 
2
mingw32-make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2
mingw32-make: *** [all] Error 2 




More information about the Ctk-developers mailing list