From: Greg H. <humper@Graphics.Stanford.EDU> - 2001-07-30 18:51:01
|
You guys should look at the "Debugging a SPU" section of the documentation, which has some techniques for doing this. symlinks are fine, and have the advantage that you don't end up blowing a whole day because you've been debugging yesterday's build by mistake :) -- Some people call me the space cowboy... Some call me the gangster of love... Some people call me ... HUMPER (hu...@gr...) > -----Original Message----- > From: chr...@li... > [mailto:chr...@li...]On Behalf Of Sean Ahern > Sent: Friday, July 27, 2001 3:33 PM > To: Brian Paul > Cc: chromium-dev > Subject: Re: [Chromium-dev] Does mural.conf work? > > > Brian Paul wrote: > > OK. I'm at least happy that I'm not the only one having trouble. > > Perhaps Greg can shed more light on this when he's back on-line. > > That's what I'm hoping. I'm also hoping that maybe it was the nVidia > drivers on my Linux box that are causing the problem. I had hoped to try > this on an SGI today to see, but I'm busy working on other things. > > > > You may be able to more easily debug this by bypassing > crappfaker. For > > > WireGL, at least, I was able to set up my environment variables > > > (LD_LIBRARY_PATH, etc.) so that I could just run "atlantis" > (or whatever) > > > manually and have WireGL kick in. Chromium should be able to > do the same > > > thing. That way you can get at it with a debugger. > > Just to prove to myself that I can do this in Chromium, I gave it a shot. > It's a bit more complicated than it was in WireGL. Here are the steps > (UNIX-centric): > > 1) Head into cr/lib/<os>. You will find a library called > "libcrfaker.so". > This is the library that has the entry points for Chromium. > You need to > copy this to a temporary space. Make a temporary directory > (here called > "/var/tmp/fake"). Do "cp libcrfaker.so /var/tmp/fake/libGL.so" > > 2) You need to reproduce the OpenGL library file structure of your OS. Do > "ls -l /usr/lib/libGL.*". You should get something like: > > /usr/lib/libGL.so -> libGL.so.1.0.1251 > /usr/lib/libGL.so.1 -> libGL.so.1.0.1251 > /usr/lib/libGL.so.1.0.1251 > > Reproduce the file structure: > > % cd /var/tmp/fake > % ln -s libGL.so libGL.so.1 > % ln -s libGL.so libGL.so.1.0.1251 > > 3) Set up some environment variables. First, LD_LIBRARY_PATH (customise > for your shell): > > % typeset LD_LIBRARY_PATH=/var/tmp/fake:$LD_LIBRARY_PATH > > Chromium also needs an application ID: > > % typeset CR_APPLICATION_ID_NUMBER=0 > > 4) You're done. Run whatever OpenGL application you want and it will get > intercepted by Chromium: > > % fonttest > > > WARNING: I crashed XFree86 a couple times while trying to perfect this. > YMMV. > > If anyone knows/finds a better way to do this, please chime in. > > -Sean > > -- __ . > ah...@ll... ( _ _.._ /||_ _ ._._ > Lawrence Livermore National Laboratory __)(/_(_|| ) /-|| )(/_| | ) > > _______________________________________________ > Chromium-dev mailing list > Chr...@li... > http://lists.sourceforge.net/lists/listinfo/chromium-dev > > |