[vtkusers] VTK static link with Qt app on Mac OS X

Gib Bogle g.bogle at auckland.ac.nz
Tue Sep 28 15:31:04 EDT 2010


Quoting Clinton Stimpson <clinton at elemtech.com>:

> On Monday, September 27, 2010 11:42:02 pm Gib Bogle wrote:
>> > Combining tips from Andre and Clint, and some googling for the last
>> > unreferenced symbol, I added
>> >
>> > -framework Carbon -framework AGL -framework IOKit
>> >
>> > and it works!
>> >
>> > Thanks to everyone who responded.
>>
>> Hah!  It linked without errors, but fails on trying to render the VTK
>> scene.  I can reproduce the problem by building the simple QVTK_test
>> example that I posted earlier, when I was trying to get the static VTK
>> link working on Linux.  I can build QVTK_test-static without errors on the
>> Mac, but when I execute it the crash is immediate.
>>
>> Exception Type: EXC_BAD_ACCESS (SIGBUS)
>> Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
>> Crashed thread: 0  Dispatch queue: com.apple.main-thread
>>
>> It appears that the exception occurred during execution of:
>> vtkCarbonRenderWindow::CreateAWindow() + 955
>>
>> I wonder if this means I should give up.  It's a shame, because the static
>> link makes things much neater.
>
> Can you try one of the VTK/Qt examples to see if it also crashes.
>
> Clint

Will do when I get back on the Mac.


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the vtkusers mailing list