Jordi & Jan Thanks for your concerns. Your advice is very helpful. In fact my ubuntu is for 64bit target. I checked file attribute as follow: *file /usr/lib/fglrx/libGL.so* /usr/lib/fglrx/libGL.so: symbolic link to `libGL.so.1' *file /usr/lib/fglrx/libGL.so.1* /usr/lib/fglrx/libGL.so.1: symbolic link to `libGL.so.1.2' *file /usr/lib/fglrx/libGL.so.1.2* /usr/lib/fglrx/libGL.so.1.2: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
It seems that libGL.so is OK. I set LD_PRELOAD to * */usr/lib/fglrx/libGL.so and BadRequest error exist also. for Jan's advice, I checked glxinfo and get errors: *glxinfo* name of display: :0 X Error of failed request: BadRequest (invalid request code or no such operation) Major opcode of failed request: 155 (GLX) Minor opcode of failed request: 19 (X_GLXQueryServerString) Serial number of failed request: 12 Current serial number in output stream: 12 Yes, I come close root cause. But what is it? On Tue, Nov 13, 2012 at 8:16 PM, Jordi Torres <[email protected]>wrote: > Hi Li, > > Have you compiled OSG in 32 or 64 bit? Check if in /usr/lib/fglrx/dri or > /usr/lib32/fglrx/dri do exists libGL depending on your target architecture. > As Jan said a the output of glxinfo could give some light. libGL is > supposed to be installed/replaced with your drivers. > > Cheers. > > 2012/11/13 robotspace.biz <[email protected]> > > Hi Jordi, >> >> That's great. I believe you find the issue I encountered. >> Following is my check result. >> *env | grep -in libgl* >> 14:LIBGL_DRIVERS_PATH=/usr/lib/fglrx/dri:/usr/lib32/fglrx/dri >> That means no variable pointing to my libGL drivers. I checked /usr/lib >> directory and there is no libGL.so file. >> >> Is your OS is ubuntu too? Is ligGL.so is a link file or a real lib file? >> >> Here is my search command: sudo apt-cache search libgl. It is hard to >> select correct library from more than twenty libraries to install. >> >> BTW, libGL is an runtime lib? Should I re-configure-compile-install osg >> after I set LD_PRELOAD? >> >> >> On Tue, Nov 13, 2012 at 7:17 PM, Jordi Torres <[email protected]>wrote: >> >>> Hi Li, >>> >>> Just a long shot... have you tried to set LD_PRELOAD to your libGL.so >>> library. I have had similiar problems in the past with the old ATI drivers >>> as well as the Mesa drivers. Something like export >>> LD_PRELOAD=/usr/lib/libGL.so could do the trick. Anyway check your >>> environment variables with the command 'env' to see if there exist any >>> variable pointing to your libGL drivers. >>> >>> Cheers. >>> >>> 2012/11/13 Li Zhenpeng <[email protected]> >>> >>>> hi robert, >>>> Thanks for your concern. >>>> For my sign name, I will change it to keep same between google+ and osg >>>> forums. It's convinient to us all. >>>> For your advice, I will load the dependencies and rebuild osg. >>>> Could you please give me some more advice about X11 error? It's >>>> confusing and hard to conquer. >>>> It's necesary for me to create linux environment for osg because I have >>>> other projects such as Android and Minix on my laptop. >>>> >>>> >>>> On Tue, Nov 13, 2012 at 5:40 PM, Robert Osfield < >>>> [email protected]> wrote: >>>> >>>>> Hi Li? Zhenpeng? Could you sign with the name you wished to be address >>>>> as. Thanks. >>>>> >>>>> There looks to be two separate classes of problems - missing >>>>> dependences (peg and freetype) and the X11 error. >>>>> >>>>> To solve the dependencies issues you'll need to pull in the dev >>>>> packages, a list of the most common dependencies is listed on the page >>>>> below (you may need to adjust a little for variations between versions of >>>>> Ubunutu): >>>>> >>>>> >>>>> http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/Debian-Dependencies >>>>> >>>>> Once you have the dependencies you'll need to rebuild the OSG, to >>>>> force it to check again for the dependencies remove the >>>>> OpenSceneGraph/CmakeCache.txt and then re-run the ./configure. >>>>> >>>>> The X11 error is something I can't help with. I've used similar AMD >>>>> hardware before and haven't had problems under Kubuntu. >>>>> >>>>> Robert. >>>>> >>>>> >>>>> On 13 November 2012 08:32, Li Zhenpeng <[email protected]>wrote: >>>>> >>>>>> *I am a newbie on osg. >>>>>> My laptop's OS is ubuntu11.10 with AMD ATI HD6770. I've enabled 3D >>>>>> accellerate driver. >>>>>> >>>>>> I've compiled and installed osg3.01 successfully. Here is result: >>>>>> osglogo* >>>>>> Warning: Could not find plugin to read objects from file >>>>>> "Images/land_shallow_topo_2048.jpg". >>>>>> Warning: Could not find plugin to read objects from file >>>>>> "fonts/arial.ttf". >>>>>> Got an X11ErrorHandling call display=0x221f4f0 event=0x7fff4bc51890 >>>>>> BadRequest (invalid request code or no such operation) >>>>>> Major opcode: 155 >>>>>> Minor opcode: 19 >>>>>> Error code: 1 >>>>>> Request serial: 13 >>>>>> Current serial: 13 >>>>>> ResourceID: 23 >>>>>> Got an X11ErrorHandling call display=0x221f4f0 event=0x7fff4bc51890 >>>>>> BadRequest (invalid request code or no such operation) >>>>>> Major opcode: 155 >>>>>> Minor opcode: 19 >>>>>> Error code: 1 >>>>>> Request serial: 14 >>>>>> Current serial: 14 >>>>>> ResourceID: 23 >>>>>> Got an X11ErrorHandling call display=0x221f4f0 event=0x7fff4bc518e0 >>>>>> >>>>>> *osgviewer OpenSceneGraph-Data-3.0.0/cow.osg* >>>>>> Got an X11ErrorHandling call display=0x1b67bb0 event=0x7fff7145a6e0 >>>>>> BadRequest (invalid request code or no such operation) >>>>>> Major opcode: 155 >>>>>> Minor opcode: 19 >>>>>> Error code: 1 >>>>>> >>>>>> *osgviewer OpenSceneGraph-Data-3.0.0/example.osg * >>>>>> Old osgAnimation file format update your data file >>>>>> Old osgAnimation file format update your data file >>>>>> Got an X11ErrorHandling call display=0x1b272e0 event=0x7fffbfaa1230 >>>>>> BadRequest (invalid request code or no such operation) >>>>>> Major opcode: 155 >>>>>> Minor opcode: 19 >>>>>> Error code: 1 >>>>>> Request serial: 13 >>>>>> Current serial: 13 >>>>>> ResourceID: 23 >>>>>> * >>>>>> What's wrong with me?* >>>>>> >>>>>> _______________________________________________ >>>>>> osg-users mailing list >>>>>> [email protected] >>>>>> >>>>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> osg-users mailing list >>>>> [email protected] >>>>> >>>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> osg-users mailing list >>>> [email protected] >>>> >>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >>>> >>>> >>> >>> >>> -- >>> Jordi Torres Fabra >>> >>> gvSIG 3D blog >>> http://gvsig3d.blogspot.com >>> Instituto de Automática e Informática Industrial >>> http://www.ai2.upv.es >>> >>> _______________________________________________ >>> osg-users mailing list >>> [email protected] >>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >>> >>> >> >> _______________________________________________ >> osg-users mailing list >> [email protected] >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >> >> > > > -- > Jordi Torres Fabra > > gvSIG 3D blog > http://gvsig3d.blogspot.com > Instituto de Automática e Informática Industrial > http://www.ai2.upv.es > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

