dnschneid / crouton

Chromium OS Universal Chroot Environment
https://goo.gl/fd3zc?si=1
BSD 3-Clause "New" or "Revised" License
8.56k stars 1.24k forks source link

OpenGL (mesa) support #1433

Closed ghost closed 9 years ago

ghost commented 9 years ago

Hey,

I want to develop an application with glfw3 and glew and seem to be hitting a limitation on my drivers. Functions I want to use, need at least OpenGL 2.1, but

glxinfo | egrep 'OpenGL|vendor|version'

only outputs

glxinfo | egrep 'OpenGL|vendor|version'
server glx vendor string: SGI
server glx version string: 1.4
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
GLX version: 1.4
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile 

Could it be, that I have installed the wrong mesa packages? I followed this guide from stackoverflow: http://stackoverflow.com/questions/17768008/how-to-build-install-glfw-3-and-use-it-in-a-linux-project/17772217 (the top answer).

dpkg -la | grep -i mesa

Shows this:

rc  libegl1-mesa-lts-trusty                  10.1.3-0ubuntu0.2~precise2                          free implementation of the EGL API -- runtime
ii  libgl1-mesa-dev                          8.0.4-0ubuntu0.7                                    free implementation of the OpenGL API -- GLX development files
rc  libgl1-mesa-dri-lts-trusty               10.1.3-0ubuntu0.2~precise2                          free implementation of the OpenGL API -- DRI modules
ii  libgl1-mesa-glx                          8.0.4-0ubuntu0.7                                    free implementation of the OpenGL API -- GLX runtime
rc  libgl1-mesa-glx:i386                     8.0.4-0ubuntu0.7                                    free implementation of the OpenGL API -- GLX runtime
rc  libgl1-mesa-glx-lts-trusty               10.1.3-0ubuntu0.2~precise2                          free implementation of the OpenGL API -- GLX runtime
ii  libglapi-mesa                            8.0.4-0ubuntu0.7                                    free implementation of the GL API -- shared library
rc  libglapi-mesa:i386                       8.0.4-0ubuntu0.7                                    free implementation of the GL API -- shared library
rc  libglapi-mesa-lts-trusty                 10.1.3-0ubuntu0.2~precise2                          free implementation of the GL API -- shared library
ii  libglu1-mesa                             8.0.4-0ubuntu0.7                                    Mesa OpenGL utility library (GLU)
rc  libglu1-mesa:i386                        8.0.4-0ubuntu0.7                                    Mesa OpenGL utility library (GLU)
ii  libglu1-mesa-dev                         8.0.4-0ubuntu0.7                                    Mesa OpenGL utility library -- development files
ii  mesa-common-dev                          8.0.4-0ubuntu0.7                                    Developer documentation for Mesa
ii  mesa-utils                               8.0.1+git20110129+d8f7d6b-0ubuntu2                  Miscellaneous Mesa GL utilities

My Chromebook is the HP 14 with 4gb and this is my croutonversion output:

crouton: version 1-20150214193521~master:fe8e6dee
release: precise
architecture: amd64
xmethod: xorg
targets: xfce
host: version 6457.94.0 (Official Build) stable-channel falco
dnschneid commented 9 years ago

It looks like you reverted back to the non-lts-trusty packages. Try updating your chroot?

ghost commented 9 years ago

Man, I should really just do that before every issue... Any idea why I wasn't using the trusty packages?

dnschneid commented 9 years ago

You probably ran the sudo apt-get install ... libglu1-mesa-dev line which reverted you to the non-trusty versions.

ghost commented 9 years ago

How should I install these packages then? I ran the program once, it worked, changed something, now it doesn't find a bunch of these libraries lxrender, lxrandr etc.

dnschneid commented 9 years ago

Try looking for -lts-trusty versions of the packages.

ghost commented 9 years ago

I promise I won't ask anything more... :D http://packages.ubuntu.com/precise-updates/libgl1-mesa-dev-lts-trusty This would be correct?

dnschneid commented 9 years ago

That looks about right. Actually, reporting back with your findings is very useful, since it's possible that someone else will hit a similar issue down the road.

ghost commented 9 years ago

Alright to add more findings: I had to install these libraries all one by one also:

libxcursor-dev libxrandr-dev libxinerama-dev