0

Situation

I am about to build from source Octave 4.2.11, having Ubuntu 14.04. Among the optional-and-recommended packages there is OpenGL. The install read-me of Octave provides the following generic description:

API for portable 2-D and 3-D graphics (http://www.opengl.org). An OpenGL implementation is required to provide Octave's OpenGL-based graphics functions. Octave's OpenGL-based graphics functions usually outperform the gnuplot-based graphics functions because plot data can be rendered directly instead of sending data and commands to gnuplot for interpretation and rendering.

Issue

I lack an idea of what an OpenGL 'implementation' is, in fact.

As I go in synaptic and search whether and which OpenGL is installed (as though it were a program or a library), I am swamped by the items that refer to the search term 'OpenGL'. By typing apt-cache search OpenGL | wc -l I get 588 items...

I looked for download information from the OpenGL site on https://www.khronos.org/opengl/wiki/Getting_Started#Downloading_OpenGL, but it seems to redirect to different vendors (Intel, AMD/ATI, Nvidia) rather to Unix distributions, as I expected. The site gives even more specifics at https://www.khronos.org/opengl/wiki/Platform_specifics:_Linux but it seems to diverge even further.

Question

What is the name of the packages under which OpenGL proper is shipped in Ubuntu? I could then determine what I have and what I lack as far as OpenGL is concerned, and make do and mend accordingly.

XavierStuvw
  • 1,591

1 Answers1

0

You can install all of the dependencies needed to compile Octave by running the following commands.

First, enable the source repositories:

sudo sed -i 's/^. deb-src/deb-src/g' /etc/apt/sources.list

Next, update apt:

sudo apt update

Finally, install the build dependencies:

sudo apt-get build-dep octave
mchid
  • 44,904
  • 8
  • 102
  • 162