[vtkusers] VTK static link with Qt app on Mac OS X
Gib Bogle
g.bogle at auckland.ac.nz
Tue Sep 28 01:42:02 EDT 2010
> 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.
More information about the vtkusers
mailing list