[Ctk-developers] MinGW build resolved +experimental dashboard

Sascha Zelzer s.zelzer at dkfz-heidelberg.de
Tue Aug 31 07:28:19 UTC 2010


Hi,

On 08/30/2010 11:08 PM, Dean Inglis wrote:
> Hi Julien, Sascha,
>
> thnks for being patient with the ctk newbie here.
>
> 1), 2) with latest git pull of vkt, default out of the box configuration,
> vtklibxml2 errors are:
>
> ...
>
> CMAKE_USE_PTHREADS set to OFF, fixes this issue, so it seems like this
> should be a default cmake configuration?
>
> As Im compiling VTK again (snooze), there are no visibility warnings anymore
> so
> default VTK_USE_GCC_VISIBILITY:BOOL=ON is now ok.
>    
Okay, you are still using your own VTK build. I think the 
CMAKE_USE_PTHREADS issue is a CMake problem. When testing the system, 
CMake shouldn't enable more than one available threading implemenations 
(ITK has the same problem, if you compile it with MinGW). We could 
communicate this to the CMake guys...
> At the moment Im fairly new to git and I havent made any changes
> to my clone of ctk to get things building, so i'll hold off on forking.
>
> 3)  I was running ctest from the build subdir CTK-build.  You can see my
> ctest cmake
> script on the current experimental dashboard post for hyoid.Teneos, based on
> ctkDashboardScript.EXAMPLE.cmake
>
> 4), I dont see why this testing problem happens with ctk and not vtk,
> could this have anything to do with the use of CMAKE_CFG_INTDIR in
> some of the ctk cmake macros?
>
>    
I hope I fixed the testing issue with commit 
http://github.com/commontk/CTK/commit/aa252c01c1896dbf96e856b06dc511eb8f90106e 
. At least I can run ctest now successfully in the CTK-build directory 
(both MinGW and VC builds).
> I'll post an experimental dashboard each morning or as required.
>
> Dean
>
>    
We really need more Windows testing machines...

Thanks,
Sascha

>    
>> 4) A lot of conditions in CTK cmake files are done with the assumption
>> that
>> if the platform is WIN32 then it's a Visual Studio compiler. The correct
>> tests should check the content of the variable: CMAKE_CONFIGURATION_TYPES
>> (
>> http://cmake.org/Wiki/CMake_Useful_Variables).
>>
>> Julien.
>>
>> On Mon, Aug 30, 2010 at 3:48 PM, Sascha Zelzer
>> <s.zelzer at dkfz-heidelberg.de>wrote:
>>
>>      
>>>   Hi,
>>>
>>> also many thanks from me, Dean.
>>>
>>> 1) The vtk pthreads issue has been taken care of with commit
>>> http://github.com/commontk/CTK/commit/fb5810b28ec44fbc465182f82768e3e5d9ced79a.
>>> Also the gcc visibility issues in VTK have been fixed:
>>> http://github.com/Kitware/VTK/commit/0a5eb2e9379a35134dabd282e164971e29783e46
>>>
>>> 2) With the commits above, step 2 shoudn't be necessary. Can you post the
>>> build errors for VTK?
>>>
>>> 3)
>>>
>>> 4) I can confirm that ctest does not work on MinGW systems. It looks in
>>> "Debug", "Release", etc. subdirectories of<SUPERBUILD>/CTK-build for
>>> executables. Those directories of course don't exist in make based
>>> projects.
>>>
>>> - Sascha
>>>
>>>
>>> On 08/30/2010 08:59 PM, Jean-Christophe Fillion-Robin wrote:
>>>
>>> Hi Dean,
>>>
>>> Thanks for looking into all these issues :)
>>>
>>> 1) Do you confirm that the flag VTK flag CMAKE_USE_PTHREADS and
>>> VTK_USE_GCC_VISIBILITY should be turned OFF only for Mingw ?
>>>
>>> 2) Could you fork CTK and create/publish a branch named: *
>>> fix_build_vtk_with_mingw*
>>>
>>> 3) How did you setup the dashboard?
>>>    - are you using the example script provided in CTK/CMake ?
>>>
>>> If you want to run ctest directly from the command line, make sure you
>>> run
>>> it from the inner directory:
>>>   <SUPERBUILD>/CTK-build
>>>
>>> Thks
>>> Jc
>>>
>>> On Mon, Aug 30, 2010 at 2:30 PM, Dean Inglis
>>> <dean.inglis at camris.ca>wrote:
>>>
>>>        
>>>> Switching to Qt 4.6.3 Win32 SDK and using embedded MinGW fixed
>>>> all the build errors I was having.  I have set up an experimental
>>>> dashboard and
>>>> submitted... seems that QtMobility didnt build during the test.
>>>> VTK needed to be built with
>>>> CMAKE_USE_PTHREADS:BOOL=OFF
>>>> VTK_USE_GCC_VISIBILITY:BOOL=OFF
>>>>
>>>> currently dcmtk doesnt build (see below) and ctest is looking in
>>>> the wrong places for the tests.
>>>>
>>>> Dean
>>>>
>>>> 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
>>>> _______________________________________________
>>>> 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
>>>
>>>
>>>        
>>      
>
> --------------------------------------------------------------------------------
>
>
>    
>> _______________________________________________
>> Ctk-developers mailing list
>> Ctk-developers at commontk.org
>> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers
>>
>>      
>    




More information about the Ctk-developers mailing list