[vtkusers] VTK deployment with static libraries on Mac (and in Qt Creator)

David Gobbi david.gobbi at gmail.com
Tue Mar 21 10:08:20 EDT 2017


Hi Richard,

CMake can take care of that for you, see the following web page:
http://cmake.org/cmake/help/v3.0/module/BundleUtilities.html
There's more information about this issue on the cmake mailing list.

Cheers,
 - David

On Tue, Mar 21, 2017 at 8:04 AM, Richard Brown <richard.j.brown at live.co.uk>
wrote:

> 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> 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>
> 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/02b8c1c7/attachment.html>


More information about the vtkusers mailing list