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

Clinton Stimpson clinton at elemtech.com
Tue Sep 28 12:01:52 EDT 2010


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



More information about the vtkusers mailing list