[vtkusers] vtk build is broken on windows with shared libraries and Java turned on

Mark Roden mmroden at gmail.com
Wed Oct 27 12:37:21 EDT 2010


Hi all,

The vtk git source is broken for windows builds with shared libraries and
java turned on, and has been for quite a while now.  I've moved back to vtk
5.6.1 in the meantime, but instabilities in that build have me looking more
to the most recent git repository in the hopes that it solves the random
crashes I'm encountering.

The compile errors look like:

22>h:\src\vtk-git\common\vtkDataArrayTemplate.h(329) : error C4430: missing
type specifier - int assumed. Note: C++ does not support default-int
22>h:\src\vtk-git\common\vtkArrayIteratorTemplate.txx(32) : error C2491:
'vtkArrayIteratorTemplate<T>::New' : definition of dllimport function not
allowed
22>h:\src\vtk-git\common\vtkArrayIteratorTemplate.txx(35) : error C2491:
'vtkArrayIteratorTemplate<T>::SetArray' : definition of dllimport function
not allowed
22>h:\src\vtk-git\common\vtkArrayIteratorTemplate.txx(42) : error C2491:
'vtkArrayIteratorTemplate<T>::vtkArrayIteratorTemplate' : definition of
dllimport function not allowed
22>h:\src\vtk-git\common\vtkArrayIteratorTemplate.txx(50) : error C2491:
'vtkArrayIteratorTemplate<T>::~vtkArrayIteratorTemplate' : definition of
dllimport function not allowed
22>h:\src\vtk-git\common\vtkArrayIteratorTemplate.txx(62) : error C2491:
'vtkArrayIteratorTemplate<T>::Initialize' : definition of dllimport function
not allowed
22>h:\src\vtk-git\common\vtkArrayIteratorTemplate.txx(73) : error C2491:
'vtkArrayIteratorTemplate<T>::GetNumberOfTuples' : definition of dllimport
function not allowed
22>h:\src\vtk-git\common\vtkArrayIteratorTemplate.txx(84) : error C2491:
'vtkArrayIteratorTemplate<T>::GetNumberOfValues' : definition of dllimport
function not allowed
22>h:\src\vtk-git\common\vtkArrayIteratorTemplate.txx(95) : error C2491:
'vtkArrayIteratorTemplate<T>::GetNumberOfComponents' : definition of
dllimport function not allowed
22>h:\src\vtk-git\common\vtkArrayIteratorTemplate.txx(102) : error C2491:
'vtkArrayIteratorTemplate<T>::GetTuple' : definition of dllimport function
not allowed
22>h:\src\vtk-git\common\vtkArrayIteratorTemplate.txx(109) : error C2491:
'vtkArrayIteratorTemplate<T>::GetDataType' : definition of dllimport
function not allowed
22>h:\src\vtk-git\common\vtkArrayIteratorTemplate.txx(116) : error C2491:
'vtkArrayIteratorTemplate<T>::GetDataTypeSize' : definition of dllimport
function not allowed
22>h:\src\vtk-git\common\vtkArrayIteratorTemplate.txx(133) : error C2491:
'vtkArrayIteratorTemplate<T>::PrintSelf' : definition of dllimport function
not allowed

and I notice that there isn't a dashboard machine that builds vtk with
shared libraries for Windows with Java wrapping enabled (amber10 has shared
libraries on, just no java wrappings).

Any idea on how to fix this?  They only show up during Java file creation,
although it's hard to tell with parallel building turned on exactly which
files are spawning the errors.

Sometimes, there are also single errors showing up as well:

3>vtkDataArray.cxx
3>h:\src\vtk-git\common\vtkDataArrayTemplate.h(329) : error C4430: missing
type specifier - int assumed. Note: C++ does not support default-int

I don't think that that has anything to do with java wrappings.

Thanks,
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101027/60ed70b6/attachment.htm>


More information about the vtkusers mailing list