[vtkusers] VTK and Qt, static build

Lodron, Gerald Gerald.Lodron at joanneum.at
Mon Sep 20 02:29:38 EDT 2010


Did you know that qt is only free if you use it by dynamic linking? Static linking or modifying of code requires a licence of nokia! 

-----Ursprüngliche Nachricht-----
Von: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] Im Auftrag von Gib Bogle
Gesendet: Montag, 20. September 2010 03:45
An: vtkUsers
Betreff: [vtkusers] VTK and Qt, static build

I've been spending a couple of days trying to build a static version of Qt-4.6.3, then linking it into a static build of VTK, with the aim of being able to distribute a single execution file instead of a big package of DLLs.  This process has been fraught with problems, and I'm posting about it in the hope that someone else has ventured down the same path.  A forlorn hope, perhaps.

The static build of Qt-4.6.3 has errors that can be side-stepped (loosely based on info from Nokia) by replacing Q_DECL_IMPORT extern by Q_CORE_EXPORT in a couple of files.  This generates static Qt libraries, but when these are used in the VTK build (with Qt) there are many "undefined reference" errors referring to Qt functions.

Can VTK be built static using static Qt libraries?  Do I need to do anything special in the cmake configure?  As it is I see that the .a versions of the libraries are being selected.  It isn't clear to me what is the root cause of the compile errors I'm seeing.
_______________________________________________
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



More information about the vtkusers mailing list