[vtkusers] [FORGED] Re: Qt-based VTK app shows black image content if VTK is linked statically

Sophonet vtk12af6bc42 at kant.sophonet.de
Fri Aug 5 17:31:55 EDT 2016


Hi,

great that this is beine picked up. No, absolutely no changes besides 
switching from dynamic to static. The revision was exactly the same, the 
CMake flags as well.

Again, some content (vtkPolyData) was shown, but other content (in my 
case results of vtkImageReslice) was not. If you guys have already a 
clue about what might be the cause, please go ahead, otherwise, I will 
try to set up a minimal example in the next days/weeks, and if I find 
something, I will file a merge request.

Cheers,

      Sophonet


Am 2016-08-05 22:51, schrieb Dženan Zukić:
> Hi Sophonet and Enzo,
> 
> is it possible you made other changes besides switching VTK from DLLs
> to static libraries? Perhaps your application was using a different
> version of VTK DLLs than you thought etc.
> 
> If that is not the case, can you point to an example which exhibits
> the problem?
> 
> Regards,
> Dženan
> 
> On Wed, Aug 3, 2016 at 2:24 PM, Gib Bogle <g.bogle at auckland.ac.nz>
> wrote:
> 
>> Statically linked VTK 5.10 works fine with Qt.
>> ________________________________________
>> From: vtkusers [vtkusers-bounces at vtk.org] on behalf of Enzo
>> Matsumiya [enzo.matsumiya at gmail.com]
>> Sent: Thursday, 4 August 2016 6:21 a.m.
>> To: Constantinescu Mihai via vtkusers
>> Subject: [FORGED] Re: [vtkusers] Qt-based VTK app shows black image
>> content if VTK is   linked statically
>> 
>> I can confirm that some issues occur when using VTK static as well
>> (VTK stable 7.0.0).
>> I could not look further into the issue, but my application crashed
>> instead of just black window, and I just rolled back to dynamic
>> build.
>> 
>> Appreciate any details on this.
>> 
>> Thanks,
>> 
>> Enzo
>> 
>>> On Aug 3, 2016, at 15:05, Sophonet
>> <vtk12af6bc42 at kant.sophonet.de> wrote:
>>> 
>>> Hi list,
>>> 
>>> recently, I have been working on a Qt application (using VTK
>> functionality in the main .exe and a bunch of underlying DLLs).
>>> 
>>> If VTK is built dynamically, the application behaves as expected.
>>> 
>>> However, if VTK is built statically (and - obviously - the
>> application and underlying DLLs are then built using the static
>> libraries of VTK), some content (vtkImageSlice) is missing in the
>> render window, i.e. does not appear at all. Other parts (e.g.
>> vtkPolyData) are shown correctly.
>>> 
>>> Anyone knows how to fix this? If possible, I would like to do
>> static linking of VTK.
>>> 
>>> Thanks,
>>> 
>>>     sophonet
>>> 
>>> 
>>> _______________________________________________
>>> Powered by www.kitware.com [1]
>>> 
>>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html [2]
>>> 
>>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ [3]
>>> 
>>> Search the list archives at:
>> http://markmail.org/search/?q=vtkusers [4]
>>> 
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/vtkusers [5]
>> 
>> _______________________________________________
>> Powered by www.kitware.com [1]
>> 
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html [2]
>> 
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ [3]
>> 
>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>> [4]
>> 
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/vtkusers [5]
>> _______________________________________________
>> Powered by www.kitware.com [1]
>> 
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html [2]
>> 
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ [3]
>> 
>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>> [4]
>> 
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/vtkusers [5]
> 
> 
> 
> Links:
> ------
> [1] http://www.kitware.com
> [2] http://www.kitware.com/opensource/opensource.html
> [3] http://www.vtk.org/Wiki/VTK_FAQ
> [4] http://markmail.org/search/?q=vtkusers
> [5] http://public.kitware.com/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
> 
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> 
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers


More information about the vtkusers mailing list