[sldev] [VWR, LINUX] How to compile "Debug" and "Release" viewers?

Alissa Sabre alissa_sabre at yahoo.co.jp
Sun Mar 29 08:48:11 PDT 2009


Jason:
> What I do is edit the makefile and change the strip command to cp.
> Crude, I know, but it works and is easy to change back.
> 
> The unstripped "release" binary has all the debug info you need.

Regardless of the build type (Release/RelWithDebInfo/Debug), after
building the viewer, a file of name "secondlife-bin" is left in the
build directory.  It is an unstripped version of the executable with
full debug info.  When you want to debug the program, you can run it
directly, you can overwrite the stripped version
do-not-directly-run-secondlife-bin with it, or you can instruct gdb to
read debug info from secondlife-bin (with symbol-file command) while
running the stripped version of the executable.

Opensource Obscure:
> > Surely I'm doing it wrong, because both the "Debug" and the 
> > "Release" binaries I made have nearly the same size, 
> > and they provide similar logs.

Hmm.  Release and Debug binaries should have very different sizes.  In
my case, the resulting do-not-directly-run-secondlife-bin have 35MB
when Release and 54MB when Debug.  I need to agree that you have done
it in a wrong way.

    Alissa Sabre

--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/


More information about the SLDev mailing list