尝试加载live555库但在执行ndk-build时出现以下错误
Compile++ thumb : live555 <= Locale.cpp
In file included from jni/live555/Locale.cpp:22:0:
/Volumes/Projects/Ayaz_Projects/streamer/./jni/live555/include/Locale.hh:47:123: fatal error: xlocale.h: No such file or directory
compilation terminated.
make: *** [obj/local/armeabi/objs/live555/Locale.o] Error 1
xlocale.h在live555代码中没有任何地方
我该怎么办?
答案 0 :(得分:1)
包含文件包含以下内容:
#ifndef LOCALE_NOT_USED
#include <locale.h>
#ifndef XLOCALE_NOT_USED
#include <xlocale.h> // because, on some systems, <locale.h> doesn't include <xlocale.h>; this makes sure that we get both
#endif
#endif
因此,您应该可以将-DXLOCALE_NOT_USED
添加到Android.mk
以避免这种情况发生。
答案 1 :(得分:0)
我在这里看到了xlocale.h not found
(与android开发无关)。我的解决方案是https://serverfault.com/a/791822/394721