linux - 如何构建 libXrender
问题描述
配置 libXrender 包时出现错误
checking for RENDER... configure: error: Package requirements (x11 renderproto >= 0.9) were not met:
No package 'x11' 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 RENDER_CFLAGS
and RENDER_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
我的配置是
./configure --prefix=/tmp/instigate-software/gnu_system/3.2/x86_64/
但是当我写 echo $PKG_CONFIG_PATH 我得到
/tmp/instigate-software/gnu_system/3.2/x86_64/lib/pkgconfig
这是 pkgconfig 文件夹中包含的内容
ls /tmp/instigate-software/gnu_system/3.2/x86_64/lib/pkgconfig/
bigreqsproto.pc freetype2.pc libpng16.pc mpfr.pc recordproto.pc videoproto.pc xcb-proto.pc xcb-sync.pc xcb-xv.pc
binutils.pc gettext.pc libpng.pc ncurses.pc renderproto.pc xau.pc xcb-randr.pc xcb-xevie.pc xcmiscproto.pc
bison.pc glproto.pc libtiff-4.pc pciaccess.pc resourceproto.pc xcb-composite.pc xcb-record.pc xcb-xf86dri.pc xdmcp.pc
compositeproto.pc gmp.pc libxcb.pc pixman-1.pc scrnsaverproto.pc xcb-damage.pc xcb-render.pc xcb-xfixes.pc xextproto.pc
damageproto.pc ice.pc libXdmcp.pc pthread-stubs.pc sigc++-2.0.pc xcb-dpms.pc xcb-res.pc xcb-xinerama.pc xf86driproto.pc
expat.pc inputproto.pc libxml-2.0.pc python-2.7.pc sm.pc xcb-dri2.pc xcb-screensaver.pc xcb-xprint.pc xineramaproto.pc
fixesproto.pc kbproto.pc libxslt.pc python.pc stdc++.pc xcb-glx.pc xcb-shape.pc xcb-xtest.pc xproto.pc
fontsproto.pc libexslt.pc m4.pc randrproto.pc tiff.pc xcb.pc xcb-shm.pc xcb-xvmc.pc zlib.pc
这就是 renderproto.pc 文件中包含的内容
prefix=/tmp/instigate-software/gnu_system/3.2/x86_64
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: RenderProto
Description: Render extension headers
Version: 0.11
Cflags: -I${includedir}
它可能是什么?
解决方案
推荐阅读
- c# - 在 SuiteTalk 中更优雅地计算 SalesOrder 项目
- multidimensional-array - 如何从数组中拆分值?
- javascript - 为什么“focusin”事件在 Chrome 中被调用两次?
- c# - 如何使用 Regex.Split 获取组名称
- angular - HTTP DELETE 函数在 JSON-server 中表现得非常彻底
- php - 社交名流的 API 身份验证
- openapi - NSwag 在使用 OpenApi 3.0 JSON 文件时生成多个同名函数
- elasticsearch - Elastic Search delete_by_query 如何工作?当我们插入新数据并在删除文档时检索相同数据时会发生什么?
- python - 如何追溯python3.7中抛出的错误?
- android - 如何从主构造函数初始化成员变量