-1

尝试加载 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 代码中

我应该怎么办?

4

2 回答 2

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以避免这种情况。

于 2013-03-07T12:23:37.143 回答
0

我来到这里寻找xlocale.h not found(与android开发无关)。我的解决方案是https://serverfault.com/a/791822/394721

于 2017-01-12T07:44:10.023 回答