解决--No package 'glproto' found

checking for GLPROTO... no
configure: error: Package requirements (glproto >= 1.4.14) were not met:

No package 'glproto' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GLPROTO_CFLAGS
and GLPROTO_LIBS to avoid the need to call pkg-config.

See the pkg-config man page for more details.


解决:

sudo apt-get install x11proto-gl-dev


思路:

synaptic package manager查找不到这个包,记得以前装Mesa时并未遇见过这个错误。我想可能是以前该库包括在了其它库被装过了。这里需要的版本,网上搜源代码,本想下载源代码编译的,这里可以下载:https://launchpad.net/ubuntu/+source/x11proto-gl/1.4.14-2,也就是这个网页最下面,也提供了编译的版本:

Binary packages built by this source

x11proto-gl-dev: X11 OpenGL extension wire protocol

 This package provides development headers describing the wire protocol
 for OpenGL-related extensions, used to enable the rendering of
 applications using OpenGL.
 .
 More information about X.Org can be found at:
 
 .
 This package is built from the X.org glproto proto module.

于是突发奇想的试了一下。apt-get直接安装 x11proto-gl-dev,居然有,可以了,不用下载了也不用编译了~~hoho。

你可能感兴趣的:(错误及解决)