[Ctk-developers] MinGW build resolved +experimental dashboard

Dean Inglis dean.inglis at camris.ca
Mon Aug 30 17:08:12 EDT 2010


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:

D:\Developer\Sources\vtkgit\VTK\Utilities\vtklibxml2\threads.c: In function 
'vtk
_libxml2_xmlRMutexUnlock':
D:\Developer\Sources\vtkgit\VTK\Utilities\vtklibxml2\threads.c:399: error: 
incom
patible types when assigning to type 'pthread_t' from type 'int'
D:\Developer\Sources\vtkgit\VTK\Utilities\vtklibxml2\threads.c: In function 
'vtk
_libxml2_xmlGetThreadId':
D:\Developer\Sources\vtkgit\VTK\Utilities\vtklibxml2\threads.c:624: error: 
aggre
gate value used where an integer was expected
D:\Developer\Sources\vtkgit\VTK\Utilities\vtklibxml2\threads.c: In function 
'vtk
_libxml2_xmlIsMainThread':
D:\Developer\Sources\vtkgit\VTK\Utilities\vtklibxml2\threads.c:660: error: 
inval
id operands to binary == (have 'pthread_t' and 'pthread_t')
D:\Developer\Sources\vtkgit\VTK\Utilities\vtklibxml2\threads.c: In function 
'xml
OnceInit':
D:\Developer\Sources\vtkgit\VTK\Utilities\vtklibxml2\threads.c:790: error: 
'run_
once' undeclared (first use in this function)
D:\Developer\Sources\vtkgit\VTK\Utilities\vtklibxml2\threads.c:790: error: 
(Each
 undeclared identifier is reported only once
D:\Developer\Sources\vtkgit\VTK\Utilities\vtklibxml2\threads.c:790: error: 
for e
ach function it appears in.)
D:\Developer\Sources\vtkgit\VTK\Utilities\vtklibxml2\threads.c:796: error: 
incom
patible types when assigning to type 'pthread_t' from type 'DWORD'
mingw32-make[2]: *** 
[Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/threads.c.o
bj] Error 1
mingw32-make[1]: *** [Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/all] 
Error
2
mingw32-make: *** [all] Error 2

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.

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'll post an experimental dashboard each morning or as required.

Dean


> 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