[Ctk-developers] CTKWidgets compile errors

Julien Finet julien.finet at kitware.com
Thu Sep 16 04:27:53 EDT 2010


Dean,

your failing tests come from the fact that ctest can't find the VTK
libraries ( you would need to set the bin path of VTK into your PATH env
variable until we have a CTK launcher (to automatically set environment
variables before calling the tests)

Concerning the errors, they come from DCMTK but DCMTK doesn't officially
support MinGW. However we have a local copy of DCMTK so I guess we can add
more patches to it.

Julien.
On Thu, Sep 16, 2010 at 1:43 AM, Dean Inglis <dean.inglis at camris.ca> wrote:

> Hi Jc,
>
> compile problems fixed.  FYI, I ran ctest in my CTK-build dir and
> the following tests are failing:
> 89% tests passed, 6 tests failed out of 53
> Label Time Summary:
> CTKCore                       =  11.09 sec
> CTKPluginFramework            =   0.17 sec
> CTKVisualizationVTKCore       =   8.40 sec
> CTKVisualizationVTKWidgets    =  51.38 sec
> CTKWidgets                    =  51.37 sec
>
> Total Test time (real) = 123.07 sec
>
> The following tests FAILED:
>         1 - ctkCommandLineParserTest1 (Failed)
>        38 - ctkVTKConnectionTest1 (Failed)
>        41 - ctkTransferFunctionViewTest1 (SEGFAULT)
>        42 - ctkTransferFunctionViewTest2 (SEGFAULT)
>        43 - ctkTransferFunctionViewTest3 (SEGFAULT)
>        44 - ctkTransferFunctionViewTest4 (SEGFAULT)
>
> Also, I turned on
> //Enable DICOM/Core Library.
> CTK_LIB_DICOM/Core:BOOL=ON
> to see if I can build more of ctk but encounter the following errors:
>
> [ 42%] No build step for 'DCMTK'
> [ 42%] Performing install step for 'DCMTK'
> Scanning dependencies of target ofstd
> [  0%] Building CXX object
> ofstd/libsrc/CMakeFiles/ofstd.dir/ofcmdln.cxx.obj
> In file included from
> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Sour
> ce\DCMTK\ofstd\libsrc\ofcmdln.cxx:34:
>
> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Build\DCMTK\include/dcmtk/
> config/osconfig.h:793:1: warning: "NO_IOS_BASE_ASSIGN" redefined
>
> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Build\DCMTK\include/dcmtk/
> config/osconfig.h:42:1: warning: this is the location of the previous
> definition
>
> In file included from
> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Sour
> ce\DCMTK\ofstd\include/dcmtk/ofstd/oflist.h:99,
>                from
> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Sour
> ce\DCMTK\ofstd\include/dcmtk/ofstd/ofcmdln.h:39,
>                from
> D:\Developer\Releases\MinGW\SHARED\ctk\CMakeExternals\Sour
> ce\DCMTK\ofstd\libsrc\ofcmdln.cxx:36:
> c:\qt\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/sys/types.h:75:
> err
> or: multiple types in one declaration
> c:\qt\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/sys/types.h:75:
> err
> or: declaration does not declare anything
> c:\qt\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/sys/types.h:104:
> er
> ror: declaration does not declare anything
> mingw32-make[5]: *** [ofstd/libsrc/CMakeFiles/ofstd.dir/ofcmdln.cxx.obj]
> Error 1
>
> mingw32-make[4]: *** [ofstd/libsrc/CMakeFiles/ofstd.dir/all] Error 2
>
> mingw32-make[3]: *** [all] Error 2
> mingw32-make[2]: *** [CMakeExternals/Stamp/DCMTK/DCMTK-install] Error 2
> mingw32-make[1]: *** [CMakeFiles/DCMTK.dir/all] Error 2
>
> mingw32-make: *** [all] Error 2
>
>
> Ive read in a few posts that the multiple types in one declaration error
> can be caused by a missing
> semicolon at the end of a class definition or a missing closing brace in a
> class definition.
>
> Dean
>
> ----- Original Message ----- From: "Jean-Christophe Fillion-Robin" <
> jchris.fillionr at kitware.com>
> To: "Julien Finet" <julien.finet at kitware.com>
> Cc: <ctk-developers at commontk.org>
> Sent: Wednesday, September 15, 2010 6:55 PM
> Subject: Re: [Ctk-developers] CTKWidgets compile errors
>
>
>
> Hi Dean,
>>
>> The following commits:
>>
>> http://github.com/commontk/CTK/compare/bab18744b88d3166d37b...059542769bb1851fd6ed
>> .. should fix the problem.
>>
>> Let me know if you have any other issues.
>>
>> Thks
>> Jc
>>
>> On Wed, Sep 15, 2010 at 6:28 PM, Julien Finet <julien.finet at kitware.com
>> >wrote:
>>
>> Sorry about that... we're still working on these... we'll let you know
>>> when
>>> you can update your CTK dir.
>>> Thanks for your patience,
>>> Julien.
>>> On Wed, Sep 15, 2010 at 11:09 PM, Wagner Sales <wsales at gmail.com> wrote:
>>>
>>> Hi,
>>>>
>>>> I'm experiencing this errors with Qt 4.7.0 ( release candidate ).
>>>>
>>>> Wagner Sales
>>>>
>>>>
>>>> 2010/9/15 Dean Inglis <dean.inglis at camris.ca>:
>>>>  > 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
>>>> > _______________________________________________
>>>> > Ctk-developers mailing list
>>>> > Ctk-developers at commontk.org
>>>> > http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers
>>>> >
>>>> _______________________________________________
>>>> Ctk-developers mailing list
>>>> Ctk-developers at commontk.org
>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Ctk-developers mailing list
>>> Ctk-developers at commontk.org
>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers
>>>
>>>
>>>
>>
>> --
>> Phone: 1-518-836-2174
>> Ext: 304
>>
>>
>
> --------------------------------------------------------------------------------
>
>
>
>
> _______________________________________________
>> Ctk-developers mailing list
>> Ctk-developers at commontk.org
>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ctk-developers/attachments/20100916/bb69e04d/attachment.html>


More information about the Ctk-developers mailing list