
檢查失敗建置的建置日誌,以下錯誤是什麼意思,
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