En 0755-86038900
技术中心

RK3288开发板关于Ubuntu16编译5.1系统问题操作方法

发布时间:2018-07-20

      友坚科技RK3288开发板 安卓一体板,是一个高性能平台,它拥有强大的多线程运算能力、图形处理能力以及硬件解码能力,支持Android5.1.1系统。RK3288 采用Cortex-A17架构、最高主频为1.8G,集成Mali-T764 GPU 的芯片具备4Kx2K分辨率的 H.265硬解能力。


TB2cSXiXEtWMKJjy0FaXXcCDpXa_!!1130715012.jpg


编译错误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.修改

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 choices:

   1) You can add "@hide" javadoc comments to the methods, etc. listed

in the

      errors above.

   2) You can update current.xml by executing the following commands:

         p4 edit frameworks/base/api/current.xml

         make update-api

      To check in the revised current.xml, you will need OWNERS

approval.

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

 

需要先执行 make update-api,在make

      RK3288开发板支持 eDP /MIPI/LVDS显示接口输出。丰富的接口,让产品变得更加通用,被广泛的应用到智能机器人、视频广告机和画框广告机、一体机、安防、工控、医疗等领域。由于其硬件平台化、Android 智能化的特点,在需要进行人机交互,网络设备交互时,都可以智能终端平台来进行使用。