<p dir="ltr">Den 20 mars 2017 3:11 em skrev "Richard Brown" <<a href="mailto:richard.j.brown@live.co.uk">richard.j.brown@live.co.uk</a>>:<br>
><br>
> Bump. Does anyone have any experience building a VTK application in Qt Creator with static libraries?</p>
<p dir="ltr">I build our Qt + VTK almost daily from within Qt Creator, but never with static libraries, for the reasons David brought up. I would recommend going with dynamic linking unless you have a very strong reason not to.</p>
<p dir="ltr">I've also recently dabbled with packaging as an AppImage on Linux (worked quite well).</p>
<p dir="ltr">Elvis</p>
<p dir="ltr">><br>
> Regards,<br>
> Richard<br>
><br>
>> On 16 Mar 2017, at 17:07, mbcx9rb9 <<a href="mailto:richard.j.brown@live.co.uk">richard.j.brown@live.co.uk</a>> wrote:<br>
>><br>
>> Building in Qt Creator gives this error. Building with Cmake compiles without any problems (I assumed due to VTK_USE_FILE). Also I can compile the program in Qt Creator using dylibs without any problems (so I guess normally Qt links to Cocoa, it's just linking to cocoa when using static libs in Qt that causes the problem).<br>
>><br>
>> Thanks<br>
>><br>
>> On 16 Mar 2017 5:01 p.m., "Sean McBride [via VTK]" <ml-node+[hidden email]> wrote:<br>
>>><br>
>>> On Wed, 15 Mar 2017 14:13:39 +0000, Richard Brown said: <br>
>>><br>
>>> >So how do I go about linking against Cocoa.framework. With another <br>
>>> >VTK_MODULE_INIT? <br>
>>><br>
>>> You need to do that when building your application, as opposed to building VTK. Do you build your app with CMake? With Xcode? With something else? Presumably you're ultimately using clang, in which case something needs to pass "-framework Cocoa" to it. <br>
>>><br>
>>> Cheers, <br>
>>><br>
>>> -- <br>
>>> ____________________________________________________________ <br>
>>> Sean McBride, B. Eng [hidden email] <br>
>>> Rogue Research <a href="http://www.rogue-research.com">www.rogue-research.com</a> <br>
>>> Mac Software Developer Montréal, Québec, Canada <br>
>>><br>
>>><br>
>>> _______________________________________________ <br>
>>> Powered by <a href="http://www.kitware.com">www.kitware.com</a> <br>
>>><br>
>>> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
>>><br>
>>> Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>>><br>
>>> Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=vtkusers</a><br>
>>><br>
>>> Follow this link to subscribe/unsubscribe: <br>
>>> <a href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
>>><br>
>>><br>
>>> ________________________________<br>
>>> If you reply to this email, your message will be added to the discussion below:<br>
>>> <a href="http://vtk.1045678.n5.nabble.com/VTK-deployment-with-static-libraries-on-Mac-and-in-Qt-Creator-tp5742475p5742496.html">http://vtk.1045678.n5.nabble.com/VTK-deployment-with-static-libraries-on-Mac-and-in-Qt-Creator-tp5742475p5742496.html</a><br>
>>> To unsubscribe from VTK deployment with static libraries on Mac (and in Qt Creator), click here.<br>
>>> NAML<br>
>><br>
>><br>
>><br>
>> ________________________________<br>
>> View this message in context: Re: VTK deployment with static libraries on Mac (and in Qt Creator)<br>
>> Sent from the VTK - Users mailing list archive at Nabble.com.<br>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>><br>
>> Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=vtkusers</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=vtkusers</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
></p>