[vtkusers] VTK deployment with static libraries on Mac (and in Qt Creator)
Richard Brown
richard.j.brown at live.co.uk
Tue Mar 21 10:04:57 EDT 2017
Hi David, Elvis,
I’ll stick to dynamic libraries in that case.
After a bit of reading I think I need to copy the dynamic libraries into the app bundle then use install_name_tool to sort out all the paths.
Thanks for the help,
Richard
On 20 Mar 2017, at 17:44, David Gobbi <david.gobbi at gmail.com<mailto:david.gobbi at gmail.com>> wrote:
Hi Richard,
It is possible to build dynamically-linked applications with Qt and VTK, and to share such applications. On the Mac, the Qt libraries become part of the app bundle. I do not know how to do this with Qt Creator, but there should definitely be Qt experts around who know how to do it. Maybe not on the VTK list, however, since I don't think that many of us here use Qt Creator.
There are two strong reasons for using dynamic linking with Qt:
1) it allows you to use the Qt binaries from the Qt download site.
2) it allows you to use the Qt LGPL license without releasing your code
Reason (2) is important. If you use static Qt libraries, then you must either pay for a Qt license or else release your own code as LGPL or a compatible open-source license.
- David
On Mon, Mar 20, 2017 at 9:20 AM, Sean McBride <sean at rogue-research.com<mailto:sean at rogue-research.com>> wrote:
On Thu, 16 Mar 2017 09:07:54 -0700, mbcx9rb9 said:
>Building in Qt Creator gives this error. Building with Cmake compiles
>without any problems
So sounds more like a Qt problem problem, to be asked on a Qt list...
(I've never used Qt, so alas have no further suggestions.)
Sean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170321/12349a63/attachment.html>
More information about the vtkusers
mailing list