Re: [osg-users] how to buildethe debug version of osg under Linux?
Hi, move to the OSG folder and type: cmake . -DCMAKE_BUILD_TYPE=Debug Have a nice day, Martino 2013/1/18 Lv Qing donlvq...@msn.com 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 :) ... Thank you! Cheers, Lv -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=52005#52005 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] how to buildethe debug version of osg under Linux?
On Fri, Jan 18, 2013 at 5:24 AM, Lv Qing donlvq...@msn.com 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 osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] how to buildethe debug version of osg under Linux?
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: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Jan Ciger Sent: Friday, January 18, 2013 4:31 AM To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] how to buildethe debug version of osg under Linux? On Fri, Jan 18, 2013 at 5:24 AM, Lv Qing donlvq...@msn.com 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 osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] how to buildethe debug version of osg under Linux?
On Fri, Jan 18, 2013 at 1:01 PM, Cary, Karl A. karl.a.c...@saic.com wrote: 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. Does it actually do that in Linux? I don't think it does, but I may be wrong - I haven't rebuilt mine in a while. This is necessary in Windows because you must not mix debug and release builds, but in Linux it is no problem. Jan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] how to buildethe debug version of osg under Linux?
Yes. You can change it, but by default it appends the 'd' to the name. From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Jan Ciger Sent: Friday, January 18, 2013 8:50 AM To: OpenSceneGraph Users Subject: Re: [osg-users] how to buildethe debug version of osg under Linux? On Fri, Jan 18, 2013 at 1:01 PM, Cary, Karl A. karl.a.c...@saic.com wrote: 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. Does it actually do that in Linux? I don't think it does, but I may be wrong - I haven't rebuilt mine in a while. This is necessary in Windows because you must not mix debug and release builds, but in Linux it is no problem. Jan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] how to buildethe debug version of osg under Linux?
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 :) ... Thank you! Cheers, Lv -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=52005#52005 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org