[vtkusers] compile with debug symbols on OSX

Darren Weber darren.weber.lists at gmail.com
Thu Apr 30 14:24:18 EDT 2009


I've got a question about how to compile vtk 5.4 with debug symbols on OSX.
I've set
CMAKE_BUILD_TYPE:STRING:RelWithDebInfo
and this sets "-O2 -g" compiler flags.

This is the comment I got from Rainer Muller about OSX debug symbols:

"
Are you sure the debug symbols are installed at all if you use it like that?

Unlike on other systems, Mac OS X (as of Leopard) stores debug symbols
in external directories called *.dSYM by default. So if you are just
using -g, I am not even sure this will change anything what gets installed.

The cmake port groups already adds a +debug variant. I don't know cmake
internals, so I cannot tell what this -DCMAKE_BUILD_TYPE=debugFull will
actually do and which flags it will add to compiler calls.
"

How do we check if the libraries contain debug symbols?

Does the build on OSX create .dSYM directories?  I don't think so.

What is "debugFull", I've not seen any documentation about that.

Take care, Darren
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090430/b8c92195/attachment.htm>


More information about the vtkusers mailing list