如果你比较懒不想遇见各种问题可以看这个https://blog.csdn.net/qq_33259323/article/details/107351364
如果你想自己编译看这个https://blog.csdn.net/qq_33259323/article/details/107351369
1.安装各种包
sudo apt-get -y install openjdk-8-jdk git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev
libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils
xsltproc unzip lib32z1-dev qemu g++-multilib gcc-multilib python3-paramiko python-paramiko python-jenkins
python-requests python-xlwt libglib2.0-dev libpixman-1-dev linux-libc-dev:i386
sudo apt-get -y install gcc-5-aarch64-linux-gnu g++-5-aarch64-linux-gnu
2.下载方舟编译后的编译器本体
链接: https://pan.baidu.com/s/1rw7lp1i5qSOMUIUIFTnT9Q 提取码: punp 永久有效
3.解压下载好的压缩包
4.进入openarkcompiler文件夹
cd openarkcompiler
source build/envsetup.sh
5.进入openarkcompiler/samples/helloworld文件夹
cd samples/helloworld
6. 编译
make
7.运行
java helloword
如果遇到文件权限问题请根据报错自己改