Remember that by default OSG will append a 'd' to the library name so make sure your build system for your application handles that when building in debug mode, otherwise it will continue to link to the normal libraries. To make myself clearer, for example, you would normally use libosg.so, but the debug library will be libosgd.so. If you have it set up to handle this already great, but if not, like I had to, you will need to account for it.
From: [email protected] [mailto:[email protected]] On Behalf Of Jan Ciger Sent: Friday, January 18, 2013 4:31 AM To: [email protected] Subject: Re: [osg-users] how to buildethe debug version of osg under Linux? On Fri, Jan 18, 2013 at 5:24 AM, Lv Qing <[email protected]> wrote: Hi, When I cmake the osg source under Linux,it seems to bulid the release version by default.Just want to know how to bulid the debug version :) Run ccmake or cmake-gui and change build type variable to Debug. You can also do it using regular cmake using a command line argument/define, but I don't recall the syntax from memory. However, I believe that, unless OSG sets this explicitly, the CMake default is a debug build if nothing is specified explicitly. Regards, Jan
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

