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

Mark Roden mmroden at gmail.com
Wed Oct 27 14:10:55 EDT 2010


Yes, it looks like something got corrupted along the way.

Deleting the cmake cache fixed it.

I have to build both 64 and 32 bit versions for deployment, so I wonder if
that caused it?

In any event, I can now build 64-- sorry for the false alarm.

Thanks,
Mark

On Wed, Oct 27, 2010 at 10:53 AM, Dave Partyka <dave.partyka at kitware.com>wrote:

> I think I agree with Wes, especially considering that these errors aren't
> present on the dashboard.
>
>
> On Wed, Oct 27, 2010 at 1:48 PM, Wes Turner <wes.turner at kitware.com>wrote:
>
>> Mark,
>>
>> This may just be noise, but I am thinking that I may have run into this a
>> few weeks back.  My issue was resolved by completely removing my binary
>> directory and starting over.  Did you try building in a clean binary tree?
>>
>> - Wes
>>
>>
>> On Wed, Oct 27, 2010 at 1:27 PM, Mark Roden <mmroden at gmail.com> wrote:
>>
>>> Visual studio 2008, 64 bit version.
>>>
>>> On Wed, Oct 27, 2010 at 10:15 AM, Dave Partyka <dave.partyka at kitware.com
>>> > wrote:
>>>
>>>> Those options should be fine. What compiler version are you using?
>>>>
>>>>
>>>> On Wed, Oct 27, 2010 at 1:12 PM, Mark Roden <mmroden at gmail.com> wrote:
>>>>
>>>>> Hi Dave,
>>>>>
>>>>> Thanks.  I'm actually getting the build errors with Java wrapping
>>>>> turned off now, so I'm thinking I have something strange going on on my
>>>>> particular machine.
>>>>>
>>>>> I've just done a git status, reverted all files, and git pull, to
>>>>> ensure that I'm up-to-date.
>>>>>
>>>>> My cmake options are
>>>>>
>>>>> shared libs
>>>>> use_n_way_arrays
>>>>> use_rendering
>>>>> and I change the default install directory to somewhere on my H drive.
>>>>>
>>>>> I turned off the java wrapping.
>>>>>
>>>>> I'm still getting the errors.
>>>>>
>>>>> Thoughts?
>>>>>
>>>>> Thanks,
>>>>> Mark
>>>>>
>>>>>
>>>>> On Wed, Oct 27, 2010 at 9:56 AM, Dave Partyka <
>>>>> dave.partyka at kitware.com> wrote:
>>>>>
>>>>>> Hi Mark,
>>>>>>
>>>>>> I'll add Java to a couple of the Windows dashboards. I turned Java
>>>>>> wrapping off when it started randomly failing when built in parallel. David
>>>>>> Gobbi recently committed a fix for that so I will turn Java wrapping back
>>>>>> on.
>>>>>>
>>>>>> On Wed, Oct 27, 2010 at 12:37 PM, Mark Roden <mmroden at gmail.com>wrote:
>>>>>>
>>>>>>> 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
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Powered by www.kitware.com
>>>>>>>
>>>>>>> Visit other Kitware open-source projects at
>>>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>>>
>>>>>>> Please keep messages on-topic and check the VTK FAQ at:
>>>>>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>>>>>
>>>>>>> Follow this link to subscribe/unsubscribe:
>>>>>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>> _______________________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the VTK FAQ at:
>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>
>>>
>>
>>
>> --
>> Wesley D. Turner, Ph.D.
>> Kitware, Inc.
>> Technical Leader
>> 28 Corporate Drive
>> Clifton Park, NY 12065-8662
>> Phone: 518-881-4920
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101027/470d8da2/attachment.htm>


More information about the vtkusers mailing list