问题:fatal error: xlocale.h: No such file or directory
#include <xlocale.h> // because, on some systems, <locale.h> doesn’t include <xlocale.h>; this makes sure that we get both
原因:新版本ubuntu已不在支持xlocal
解决方法:
方法一:
在cmake里面添加
add_definitions(-DXLOCALE_NOT_USED)
方法二:
建立软连接
sudo ln -s /usr/include/locale.h /usr/include/xlocale.h