[vtkusers] Problems compiling VTK using compiler in QT Creator

Martijn Steenwijk martijnsteenwijk at gmail.com
Sun Dec 6 14:01:06 EST 2009


Dear all,

 

I've a problem compiling VTK. In order to keep VTK compatible with software
developed in QT Creator, I'm trying to compile VTK using the MinGW with the
QT command line delivered with QT Creator 1.3.0 (Last version, based on Qt
4.6.0, using cmake 2.8). During building, I get the compilation error shown
below.

 

Does anyone have a suggestion to solve this?

 

Thanks for replies in advance,

Martijn

 

Compilation error:

 

K:\VTK\vtk-5.4.2_build64>mingw32-make

[  0%] Built target vtksysEncodeExecutable

[  0%] Built target vtksysProcessFwd9x

[  0%] Built target vtksys

[  1%] Built target vtkzlib

[  3%] Built target vtkjpeg

[  4%] Built target vtkpng

[  6%] Built target vtktiff

[  6%] Built target vtkexpat

[  7%] Built target vtkfreetype

[  7%] Building C object
Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/threads.

obj

K:\VTK\vtk-5.4.2_src\Utilities\vtklibxml2\threads.c: In function
'vtk_libxml2_xm

lRMutexUnlock':

K:\VTK\vtk-5.4.2_src\Utilities\vtklibxml2\threads.c:399: error: incompatible
typ

es when assigning to type 'pthread_t' from type 'int'

K:\VTK\vtk-5.4.2_src\Utilities\vtklibxml2\threads.c: In function
'vtk_libxml2_xm

lGetThreadId':

K:\VTK\vtk-5.4.2_src\Utilities\vtklibxml2\threads.c:624: error: aggregate
value

used where an integer was expected

K:\VTK\vtk-5.4.2_src\Utilities\vtklibxml2\threads.c: In function
'vtk_libxml2_xm

lIsMainThread':

K:\VTK\vtk-5.4.2_src\Utilities\vtklibxml2\threads.c:660: error: invalid
operands

 to binary == (have 'pthread_t' and 'pthread_t')

K:\VTK\vtk-5.4.2_src\Utilities\vtklibxml2\threads.c: In function
'xmlOnceInit':

K:\VTK\vtk-5.4.2_src\Utilities\vtklibxml2\threads.c:790: error: 'run_once'
undec

lared (first use in this function)

K:\VTK\vtk-5.4.2_src\Utilities\vtklibxml2\threads.c:790: error: (Each
undeclared

 identifier is reported only once

K:\VTK\vtk-5.4.2_src\Utilities\vtklibxml2\threads.c:790: error: for each
functio

n it appears in.)

K:\VTK\vtk-5.4.2_src\Utilities\vtklibxml2\threads.c:796: error: incompatible
typ

es when assigning to type 'pthread_t' from type 'DWORD'

mingw32-make[2]: ***
[Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/threads.obj

] Error 1

mingw32-make[1]: *** [Utilities/vtklibxml2/CMakeFiles/vtklibxml2.dir/all]
Error

2

mingw32-make: *** [all] Error 2

 

K:\VTK\vtk-5.4.2_build64>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091206/52bf790d/attachment.htm>


More information about the vtkusers mailing list