[vtkusers] Static Qt and static VTK - is it possible?

Marcus D. Hanwell marcus.hanwell at kitware.com
Fri Sep 24 09:24:40 EDT 2010


I think disabling that plugin for static builds is the correct thing to do -
you can make Qt build plugins in statically, but I don't think we need to
try and do that in this case. The designer plugin is there as an aid to
development, and when deploying a statically built application is not
necessary anyway.

Marcus

On Fri, Sep 24, 2010 at 8:57 AM, Dave Partyka <dave.partyka at kitware.com>wrote:

> Yeah, thats what I thought, I am just going to disable that plugin if doing
> a static build. The tiff errors I believe are symbols that weren't mangled
> as you said, so I'll take a stab at those.
>
>
> On Fri, Sep 24, 2010 at 8:50 AM, Michael Jackson <
> mike.jackson at bluequartz.net> wrote:
>
>>
>> On Sep 24, 2010, at 7:53 AM, Gib Bogle wrote:
>>
>>  Quoting Dave Partyka <dave.partyka at kitware.com>:
>>>
>>>  Hi Gib,
>>>>
>>>> I have recreated similar compile errors while building static vtk
>>>> against
>>>> static qt with Visual Studio 10 and Qt 4.7. I am not entirely positive
>>>> but I
>>>> suspect that QVTKWidgetPlugin shouldn't be built when doing a static
>>>> build.
>>>>
>>>
>>> Hi Dave,
>>>
>>> I wondered about that.  Is there a way for a user like me to exclude it?
>>>
>>> <snip>
>>>
>>>  I am also getting some tiff symbol redefinitions that I will look into
>>>> fixing.
>>>>
>>>
>>> <snip>
>>>
>>> Yes, I got those too.  I experimented a bit with the configure options
>>> for including libtiff, but nothing good came of it, and I gave up on static
>>> Qt for now.
>>>
>>> Cheers
>>> Gib
>>>
>>>
>> I am fairly sure of the following: If you build a static Qt then you can
>> not load plugins. I believe this is somewhere in the Qt Documentation.
>> Therefor, if you have a static Qt, then Qt Designer can not load the
>> QVTKWidgetPlugin that is compiled by VTK. Also, since both VTK and Qt use
>> libTiff compiling Static should cause conflicts of symbols although I
>> thought that VTK did something to the symbol names during configuration to
>> add a _vtk prefix to all the method names but I may be wrong. Tried this a
>> few years back and finally gave up and went with dynamic libraries all
>> around. Of course I had the luxury of being able to do this.
>> ___________________________________________________________
>> Mike Jackson                      www.bluequartz.net
>> Principal Software Engineer       mike.jackson at bluequartz.net
>> BlueQuartz Software               Dayton, Ohio
>>
>>
>>
>>
>>
>> _______________________________________________
>> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100924/2f2bdd4a/attachment.htm>


More information about the vtkusers mailing list