Determining if the include file execinfo.h exists failed with the following output:
Change Dir: D:/ff-build/work/mingw64/fontforge/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/msys64/mingw64/bin/ninja.exe cmTC_481f1 && [1/2] Building C object CMakeFiles/cmTC_481f1.dir/CheckIncludeFile.c.obj
FAILED: CMakeFiles/cmTC_481f1.dir/CheckIncludeFile.c.obj
C:\msys64\mingw64\bin\cc.exe -DWIN32 -I/mingw64/include -I/usr/local/include -I/include -g -o CMakeFiles/cmTC_481f1.dir/CheckIncludeFile.c.obj -c CheckIncludeFile.c
CheckIncludeFile.c:1:10: fatal error: execinfo.h: No such file or directory
1 | #include <execinfo.h>
| ^~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
以上是报错信息,使用的msys2,mingw进行编译。百度许久,未能解决,求解
Determining if the include file execinfo.h exists failed with the following output:
Change Dir: D:/fontforge-20201107/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/msys64/usr/bin/make.exe -f Makefile cmTC_f2bb7/fast && /usr/bin/make -f CMakeFiles/cmTC_f2bb7.dir/build.make CMakeFiles/cmTC_f2bb7.dir/build
make[1]: Entering directory '/d/fontforge-20201107/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_f2bb7.dir/CheckIncludeFile.c.obj
/C/msys64/mingw64/bin/gcc.exe -o CMakeFiles/cmTC_f2bb7.dir/CheckIncludeFile.c.obj -c /D/fontforge-20201107/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
D:/fontforge-20201107/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: execinfo.h: No such file or directory
1 | #include <execinfo.h>
| ^~~~~~~~~~~~
compilation terminated.
make[1]: *** [CMakeFiles/cmTC_f2bb7.dir/build.make:78: CMakeFiles/cmTC_f2bb7.dir/CheckIncludeFile.c.obj] Error 1
make[1]: Leaving directory '/d/fontforge-20201107/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:127: cmTC_f2bb7/fast] Error 2
Determining if the include file langinfo.h exists failed with the following output:
Change Dir: D:/fontforge-20201107/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/msys64/usr/bin/make.exe -f Makefile cmTC_66d70/fast && /usr/bin/make -f CMakeFiles/cmTC_66d70.dir/build.make CMakeFiles/cmTC_66d70.dir/build
make[1]: Entering directory '/d/fontforge-20201107/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_66d70.dir/CheckIncludeFile.c.obj
/C/msys64/mingw64/bin/gcc.exe -o CMakeFiles/cmTC_66d70.dir/CheckIncludeFile.c.obj -c /D/fontforge-20201107/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
D:/fontforge-20201107/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: langinfo.h: No such file or directory
1 | #include <langinfo.h>
| ^~~~~~~~~~~~
compilation terminated.
make[1]: *** [CMakeFiles/cmTC_66d70.dir/build.make:78: CMakeFiles/cmTC_66d70.dir/CheckIncludeFile.c.obj] Error 1
make[1]: Leaving directory '/d/fontforge-20201107/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:127: cmTC_66d70/fast] Error 2
Determining if the nl_langinfo exist failed with the following output:
Change Dir: D:/fontforge-20201107/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/msys64/usr/bin/make.exe -f Makefile cmTC_c5f18/fast && /usr/bin/make -f CMakeFiles/cmTC_c5f18.dir/build.make CMakeFiles/cmTC_c5f18.dir/build
make[1]: Entering directory '/d/fontforge-20201107/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_c5f18.dir/CheckSymbolExists.c.obj
/C/msys64/mingw64/bin/gcc.exe -o CMakeFiles/cmTC_c5f18.dir/CheckSymbolExists.c.obj -c /D/fontforge-20201107/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
D:/fontforge-20201107/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:2:10: fatal error: langinfo.h: No such file or directory
2 | #include <langinfo.h>
| ^~~~~~~~~~~~
compilation terminated.
make[1]: *** [CMakeFiles/cmTC_c5f18.dir/build.make:78: CMakeFiles/cmTC_c5f18.dir/CheckSymbolExists.c.obj] Error 1
make[1]: Leaving directory '/d/fontforge-20201107/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:127: cmTC_c5f18/fast] Error 2
File D:/fontforge-20201107/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <langinfo.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef nl_langinfo
return ((int*)(&nl_langinfo))[argc];
#else
(void)argc;
return 0;
#endif
}
您好,我是有问必答小助手,您的问题已经有小伙伴解答了,您看下是否解决,可以追评进行沟通哦~
如果有您比较满意的答案 / 帮您提供解决思路的答案,可以点击【采纳】按钮,给回答的小伙伴一些鼓励哦~~
ps:问答VIP仅需29元,即可享受5次/月 有问必答服务,了解详情>>>https://vip.csdn.net/askvip?utm_source=1146287632
也许对你有帮助:https://blog.csdn.net/it_xiangqiang/category_10581430.html
非常感谢您使用有问必答服务,为了后续更快速的帮您解决问题,现诚邀您参与有问必答体验反馈。您的建议将会运用到我们的产品优化中,希望能得到您的支持与协助!
速戳参与调研>>>https://t.csdnimg.cn/Kf0y
#include <execinfo.h>找不到头文件
改
#include "execinfo.h"