ubuntu16.04 LTS 编译 AndroidL 报错 recipe commences before first targe

来源:互联网 发布:5g以下游戏 知乎 编辑:程序博客网 时间:2024/06/04 17:46

报错如下:

Android.mk    recipe commences before first targe


GNU make的问题


去以下网址下载 3.8.1  ,

http://ftp.gnu.org/gnu/make/


解压, 进入3。8。1目录,   执行  configure  ;  sudo make install 之后即可



make -version 检查make版本号


//根据搜索的结果,gnu make 3.8.1是为android编译修改过或者是优化过的, 所以新版本的ubuntu上用的是更高版本的gnu make  , 所以导致在编译时出问题。




2-------------------------------------------   reloc  42  43问题


prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: out/host/linux-x86/obj32/STATIC_LIBRARIES/libc++_intermediates/libc++.a(ios.o): unsupported reloc 43 against global symbol vtable for std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >


根据如下信息改 ld 即可

https://bbs.archlinux.org/viewtopic.php?pid=1610715#p1610715

ln-sf /usr/bin/ld.gold

android/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/bin/x86_64-linux-ld


0 0