Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 6 of 6

Thread: Installing OpenGL/mesa on ubuntu

  1. #1
    Newbie Newbie
    Join Date
    Nov 2012
    Posts
    1

    Question Installing OpenGL/mesa on ubuntu

    Hi,

    I am trying to install and use VTK on my 32-bit linux machine (EC2 instance on AWS).
    I was getting an error which i realized was because I did not have openGL/Mesa installed on my machine.
    So i installed Mesa using the following command: sudo apt-get install mesa-common-dev
    Now, I dont know where mesa is installed on my machine. There is no folder 'mesa' in /usr/lib/ and there is no libGl.so anywhere.
    Can anybody please tell me how to proceed further?

    Thanks,
    Shripad D

  2. #2
    Newbie Newbie
    Join Date
    Nov 2012
    Posts
    3

    Look for GL

    Quote Originally Posted by Shripad View Post
    Hi,

    I am trying to install and use VTK on my 32-bit linux machine (EC2 instance on AWS).
    I was getting an error which i realized was because I did not have openGL/Mesa installed on my machine.
    So i installed Mesa using the following command: sudo apt-get install mesa-common-dev
    Now, I dont know where mesa is installed on my machine. There is no folder 'mesa' in /usr/lib/ and there is no libGl.so anywhere.
    Can anybody please tell me how to proceed further?

    Thanks,
    Shripad D
    there will be no folders named "mesa". look for "GL" in /usr/include/
    then probably you got opengl installed in your system

  3. #3
    Senior Member OpenGL Pro
    Join Date
    Apr 2010
    Location
    Germany
    Posts
    1,128
    What exactly is your problem? You only want to run a program or do you want to develop something? Which version of Ubuntu?

  4. #4
    Newbie Newbie
    Join Date
    Dec 2012
    Posts
    3
    First check if you already have mesa installed, you can check it with command: dpkg -l *mesa*
    Then type this to install mesa GL implementation: sudo apt-get install libglapi-mesa && sudo apt-get install libosmesa6

    Hope this works.

  5. #5
    Junior Member Newbie
    Join Date
    Feb 2012
    Location
    New York
    Posts
    5
    I've been having the same issue however it seems that I have everything installed correctly, mesa drivers, and trying to use Xvfb to render offscreen (I have a headless server, no graphics card and using java/jogl). Any idea what I'm missing? Below are the various error messages I receive and the output to dpkg -l *mesa*

    Code :
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name                                                   Version                          Architecture                     Description
    +++-======================================================-================================-================================-=================================================================================================================
    ii  libgl1-mesa-dri:amd64                                  9.0-0ubuntu1                     amd64                            free implementation of the OpenGL API -- DRI modules
    ii  libgl1-mesa-glx:amd64                                  9.0-0ubuntu1                     amd64                            free implementation of the OpenGL API -- GLX runtime
    ii  libglapi-mesa:amd64                                    9.0-0ubuntu1                     amd64                            free implementation of the GL API -- shared library
    ii  libgles2-mesa:amd64                                    9.0-0ubuntu1                     amd64                            free implementation of the OpenGL|ES 2.x API -- runtime
    rc  libglu1-mesa:amd64                                     9.0.0-0ubuntu1                   amd64                            Mesa OpenGL utility library (GLU)
    ii  libosmesa6:amd64                                       9.0-0ubuntu1                     amd64                            Mesa Off-screen rendering extension
    ii  mesa-common-dev                                        9.0-0ubuntu1                     amd64                            Developer documentation for Mesa
    ii  mesa-utils                                             8.0.1+git20110129+d8f7d6b-0ubunt amd64                            Miscellaneous Mesa GL utilities
    <uninstalled packages removed for clarity>

    Code :
    $ Xvfb :0 -extension GLX -ac -screen 1 1600x1000x24+32 &
    user:~/$ Initializing built-in extension Generic Event Extension
    Initializing built-in extension SHAPE
    Initializing built-in extension MIT-SHM
    Initializing built-in extension XInputExtension
    Initializing built-in extension XTEST
    Initializing built-in extension BIG-REQUESTS
    Initializing built-in extension SYNC
    Initializing built-in extension XKEYBOARD
    Initializing built-in extension XC-MISC
    Initializing built-in extension SECURITY
    Initializing built-in extension XINERAMA
    Initializing built-in extension XFIXES
    Initializing built-in extension RENDER
    Initializing built-in extension RANDR
    Initializing built-in extension COMPOSITE
    Initializing built-in extension DAMAGE
    Initializing built-in extension MIT-SCREEN-SAVER
    Initializing built-in extension DOUBLE-BUFFER
    Initializing built-in extension RECORD
    Initializing built-in extension DPMS
    Initializing built-in extension X-Resource
    Initializing built-in extension XVideo
    Initializing built-in extension XVideo-MotionCompensation
    [dix] Could not init font path element /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType, removing from list!
     
    $ glxinfo
    name of display: localhost:0.1
    Error: couldn't find RGB GLX visual or fbconfig
     
     
     
    Error: couldn't find RGB GLX visual or fbconfig
     
    user:~/$ 10 XSELINUXs still allocated at reset
    SCREEN: 0 objects of 224 bytes = 0 total bytes 0 private allocs
    DEVICE: 0 objects of 104 bytes = 0 total bytes 0 private allocs
    CLIENT: 0 objects of 72 bytes = 0 total bytes 0 private allocs
    WINDOW: 0 objects of 24 bytes = 0 total bytes 0 private allocs
    PIXMAP: 2 objects of 16 bytes = 32 total bytes 0 private allocs
    GC: 8 objects of 16 bytes = 128 total bytes 0 private allocs
    CURSOR: 0 objects of 16 bytes = 0 total bytes 0 private allocs
    DBE_WINDOW: 0 objects of 24 bytes = 0 total bytes 0 private allocs
    TOTAL: 10 objects, 160 bytes, 0 allocs
    2 PIXMAPs still allocated at reset
    PIXMAP: 2 objects of 16 bytes = 32 total bytes 0 private allocs
    GC: 8 objects of 16 bytes = 128 total bytes 0 private allocs
    CURSOR: 0 objects of 16 bytes = 0 total bytes 0 private allocs
    DBE_WINDOW: 0 objects of 24 bytes = 0 total bytes 0 private allocs
    TOTAL: 10 objects, 160 bytes, 0 allocs
    8 GCs still allocated at reset
    GC: 8 objects of 16 bytes = 128 total bytes 0 private allocs
    CURSOR: 0 objects of 16 bytes = 0 total bytes 0 private allocs
    DBE_WINDOW: 0 objects of 24 bytes = 0 total bytes 0 private allocs
    TOTAL: 8 objects, 128 bytes, 0 allocs
    [dix] Could not init font path element /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType, removing from list!

    note that extension GLX is not loaded for some reason


    and my OpenGL application's error (jogl)

    Code :
    Unable to initialize shared context using PBuffer, falling back to displayable context creation.javax.media.opengl.GLException: Profile GL2GL3 is not available on null, but: []


    Any help would be appreciated!


    -Stephen

  6. #6
    Newbie Newbie
    Join Date
    Apr 2013
    Posts
    1
    Hi Stephen,

    I am looking at doing something similar. Were you able to get past those errors?

    Best,
    Victor

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •