哪个conda-build CDT包提供X11/X.h文件?
问题:哪个CDT包提供X11/X.h文件?
原构建配置(meta.yaml)
requirements: build: - {{ compiler('c') }} - {{ compiler('cxx') }} - {{ cdt('libx11-devel') }} # [linux] - cmake - git - swig - xorg-xproto # [linux]
构建报错信息
In file included from /home/dbanas/miniconda3/conda-bld/enable_1678986918786/_build_env/x86_64-conda-linux-gnu/sysroot/usr/include/X11/Xutil.h:53, from kiva/agg/src/x11/agg_bmp.cpp:12: /home/dbanas/miniconda3/conda-bld/enable_1678986918786/_build_env/x86_64-conda-linux-gnu/sysroot/usr/include/X11/Xlib.h:44:10: fatal error: X11/X.h: No such file or directory
答案
提供X11/X.h文件的CDT包是xorg-x11-proto-devel。你当前添加的xorg-xproto是普通conda包,而非CDT包,无法在构建sysroot环境中提供所需头文件。修改build配置,将xorg-xproto替换为CDT版本的包即可:
requirements: build: - {{ compiler('c') }} - {{ compiler('cxx') }} - {{ cdt('libx11-devel') }} # [linux] - {{ cdt('xorg-x11-proto-devel') }} # [linux] - cmake - git - swig
内容的提问来源于stack exchange,提问作者David Banas
相关产品推荐
相关产品推荐

