[Vm-dev] VM building on Pi, OpenGL libraries and other fun things

David T. Lewis lewis at mail.msen.com
Tue Aug 8 21:24:45 UTC 2017


On Tue, Aug 08, 2017 at 01:26:04PM -0700, tim Rowledge wrote:
>  
> 
> > On 08-08-2017, at 6:50 AM, David T. Lewis <lewis at mail.msen.com> wrote:
> > 
> > 
> > On Mon, Aug 07, 2017 at 09:50:14PM -0700, tim Rowledge wrote:
> >> 
> >> Question for other linux users - do you have a libGL.so file? Did you have to install mesa-common-dev? Can you make a vm with a working B3DAcceleratorPlugin?
> >> 
> > 
> > Yes, on my Ubuntu laptop, I did this:
> > 
> > sudo apt-get install mesa-common-dev
> > sudo apt-get install libgl1-mesa-dev
> > sudo apt-get install libgles2-mesa-dev
> 
> OK, I only (manually) did the first. I still have no clue how to work out what packages you need to do what stuff. I???m sure it???s magnificently documented somewhere, like all software (what, me sarcastic?).
> 

I'm not sure where it is documented. I think I figured it out by hunting
through the mailing lists and/or google queries.

> Did you get an actual /usr/lib/libGL.so file ? It???s hard to imagine that something apparently crucial doesn???t get installed/created.
>

Yes, I have libGL.so. No, it is not (directly) in /usr/lib.

But the subdirectories under /usr/lib are organized to support the 32-bit and
64-bit libraries separately, so this looks reasonable. The libGL.so is symlinked
to a mesa directory, which presumably (just guessing) would distinguish it from
other possible implementations of libGL.so, and that in turn is symlinked to
whatever specific version is currently installed, which in my case appears to
be libGL.so.1.2.0.

This is on an old 64-bit Ubuntu, not 32-bit Raspian, but I find these files on the system:

$ locate libGL | xargs ls -l
-rw-r--r-- 1 root root 26329848 Aug  1 22:23 /opt/google/chrome/swiftshader/libGLESv2.so
lrwxrwxrwx 1 root root       14 Aug 21  2015 /usr/lib/i386-linux-gnu/mesa/libGL.so.1 -> libGL.so.1.2.0
-rw-r--r-- 1 root root   704604 Aug 21  2015 /usr/lib/i386-linux-gnu/mesa/libGL.so.1.2.0
lrwxrwxrwx 1 root root       21 Aug 21  2015 /usr/lib/x86_64-linux-gnu/libGLESv2.so -> mesa-egl/libGLESv2.so
lrwxrwxrwx 1 root root       19 Jul 28  2015 /usr/lib/x86_64-linux-gnu/libGLEWmx.so.1.10 -> libGLEWmx.so.1.10.0
-rw-r--r-- 1 root root   497728 Jan  2  2014 /usr/lib/x86_64-linux-gnu/libGLEWmx.so.1.10.0
lrwxrwxrwx 1 root root       17 Jul 28  2015 /usr/lib/x86_64-linux-gnu/libGLEW.so.1.10 -> libGLEW.so.1.10.0
-rw-r--r-- 1 root root   555080 Jan  2  2014 /usr/lib/x86_64-linux-gnu/libGLEW.so.1.10.0
lrwxrwxrwx 1 root root       13 Aug 21  2015 /usr/lib/x86_64-linux-gnu/libGL.so -> mesa/libGL.so
lrwxrwxrwx 1 root root       15 Jul 28  2015 /usr/lib/x86_64-linux-gnu/libGLU.so.1 -> libGLU.so.1.3.1
-rw-r--r-- 1 root root   449232 Oct 21  2013 /usr/lib/x86_64-linux-gnu/libGLU.so.1.3.1
lrwxrwxrwx 1 root root       18 Aug 21  2015 /usr/lib/x86_64-linux-gnu/mesa-egl/libGLESv2.so -> libGLESv2.so.2.0.0
lrwxrwxrwx 1 root root       18 Aug 21  2015 /usr/lib/x86_64-linux-gnu/mesa-egl/libGLESv2.so.2 -> libGLESv2.so.2.0.0
-rw-r--r-- 1 root root    26424 Aug 21  2015 /usr/lib/x86_64-linux-gnu/mesa-egl/libGLESv2.so.2.0.0
lrwxrwxrwx 1 root root       14 Aug 21  2015 /usr/lib/x86_64-linux-gnu/mesa/libGL.so -> libGL.so.1.2.0
lrwxrwxrwx 1 root root       14 Aug 21  2015 /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 -> libGL.so.1.2.0
-rw-r--r-- 1 root root   635512 Aug 21  2015 /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0

Dave





> 
> According to `apt list --installed ` I have these libgl related items as well - 
> 
> i   libgl1-mesa-dri                      - free implementation of the OpenGL API -- DRI m
> i   libgl1-mesa-glx                      - free implementation of the OpenGL API -- GLX r
> i   libgles1-mesa                        - free implementation of the OpenGL|ES 1.x API -
> i   libgles2-mesa                        - free implementation of the OpenGL|ES 2.x API -
> 
> I suppose I???ll have to assemble a vanilla Raspbian and check that to see what it includes by default.
> 
> > With Ian's cmake based build, you can exclude GL from the build with
> > the --without-gl option to the configure script, which makes it easy to
> > build a useful VM without the Linux library installation issues. But
> > I do not know of a way to do that with the oscog build process.
> 
> Same, I think. At least that???s what my ancient notes (old enough to be in Enochian) say. I think. They???ve grown grumpy over the years.
> 
> 
> tim
> --
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> Strange OpCodes: SDR: Shift Disk Right
> 
> 


More information about the Vm-dev mailing list