检查失败构建的构建日志,以下错误是什么意思,
fatal error: ac_nonexistent.h: No such file or directory #include <ac_nonexistent.h>
这是一些背景信息。
configure:6614: $? = 0
configure:6627: result: none needed
configure:6648: checking how to run the C preprocessor
configure:6679: gcc -E -Wdate-time -D_FORTIFY_SOURCE=2 conftest.c
configure:6679: $? = 0
configure:6693: gcc -E -Wdate-time -D_FORTIFY_SOURCE=2 conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
#include <ac_nonexistent.h>
^
compilation terminated.
configure:6693: $? = 1
configure: failed program was:
| /* confdefs.h */
什么是ac_nonexistent.h
?遇到这个错误我该怎么办?
答案1
那是一个完整性检查,以确保配置脚本能够正确地确定头文件是否存在:它要求编译器使用不存在的头,并检查编译器(正确地)是否失败。
请注意,您的构建在该“错误”之后继续...为了找出构建失败的原因,您通常应该从构建日志的末尾开始工作。在这种情况下,日志的重要部分是
configure:47489: checking for the Wayland protocols
configure:47492: $PKG_CONFIG --exists --print-errors "wayland-protocols >= 1.4"
Package wayland-protocols was not found in the pkg-config search path.
Perhaps you should add the directory containing `wayland-protocols.pc' to the PKG_CONFIG_PATH environment variable
No package 'wayland-protocols' found