sh:
commands to compile the source code. |
You did compile the program with a command (A).
The script has a command (B) to compile the program.
Do the A and B resemble each other in any way?
(It is actually possible that your A suits better your environment than the B.)
Shell scripts at large are very useful. A lot under the hood of Ubuntu is scripts. Scripts are not good or evil.
There are multiple utilities that can check what a system has and then generate as appropriate compilation commands for a program as possible. Such are used with multi-file programs that have to compile on GNU/Linux, OS X, Windows, Android, etc conveniently.
You, as a regular user apparently lack permission to access that "drm" device (the glxinfo attempts to do that).
Mesa is a software implementation of OpenGL.
The drivers of your GPU may support hardware-based implementation OpenGL.
@kevinkjt2000:
The Ubuntu ought to have
package management. The manager keeps track of which packages have been installed (enabling 'uninstall' option), and may resolve dependencies and conflicts too. The management prefers packages that have been
packaged for the system (i.e. have metadata about the package). Plain vanilla upstream source might be "unmanageable"; rogue files that the manager has no knowledge of. The managed system may also have special modifications in other packages which a source install will not anticipate. Furthermore, when a managed package is updated, all dependent packages have to comply, but nothing will know to check the source installs.
Mixing package management and source installs is like both you and your wife putting clothes into your cabinet; one or the other is bound to wonder why things are not "in proper order and place".