En 0755-86038900
技术中心

RK3288开发板关于Ubuntu16编译5.1系统问题

发布时间:2018-08-08

友坚科技最新研发的RK3288开发板,搭建了最新android5.1 系统,2G 内存,16G EMMC 存诸,搭配13寸高清IPS屏,让你有不一样的视觉体验!



编译错误log:

............

libnativehelper/toStringArray.cpp:21: error: unsupported reloc 43

libnativehelper/toStringArray.cpp:21: error: unsupported reloc 43

libnativehelper/JniInvocation.cpp:40: error: unsupported reloc 43

libnativehelper/JniInvocation.cpp:45: error: unsupported reloc 43

libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43

libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43

libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43

libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43

clang: error: linker command failed with exit code 1 (use -v to see invocation)

host C++: libc++ <= external/libcxx/src/algorithm.cpp

host C++: libc++ <= external/libcxx/src/bind.cpp

build/core/host_shared_library_internal.mk:44: recipe for target 'out/host/linux-x86/obj32/lib/libnativehelper.so' failed

make: *** [out/host/linux-x86/obj32/lib/libnativehelper.so] Error 1

make: *** 正在等待未完成的任务....


1-1PPQFG3396.png


解决:

1.修改

cd  <source_android>/art/build/

vim Android.common_build.mk    //修改第119行

修改前:

# Host.

ART_HOST_CLANG := false

ifneq ($(WITHOUT_HOST_CLANG),true)

# By default, host builds use clang for better warnings.

ART_HOST_CLANG := true

endif

修改后:

# Host.

ART_HOST_CLANG := false

ifneq ($(WITHOUT_HOST_CLANG),false)

# By default, host builds use clang for better warnings.

ART_HOST_CLANG := true

endif

 

2.修改

经过第一次修改之后发现编译还是报同样的错误,执行下面:

cp /usr/bin/ld.gold   <source_android>/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/bin/ld 

 

3.修改过上述代码后,最好执行一次make update-api,在make

 

 

******************************

You have tried to change the API from what has been previously approved.

To make these errors go away, you have two



RK3288 开发板为消费类电子、智能终端、MID、无线通讯、医疗设备、工业控制等行业 产品的应用开发而设计,超强的视频处理能力,超高清视频输出优势,尤其适合广告机客户 使用!供广大企业用户进行产品前期软硬件性能评估验证、设计参考用;也是高校、培训机 构、嵌入式爱好者学习研究的最佳工具。其丰富的接口、精湛的设计,主要供广大企业用户 进行产品前期软硬件性能评估验证、设计参考用;也是高校、培训机构、嵌入式爱好者学习 研究首选最佳工具