PDA

View Full Version : Installing OpenGL/mesa on ubuntu



Shripad
11-15-2012, 12:57 PM
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

vanangamudi
11-29-2012, 08:25 AM
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

thokra
11-30-2012, 01:56 AM
What exactly is your problem? You only want to run a program or do you want to develop something? Which version of Ubuntu?

TheBraXi
12-08-2012, 06:35 PM
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.

Stephen Ranger
12-13-2012, 12:20 PM
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*



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>




$ 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)



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

brytegiest
04-06-2013, 10:25 AM
Hi Stephen,

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

Best,
Victor