解决--No package 'glproto' found

在Ubuntu系统中遇到配置错误时,通过使用apt-get安装x11proto-gl-dev来解决glproto库未找到的问题,避免了手动下载源代码编译的步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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:
 <URL:http://www.X.org>
 .
 This package is built from the X.org glproto proto module.

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值