20230115下载并编译RK3568开发板的OpenHarmony-3.1-Beta的步骤

20230115下载并编译RK3568开发板的OpenHarmony-3.1-Beta的步骤
2023/1/15 20:48


本文在Ubuntu20.04的64位下操作/执行。

libncurses5和openjdk-8-jdk这连个软件不安装,肯定会出错的!^_
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ sudo apt-get install libncurses5
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ sudo apt-get install openjdk-8-jdk

python2会在RK358的Android12的编译链中安装!

任正非应该细致一点的。
应该找一台全新的电脑安装之后,然后看需要哪些编译链。

【可选】安装的软件:
openssh-server
nettools
samba
guvcview
vlc


Xshell 7 (Build 0108)
Copyright (c) 2020 NetSarang Computer, Inc. All rights reserved.

Type `help' to learn how to use Xshell prompt.
[C:\~]$ 

Connecting to 192.168.186.226:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

Welcome to Ubuntu 20.04.5 LTS (GNU/Linux 5.15.0-46-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

159 updates can be applied immediately.
126 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable

Your Hardware Enablement Stack (HWE) is supported until April 2025.
Last login: Sun Jan 15 15:59:36 2023 from 192.168.186.225
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ cat /etc/issue
Ubuntu 20.04.5 LTS \n \l

rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ uname -a
Linux rootroot-HP-ZHAN-66-Pro-A-14-G3 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ 


(一)编译环境
https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/quick-start/quickstart-pkg-install-package.md
安装库和工具集
使用命令行进行设备开发时,可以通过以下步骤安装编译OpenHarmony需要的库和工具。

相应操作在Ubuntu环境中进行。

使用如下apt-get命令安装后续操作所需的库和工具:

sudo apt-get update && sudo apt-get install binutils binutils-dev git git-lfs gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib gcc-arm-linux-gnueabi libc6-dev-i386 libc6-dev-amd64 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip m4 bc gnutls-bin python3.8 python3-pip ruby genext2fs device-tree-compiler make libffi-dev e2fsprogs pkg-config perl openssl libssl-dev libelf-dev libdwarf-dev u-boot-tools mtd-utils cpio doxygen liblz4-tool openjdk-8-jre gcc g++ texinfo dosfstools mtools default-jre default-jdk libncurses5 apt-utils wget scons python3.8-distutils tar rsync git-core libxml2-dev lib32z-dev grsync xxd libglib2.0-dev libpixman-1-dev kmod jfsutils reiserfsprogs xfsprogs squashfs-tools pcmciautils quota ppp libtinfo-dev libtinfo5 libncurses5-dev libncursesw5 libstdc++6 gcc-arm-none-eabi vim ssh locales libxinerama-dev libxcursor-dev libxrandr-dev libxi-dev

sudo apt-get install binutils               

sudo apt-get install git
sudo apt-get install git-lfs
sudo apt-get install gnupg
sudo apt-get install flex
sudo apt-get install bison
sudo apt-get install gperf
sudo apt-get install build-essential
sudo apt-get install zip
sudo apt-get install curl
sudo apt-get install zlib1g-dev
sudo apt-get install gcc-multilib
sudo apt-get install g++-multilib
sudo apt-get install libc6-dev-i386
sudo apt-get install lib32ncurses5-dev
sudo apt-get install x11proto-core-dev


sudo apt-get install libx11-dev
sudo apt-get install lib32z1-dev
sudo apt-get install ccache
sudo apt-get install libgl1-mesa-dev
sudo apt-get install libxml2-utils

sudo apt-get install xsltproc
sudo apt-get install unzip
sudo apt-get install m4
sudo apt-get install bc
sudo apt-get install gnutls-bin

sudo apt-get install python3.8
sudo apt-get install python3-pip
sudo apt-get install ruby


由于服务器还需要编译RK3568的Buildroot和Android12,因此它们的编译环境也需要安装!
https://wiki.t-firefly.com/zh_CN/Core-3588J/linux_compile_buildroot.html
Core-3588J
5. 编译 Buildroot 固件
本章介绍 Buildroot 固件的编译流程,推荐在 Ubuntu 18.04 系统环境下进行开发,若使用其它系统版本,可能需要对编译环境做相应调整。

5.1. 准备工作
5.1.1. 搭建编译环境
sudo apt-get install repo git ssh make gcc libssl-dev liblz4-tool \
expect g++ patchelf chrpath gawk texinfo chrpath diffstat binfmt-support \
qemu-user-static live-build bison flex fakeroot cmake gcc-multilib g++-multilib
unzip \
device-tree-compiler ncurses-dev \

sudo apt-get install repo
sudo apt-get install git
sudo apt-get install ssh
sudo apt-get install make
sudo apt-get install gcc
sudo apt-get install libssl-dev
sudo apt-get install liblz4-tool

sudo apt-get install expect
sudo apt-get install g++
sudo apt-get install patchelf
sudo apt-get install chrpath
sudo apt-get install gawk
sudo apt-get install texinfo
sudo apt-get install chrpath
sudo apt-get install diffstat
sudo apt-get install binfmt-support

sudo apt-get install qemu-user-static
sudo apt-get install live-build
sudo apt-get install bison
sudo apt-get install flex
sudo apt-get install fakeroot
sudo apt-get install cmake
sudo apt-get install gcc-multilib
sudo apt-get install g++-multilib

sudo apt-get install unzip

sudo apt-get install device-tree-compiler
sudo apt-get install ncurses-dev


https://wiki.t-firefly.com/zh_CN/Core-3588J/android_prepare_compile_android.html#zhun-bei-gong-zuo
2. 编译环境搭建
2.1. 准备工作
编译 Android 对机器的配置要求较高:

sudo apt-get update

sudo apt-get install git gnupg flex bison gperf libsdl1.2-dev \
libesd-java libwxgtk3.0-dev squashfs-tools build-essential zip curl \
libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils \
xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev \
lib32readline-dev gcc-multilib libswitch-perl libssl-dev unzip zip device-tree-compiler \
liblz4-tool python-pyelftools python3-pyelftools -y 

sudo apt-get install git
sudo apt-get install gnupg
sudo apt-get install flex
sudo apt-get install bison
sudo apt-get install gperf
sudo apt-get install libsdl1.2-dev

sudo apt-get install libesd-java
sudo apt-get install libwxgtk3.0-dev
sudo apt-get install squashfs-tools
sudo apt-get install build-essential
sudo apt-get install zip
sudo apt-get install curl

sudo apt-get install libncurses5-dev
sudo apt-get install zlib1g-dev
sudo apt-get install pngcrush
sudo apt-get install schedtool
sudo apt-get install libxml2
sudo apt-get install libxml2-utils

sudo apt-get install xsltproc
sudo apt-get install lzop
sudo apt-get install libc6-dev
sudo apt-get install schedtool
sudo apt-get install g++-multilib
sudo apt-get install lib32z1-dev
sudo apt-get install lib32ncurses5-dev

sudo apt-get install lib32readline-dev
sudo apt-get install gcc-multilib
sudo apt-get install libswitch-perl
sudo apt-get install libssl-dev
sudo apt-get install unzip
sudo apt-get install zip
sudo apt-get install device-tree-compiler

sudo apt-get install liblz4-tool
sudo apt-get install python-pyelftools
sudo apt-get install python3-pyelftools


(二)下载OpenHarmony-v3.1-beta这个SDK:
https://gitee.com/openharmony/docs/blob/master/zh-cn/release-notes/OpenHarmony-v3.1-beta.md
OpenHarmony 3.1 Beta


安装git客户端和git-lfs并配置用户信息。

git config --global user.name "yourname"
git config --global user.email "your-email-address"
git config --global credential.helper store
安装码云repo工具,可以执行如下命令。

curl -s https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > /usr/local/bin/repo  #如果没有权限,可下载至其他目录,并将其配置到环境变量中
chmod a+x /usr/local/bin/repo
pip3 install -i https://repo.huaweicloud.com/repository/pypi/simple requests

方式二

通过repo + https 下载。

repo init -u https://gitee.com/openharmony/manifest.git -b refs/tags/OpenHarmony-v3.1-Beta --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull'


rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ mkdir RK3399_OpenHarmony-v3.1-Beta
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ cd RK3399_OpenHarmony-v3.1-Beta/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ ll
total 8
drwxrwxr-x  2 rootroot rootroot 4096 1月  14 19:52 ./
drwxr-xr-x 17 rootroot rootroot 4096 1月  14 19:52 ../
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ curl -s https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > repo
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ ll
total 44
drwxrwxr-x  2 rootroot rootroot  4096 1月  14 19:54 ./
drwxr-xr-x 17 rootroot rootroot  4096 1月  14 19:52 ../
-rw-rw-r--  1 rootroot rootroot 36173 1月  14 19:54 repo
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ chmod 777 repo 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ ll
total 44
drwxrwxr-x  2 rootroot rootroot  4096 1月  14 19:54 ./
drwxr-xr-x 17 rootroot rootroot  4096 1月  14 19:52 ../
-rwxrwxrwx  1 rootroot rootroot 36173 1月  14 19:54 repo*
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ ./repo init -u https://gitee.com/openharmony/manifest.git -b refs/tags/OpenHarmony-v3.1-Beta --no-repo-verify
Downloading Repo source from https://gitee.com/oschina/repo.git

rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ du -sh 
13G    .
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ ./repo forall -c 'git lfs pull'
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$                                                                                                                                                                                                      
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ du -sh
14G    .
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ ll


(三)编译步骤:

20230115下载并编译RK3568开发板的OpenHarmony-3.1-Beta的步骤
2023/1/15 20:48


本文在Ubuntu20.04的64位下操作/执行。

libncurses5和openjdk-8-jdk这连个软件不安装,肯定会出错的!^_
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ sudo apt-get install libncurses5
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ sudo apt-get install openjdk-8-jdk

python2会在RK358的Android12的编译链中安装!

任正非应该细致一点的。
应该找一台全新的电脑安装之后,然后看需要哪些编译链。

【可选】安装的软件:
openssh-server
nettools
samba
guvcview
vlc


Xshell 7 (Build 0108)
Copyright (c) 2020 NetSarang Computer, Inc. All rights reserved.

Type `help' to learn how to use Xshell prompt.
[C:\~]$ 

Connecting to 192.168.186.226:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

Welcome to Ubuntu 20.04.5 LTS (GNU/Linux 5.15.0-46-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

159 updates can be applied immediately.
126 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable

Your Hardware Enablement Stack (HWE) is supported until April 2025.
Last login: Sun Jan 15 15:59:36 2023 from 192.168.186.225
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ cat /etc/issue
Ubuntu 20.04.5 LTS \n \l

rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ uname -a
Linux rootroot-HP-ZHAN-66-Pro-A-14-G3 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ 


(一)编译环境
https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/quick-start/quickstart-pkg-install-package.md
安装库和工具集
使用命令行进行设备开发时,可以通过以下步骤安装编译OpenHarmony需要的库和工具。

相应操作在Ubuntu环境中进行。

使用如下apt-get命令安装后续操作所需的库和工具:

sudo apt-get update && sudo apt-get install binutils binutils-dev git git-lfs gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib gcc-arm-linux-gnueabi libc6-dev-i386 libc6-dev-amd64 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip m4 bc gnutls-bin python3.8 python3-pip ruby genext2fs device-tree-compiler make libffi-dev e2fsprogs pkg-config perl openssl libssl-dev libelf-dev libdwarf-dev u-boot-tools mtd-utils cpio doxygen liblz4-tool openjdk-8-jre gcc g++ texinfo dosfstools mtools default-jre default-jdk libncurses5 apt-utils wget scons python3.8-distutils tar rsync git-core libxml2-dev lib32z-dev grsync xxd libglib2.0-dev libpixman-1-dev kmod jfsutils reiserfsprogs xfsprogs squashfs-tools pcmciautils quota ppp libtinfo-dev libtinfo5 libncurses5-dev libncursesw5 libstdc++6 gcc-arm-none-eabi vim ssh locales libxinerama-dev libxcursor-dev libxrandr-dev libxi-dev

sudo apt-get install binutils               

sudo apt-get install git
sudo apt-get install git-lfs
sudo apt-get install gnupg
sudo apt-get install flex
sudo apt-get install bison
sudo apt-get install gperf
sudo apt-get install build-essential
sudo apt-get install zip
sudo apt-get install curl
sudo apt-get install zlib1g-dev
sudo apt-get install gcc-multilib
sudo apt-get install g++-multilib
sudo apt-get install libc6-dev-i386
sudo apt-get install lib32ncurses5-dev
sudo apt-get install x11proto-core-dev


sudo apt-get install libx11-dev
sudo apt-get install lib32z1-dev
sudo apt-get install ccache
sudo apt-get install libgl1-mesa-dev
sudo apt-get install libxml2-utils

sudo apt-get install xsltproc
sudo apt-get install unzip
sudo apt-get install m4
sudo apt-get install bc
sudo apt-get install gnutls-bin

sudo apt-get install python3.8
sudo apt-get install python3-pip
sudo apt-get install ruby


由于服务器还需要编译RK3568的Buildroot和Android12,因此它们的编译环境也需要安装!
https://wiki.t-firefly.com/zh_CN/Core-3588J/linux_compile_buildroot.html
Core-3588J
5. 编译 Buildroot 固件
本章介绍 Buildroot 固件的编译流程,推荐在 Ubuntu 18.04 系统环境下进行开发,若使用其它系统版本,可能需要对编译环境做相应调整。

5.1. 准备工作
5.1.1. 搭建编译环境
sudo apt-get install repo git ssh make gcc libssl-dev liblz4-tool \
expect g++ patchelf chrpath gawk texinfo chrpath diffstat binfmt-support \
qemu-user-static live-build bison flex fakeroot cmake gcc-multilib g++-multilib
unzip \
device-tree-compiler ncurses-dev \

sudo apt-get install repo
sudo apt-get install git
sudo apt-get install ssh
sudo apt-get install make
sudo apt-get install gcc
sudo apt-get install libssl-dev
sudo apt-get install liblz4-tool

sudo apt-get install expect
sudo apt-get install g++
sudo apt-get install patchelf
sudo apt-get install chrpath
sudo apt-get install gawk
sudo apt-get install texinfo
sudo apt-get install chrpath
sudo apt-get install diffstat
sudo apt-get install binfmt-support

sudo apt-get install qemu-user-static
sudo apt-get install live-build
sudo apt-get install bison
sudo apt-get install flex
sudo apt-get install fakeroot
sudo apt-get install cmake
sudo apt-get install gcc-multilib
sudo apt-get install g++-multilib

sudo apt-get install unzip

sudo apt-get install device-tree-compiler
sudo apt-get install ncurses-dev


https://wiki.t-firefly.com/zh_CN/Core-3588J/android_prepare_compile_android.html#zhun-bei-gong-zuo
2. 编译环境搭建
2.1. 准备工作
编译 Android 对机器的配置要求较高:

sudo apt-get update

sudo apt-get install git gnupg flex bison gperf libsdl1.2-dev \
libesd-java libwxgtk3.0-dev squashfs-tools build-essential zip curl \
libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils \
xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev \
lib32readline-dev gcc-multilib libswitch-perl libssl-dev unzip zip device-tree-compiler \
liblz4-tool python-pyelftools python3-pyelftools -y 

sudo apt-get install git
sudo apt-get install gnupg
sudo apt-get install flex
sudo apt-get install bison
sudo apt-get install gperf
sudo apt-get install libsdl1.2-dev

sudo apt-get install libesd-java
sudo apt-get install libwxgtk3.0-dev
sudo apt-get install squashfs-tools
sudo apt-get install build-essential
sudo apt-get install zip
sudo apt-get install curl

sudo apt-get install libncurses5-dev
sudo apt-get install zlib1g-dev
sudo apt-get install pngcrush
sudo apt-get install schedtool
sudo apt-get install libxml2
sudo apt-get install libxml2-utils

sudo apt-get install xsltproc
sudo apt-get install lzop
sudo apt-get install libc6-dev
sudo apt-get install schedtool
sudo apt-get install g++-multilib
sudo apt-get install lib32z1-dev
sudo apt-get install lib32ncurses5-dev

sudo apt-get install lib32readline-dev
sudo apt-get install gcc-multilib
sudo apt-get install libswitch-perl
sudo apt-get install libssl-dev
sudo apt-get install unzip
sudo apt-get install zip
sudo apt-get install device-tree-compiler

sudo apt-get install liblz4-tool
sudo apt-get install python-pyelftools
sudo apt-get install python3-pyelftools


(二)下载OpenHarmony-v3.1-beta这个SDK:
https://gitee.com/openharmony/docs/blob/master/zh-cn/release-notes/OpenHarmony-v3.1-beta.md
OpenHarmony 3.1 Beta


安装git客户端和git-lfs并配置用户信息。

git config --global user.name "yourname"
git config --global user.email "your-email-address"
git config --global credential.helper store
安装码云repo工具,可以执行如下命令。

curl -s https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > /usr/local/bin/repo  #如果没有权限,可下载至其他目录,并将其配置到环境变量中
chmod a+x /usr/local/bin/repo
pip3 install -i https://repo.huaweicloud.com/repository/pypi/simple requests

方式二

通过repo + https 下载。

repo init -u https://gitee.com/openharmony/manifest.git -b refs/tags/OpenHarmony-v3.1-Beta --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull'


rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ mkdir RK3399_OpenHarmony-v3.1-Beta
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ cd RK3399_OpenHarmony-v3.1-Beta/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ ll
total 8
drwxrwxr-x  2 rootroot rootroot 4096 1月  14 19:52 ./
drwxr-xr-x 17 rootroot rootroot 4096 1月  14 19:52 ../
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ curl -s https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > repo
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ ll
total 44
drwxrwxr-x  2 rootroot rootroot  4096 1月  14 19:54 ./
drwxr-xr-x 17 rootroot rootroot  4096 1月  14 19:52 ../
-rw-rw-r--  1 rootroot rootroot 36173 1月  14 19:54 repo
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ chmod 777 repo 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ ll
total 44
drwxrwxr-x  2 rootroot rootroot  4096 1月  14 19:54 ./
drwxr-xr-x 17 rootroot rootroot  4096 1月  14 19:52 ../
-rwxrwxrwx  1 rootroot rootroot 36173 1月  14 19:54 repo*
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ ./repo init -u https://gitee.com/openharmony/manifest.git -b refs/tags/OpenHarmony-v3.1-Beta --no-repo-verify
Downloading Repo source from https://gitee.com/oschina/repo.git

rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ du -sh 
13G    .
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ ./repo forall -c 'git lfs pull'
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$                                                                                                                                                                                                      
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ du -sh
14G    .
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ ll


(三)编译步骤:

rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ sudo apt-get install npm

/home/rootroot/RK3399_OpenHarmony-v3.1-Beta

rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 

[278/29496] AR obj/third_party/musl/usr/lib/arm-linux-ohosmusl/libxnet.a
[279/29496] AR obj/third_party/musl/usr/lib/arm-linux-ohosmusl/librt.a
[280/29496] STAMP obj/ark/runtime_core/libpandafile/isa_gen_libarkfile_file_format_version_h.stamp
[281/29496] AR obj/third_party/musl/usr/lib/arm-linux-ohosmusl/libpthread.a
[282/29496] AR obj/third_party/musl/usr/lib/arm-linux-ohosmusl/libutil.a
[283/29496] STAMP mingw_x86_64/obj/build/config/source_set_deps.stamp
[284/29496] STAMP mingw_x86_64/obj/build/config/common_deps.stamp
[285/29496] STAMP mingw_x86_64/obj/build/config/static_library_deps.stamp
[286/29496] STAMP mingw_x86_64/obj/build/config/executable_deps.stamp
[287/29496] STAMP mingw_x86_64/obj/build/config/shared_library_deps.stamp
[288/29496] STAMP clang_x64/obj/build/config/common_deps.stamp
[289/29496] STAMP clang_x64/obj/build/config/source_set_deps.stamp
[290/29496] STAMP clang_x64/obj/build/config/executable_deps.stamp
[291/29496] STAMP clang_x64/obj/build/config/shared_library_deps.stamp
[292/29496] STAMP clang_x64/obj/build/config/static_library_deps.stamp
[293/29496] CC mingw_x86_64/obj/third_party/cJSON/third_party_cjson/cJSON.o
FAILED: mingw_x86_64/obj/third_party/cJSON/third_party_cjson/cJSON.o 
/usr/bin/ccache ../../prebuilts/mingw-w64/ohos/linux-x86_64/clang-mingw/bin/clang -MMD -MF mingw_x86_64/obj/third_party/cJSON/third_party_cjson/cJSON.o.d -DV8_DEPRECATION_WARNINGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DCOMPONENT_BUILD -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -Imingw_x86_64/gen -I../../third_party/cJSON -fno-strict-aliasing --param=ssp-buffer-size=4 -fno-stack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -target x86_64-pc-windows-gnu -rtlib=compiler-rt -stdlib=libc++ -lunwind -lpthread -Qunused-arguments -fuse-ld=lld -D__CUSTOM_SECURITY_LIBRARY -Wall -Werror -Wextra -Wimplicit-fallthrough -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-error=c99-designator -Wno-error=anon-enum-enum-conversion -Wno-error=implicit-fallthrough -Wno-error=sizeof-array-div -Wno-error=reorder-init-list -Wno-error=range-loop-construct -Wno-error=deprecated-copy -Wno-error=implicit-int-float-conversion -Wno-error=inconsistent-dllimport -Wno-error=unknown-warning-option -Wno-error=abstract-final-class -Wno-error=sign-compare -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-error=c99-designator -Wno-error=anon-enum-enum-conversion -Wno-error=implicit-fallthrough -Wno-error=sizeof-array-div -Wno-error=reorder-init-list -Wno-error=range-loop-construct -Wno-error=deprecated-copy -Wno-error=implicit-int-float-conversion -Wno-error=inconsistent-dllimport -Wno-error=unknown-warning-option -Wno-error=abstract-final-class -Wno-error=sign-compare -Wno-error=int-in-bool-context -Wno-error=xor-used-as-pow -Wno-error=return-stack-address -Wno-error=dangling-gsl -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -O2 -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -g2 -fno-common -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare  -c ../../third_party/cJSON/cJSON.c -o mingw_x86_64/obj/third_party/cJSON/third_party_cjson/cJSON.o
../../prebuilts/mingw-w64/ohos/linux-x86_64/clang-mingw/bin/clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
[294/29496] ACTION //ark/runtime_core/runtime:arkruntime_gen_intrinsics_intrinsics_gen_h(//build/toolchain/ohos:ohos_clang_arm)
[295/29496] ACTION //ark/runtime_core/libpandafile:isa_gen_libarkfile_bytecode_instruction_enum_gen_h(//build/toolchain/ohos:ohos_clang_arm)
[296/29496] ACTION //ark/runtime_core/libpandafile:isa_gen_libarkfile_bytecode_emitter_def_gen_h(//build/toolchain/ohos:ohos_clang_arm)
[297/29496] ACTION //ark/runtime_core/libpandafile:isa_gen_libarkfile_tests_bytecode_emitter_tests_gen_h(//build/toolchain/ohos:ohos_clang_arm)
[298/29496] ACTION //ark/runtime_core/libpandafile:isa_gen_libarkfile_bytecode_emitter_gen_h(//build/toolchain/ohos:ohos_clang_arm)
[299/29496] ACTION //ark/runtime_core/libpandafile:isa_gen_libarkfile_bytecode_instruction-inl_gen_h(//build/toolchain/ohos:ohos_clang_arm)
ninja: build stopped: subcommand failed.
build: ninja error
used: 109 seconds
pycache statistics
manage pycache contents
pycache daemon exit
ccache statistics
---------------------------------------------
ccache summary:
cache hit (direct)  : 0
cache hit (preprocessed)  : 0
cache miss  : 0
hit rate:  0.00% 
mis rate: 0.00% 
---------------------------------------------
post_process
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ whereis libtinfo.so.5
libtinfo.so: /usr/lib/x86_64-linux-gnu/libtinfo.so.6 /usr/lib/x86_64-linux-gnu/libtinfo.so
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ ll libtinfo.so.5
ls: cannot access 'libtinfo.so.5': No such file or directory
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ ll /usr/lib/x86_64-linux-gnu/libtinfo.so.6 /usr/lib/x86_64-linux-gnu/libtinfo.so
lrwxrwxrwx 1 root root 35 2月  26  2020 /usr/lib/x86_64-linux-gnu/libtinfo.so -> /lib/x86_64-linux-gnu/libtinfo.so.6
lrwxrwxrwx 1 root root 15 1月  14 19:40 /usr/lib/x86_64-linux-gnu/libtinfo.so.6 -> libtinfo.so.6.2
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ ll /lib/x86_64-linux-gnu/libtinfo.so.6
lrwxrwxrwx 1 root root 15 1月  14 19:40 /lib/x86_64-linux-gnu/libtinfo.so.6 -> libtinfo.so.6.2
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ ll libtinfo.so.6.2
ls: cannot access 'libtinfo.so.6.2': No such file or directory
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ whereis libtinfo.so.5
libtinfo.so: /usr/lib/x86_64-linux-gnu/libtinfo.so.6 /usr/lib/x86_64-linux-gnu/libtinfo.so
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ ls /lib/x86_64-linux-gnu/libtinfo.so.*
/lib/x86_64-linux-gnu/libtinfo.so.6  /lib/x86_64-linux-gnu/libtinfo.so.6.2
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 

20230115下载并编译RK3568开发板的OpenHarmony-3.1-Beta的步骤_第1张图片


rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ sudo apt-get install libncurses5
[sudo] password for rootroot: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libtinfo5
The following NEW packages will be installed:
  libncurses5 libtinfo5
0 upgraded, 2 newly installed, 0 to remove and 159 not upgraded.
Need to get 180 kB of archives.
After this operation, 864 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://cn.archive.ubuntu.com/ubuntu focal/universe amd64 libtinfo5 amd64 6.2-0ubuntu2 [83.0 kB]
Get:2 http://cn.archive.ubuntu.com/ubuntu focal/universe amd64 libncurses5 amd64 6.2-0ubuntu2 [96.9 kB]
Fetched 180 kB in 4s (50.5 kB/s)       
Selecting previously unselected package libtinfo5:amd64.
(Reading database ... 175788 files and directories currently installed.)
Preparing to unpack .../libtinfo5_6.2-0ubuntu2_amd64.deb ...
Unpacking libtinfo5:amd64 (6.2-0ubuntu2) ...
Selecting previously unselected package libncurses5:amd64.
Preparing to unpack .../libncurses5_6.2-0ubuntu2_amd64.deb ...
Unpacking libncurses5:amd64 (6.2-0ubuntu2) ...
Setting up libtinfo5:amd64 (6.2-0ubuntu2) ...
Setting up libncurses5:amd64 (6.2-0ubuntu2) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ ls /lib/x86_64-linux-gnu/libtinfo.so.*
/lib/x86_64-linux-gnu/libtinfo.so.5  /lib/x86_64-linux-gnu/libtinfo.so.5.9  /lib/x86_64-linux-gnu/libtinfo.so.6  /lib/x86_64-linux-gnu/libtinfo.so.6.2
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ ll /lib/x86_64-linux-gnu/libtinfo.so.*
lrwxrwxrwx 1 root root     15 2月  26  2020 /lib/x86_64-linux-gnu/libtinfo.so.5 -> libtinfo.so.5.9
-rw-r--r-- 1 root root 183824 2月  26  2020 /lib/x86_64-linux-gnu/libtinfo.so.5.9
lrwxrwxrwx 1 root root     15 1月  14 19:40 /lib/x86_64-linux-gnu/libtinfo.so.6 -> libtinfo.so.6.2
-rw-r--r-- 1 root root 192032 2月  26  2020 /lib/x86_64-linux-gnu/libtinfo.so.6.2
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ ./build.sh --product-name rk3568 --ccache


[24099/29198] STAMP obj/foundation/multimodalinput/input/multimodalinput_mmi_packages.stamp
[24100/29198] ACTION //out/rk3568/build_configs/graphic/graphic_standard:graphic_standard(//build/toolchain/ohos:ohos_clang_arm)
[24101/29198] STAMP obj/out/rk3568/build_configs/multimodalinput/multimodalinput_base/multimodalinput_base_info.stamp
[24102/29198] STAMP obj/out/rk3568/build_configs/graphic/graphic_standard/graphic_standard.stamp
[24103/29198] ACTION //foundation/ace/ace_engine/frameworks/bridge/js_frontend:js_frontend_windows__notice(//build/toolchain/mingw:mingw_x86_64)
[24104/29198] ACTION //foundation/ace/ace_engine/frameworks/bridge/declarative_frontend:gen_obj_js_enum_style(//build/toolchain/mingw:mingw_x86_64)
[24105/29198] ACTION //out/rk3568/build_configs/multimodalinput/multimodalinput_base:multimodalinput_base(//build/toolchain/ohos:ohos_clang_arm)
[24106/29198] STAMP obj/out/rk3568/build_configs/multimodalinput/multimodalinput_base/multimodalinput_base.stamp
[24107/29198] ACTION //foundation/ace/ace_engine/frameworks/bridge/declarative_frontend:gen_obj_js_proxyclass(//build/toolchain/mingw:mingw_x86_64)
[24108/29198] STAMP mingw_x86_64/obj/foundation/ace/ace_engine/frameworks/bridge/declarative_frontend/gen_obj_js_proxyclass.stamp
[24109/29198] ACTION //utils/resources/systemres:systemres_hap(//build/toolchain/ohos:ohos_clang_arm)
FAILED: obj/utils/resources/systemres/SystemResources.hap 
/usr/bin/env ../../build/scripts/hapbuilder.py --depfile gen/utils/resources/systemres/systemres_hap.d --hap-profile ../../utils/resources/systemres/main/config.json --hapsigner ../../prebuilts/signcenter/hapsigntool/hapsigntoolv2.jar --hap-packing-tool ../../developtools/packing_tool/jar/hmos_app_packing_tool.jar --hap-path obj/utils/resources/systemres/SystemResources.hap --packaged-resources obj/utils/resources/systemres/systemres_hap/resources.zip --packaged-js-assets obj/utils/resources/systemres/systemres_hap/js_assets.zip --assets=@FileArg\(gen/utils/resources/systemres/systemres_hap.metadata:root:assets\) --private-key-path OpenHarmony\ Application\ Release --sign-algo SHA256withECDSA --certificate-profile ../../utils/resources/systemres/SystemResources.p7b --keyalias 123456 --keystore-path ../../prebuilts/signcenter/key/OpenHarmony.p12 --keystorepasswd 123456 --certificate-file ../../prebuilts/signcenter/certificates/OpenHarmonyApplication.pem --nodejs-path ../../prebuilts/build-tools/common/nodejs/node-v12.18.4-linux-x64/bin/node --js2abc-js clang_x64/obj/ark/ts2abc/ts2panda/ts2abc.js --js2abc
Traceback (most recent call last):
  File "../../build/scripts/hapbuilder.py", line 200, in
    sys.exit(main(sys.argv[1:]))
  File "../../build/scripts/hapbuilder.py", line 185, in main
    build_utils.call_and_write_depfile_if_stale(
  File "/home/rootroot/RK3399_OpenHarmony-v3.1-Beta/build/scripts/util/build_utils.py", line 709, in call_and_write_depfile_if_stale
    md5_check.call_and_record_if_stale(on_stale_md5,
  File "/home/rootroot/RK3399_OpenHarmony-v3.1-Beta/build/scripts/util/md5_check.py", line 121, in call_and_record_if_stale
    function(*args)
  File "/home/rootroot/RK3399_OpenHarmony-v3.1-Beta/build/scripts/util/build_utils.py", line 699, in on_stale_md5
    function(*args)
  File "../../build/scripts/hapbuilder.py", line 186, in
    lambda: create_hap(options, options.hap_path),
  File "../../build/scripts/hapbuilder.py", line 124, in create_hap
    build_utils.check_output(packing_cmd)
  File "/home/rootroot/RK3399_OpenHarmony-v3.1-Beta/build/scripts/util/build_utils.py", line 226, in check_output
    child = subprocess.Popen(args,
  File "/home/rootroot/RK3399_OpenHarmony-v3.1-Beta/prebuilts/python/linux-x86/3.8.5/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/home/rootroot/RK3399_OpenHarmony-v3.1-Beta/prebuilts/python/linux-x86/3.8.5/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'java'
[24110/29198] ACTION //foundation/ace/ace_engine/frameworks/bridge/declarative_frontend:declarative_js_engine_qjs_windows__notice(//build/toolchain/mingw:mingw_x86_64)
[24111/29198] CC mingw_x86_64/obj/out/rk3568/mingw_x86_64/obj/foundation/ace/ace_engine/frameworks/bridge/declarative_frontend/gen_obj_src_js_proxyclass/js_proxy_class.o
[24112/29198] CXX obj/foundation/ace/ace_engine/frameworks/bridge/declarative_frontend/jsview/declarative_js_engine_ark_ohos/js_video.o
[24113/29198] CXX obj/foundation/ace/ace_engine/frameworks/bridge/declarative_frontend/jsview/declarative_js_engine_ark_ohos/js_video_controller.o
[24114/29198] CXX obj/foundation/ace/ace_engine/frameworks/bridge/declarative_frontend/jsview/declarative_js_engine_ark_ohos/js_xcomponent.o
[24115/29198] CXX obj/foundation/ace/ace_engine/frameworks/bridge/js_frontend/engine/common/declarative_js_engine_ark_ohos/js_engine.o
[24116/29198] ACTION //third_party/jsframework:ark_jsf(//build/toolchain/ohos:ohos_clang_arm)
/home/rootroot/RK3399_OpenHarmony-v3.1-Beta/prebuilts/build-tools/common/nodejs/node-v12.18.4-linux-x64/bin/node --expose-gc build/src/index.js /home/rootroot/RK3399_OpenHarmony-v3.1-Beta/out/rk3568/obj/third_party/jsframework/dist/strip.native.min.js -o /home/rootroot/RK3399_OpenHarmony-v3.1-Beta/out/rk3568/obj/third_party/jsframework/strip.native.min.abc -t 0 | execution_path: /home/rootroot/RK3399_OpenHarmony-v3.1-Beta/out/rk3568/clang_x64/obj/ark/ts2abc/ts2panda
ninja: build stopped: subcommand failed.
build: ninja error
used: 9134 seconds
pycache statistics
manage pycache contents
pycache daemon exit
ccache statistics
---------------------------------------------
ccache summary:
cache hit (direct)  : 0
cache hit (preprocessed)  : 0
cache miss  : 15248
hit rate:  0.00% 
mis rate: 100.00% 
---------------------------------------------
c targets overlap rate statistics
subsystem           files NO.    percentage    builds NO.    percentage    overlap rate
utils                    205    1.3%         245    1.6%    1.20
third_party             7173    46.9%        7261    47.0%    1.01
graphic                  170    1.1%         171    1.1%    1.01
aafwk                    210    1.4%         210    1.4%    1.00
account                   66    0.4%          66    0.4%    1.00
ace                     1566    10.2%        1566    10.1%    1.00
appexecfwk               433    2.8%         433    2.8%    1.00
ark                      430    2.8%         430    2.8%    1.00
ccruntime                 32    0.2%          32    0.2%    1.00
communication            529    3.5%         529    3.4%    1.00
developtools             206    1.3%         206    1.3%    1.00
deviceprofile             37    0.2%          37    0.2%    1.00
distributeddatamgr         348    2.3%         348    2.3%    1.00
distributedhardware          33    0.2%          33    0.2%    1.00
distributedschedule          33    0.2%          33    0.2%    1.00
global                    30    0.2%          30    0.2%    1.00
hdf                      389    2.5%         389    2.5%    1.00
hiviewdfx                203    1.3%         203    1.3%    1.00
miscservices              64    0.4%          64    0.4%    1.00
multimedia               358    2.3%         358    2.3%    1.00
multimodalinput          129    0.8%         129    0.8%    1.00
notification             132    0.9%         132    0.9%    1.00
powermgr                  75    0.5%          75    0.5%    1.00
security                 307    2.0%         307    2.0%    1.00
sensors                   43    0.3%          43    0.3%    1.00
settingsdata               2    0.0%           2    0.0%    1.00
startup                   94    0.6%          94    0.6%    1.00
telephony                365    2.4%         365    2.4%    1.00
updater                   91    0.6%          91    0.6%    1.00
wpa_supplicant-2.9           4    0.0%           4    0.0%    1.00

c overall build overlap rate: 1.01


post_process
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ python
Python 2.7.18 (default, Jul  1 2022, 12:27:04) 
[GCC 9.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ python3
Python 3.8.10 (default, Nov 14 2022, 12:59:47) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ python2
Python 2.7.18 (default, Jul  1 2022, 12:27:04) 
[GCC 9.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 

20230115下载并编译RK3568开发板的OpenHarmony-3.1-Beta的步骤_第2张图片


rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ java --version

Command 'java' not found, but can be installed with:

sudo apt install default-jre              # version 2:1.11-72, or
sudo apt install openjdk-11-jre-headless  # version 11.0.17+8-1ubuntu2~20.04
sudo apt install openjdk-13-jre-headless  # version 13.0.7+5-0ubuntu1~20.04
sudo apt install openjdk-16-jre-headless  # version 16.0.1+9-1~20.04
sudo apt install openjdk-17-jre-headless  # version 17.0.5+8-2ubuntu1~20.04
sudo apt install openjdk-8-jre-headless   # version 8u352-ga-1~20.04

rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ java -version

Command 'java' not found, but can be installed with:

sudo apt install default-jre              # version 2:1.11-72, or
sudo apt install openjdk-11-jre-headless  # version 11.0.17+8-1ubuntu2~20.04
sudo apt install openjdk-13-jre-headless  # version 13.0.7+5-0ubuntu1~20.04
sudo apt install openjdk-16-jre-headless  # version 16.0.1+9-1~20.04
sudo apt install openjdk-17-jre-headless  # version 17.0.5+8-2ubuntu1~20.04
sudo apt install openjdk-8-jre-headless   # version 8u352-ga-1~20.04

rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ sudo apt-get install openjdk-8-jdk
[sudo] password for rootroot: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  ca-certificates-java fonts-dejavu-extra java-common libatk-wrapper-java libatk-wrapper-java-jni libice-dev libsm-dev libxt-dev openjdk-8-jdk-headless openjdk-8-jre openjdk-8-jre-headless
Suggested packages:
  default-jre libice-doc libsm-doc libxt-doc openjdk-8-demo openjdk-8-source visualvm fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei fonts-wqy-zenhei
The following NEW packages will be installed:
  ca-certificates-java fonts-dejavu-extra java-common libatk-wrapper-java libatk-wrapper-java-jni libice-dev libsm-dev libxt-dev openjdk-8-jdk openjdk-8-jdk-headless openjdk-8-jre openjdk-8-jre-headless
0 upgraded, 12 newly installed, 0 to remove and 159 not upgraded.
Need to get 43.1 MB of archives.
After this operation, 158 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://cn.archive.ubuntu.com/ubuntu focal/main amd64 java-common all 0.72 [6,816 B]
Get:2 http://cn.archive.ubuntu.com/ubuntu focal-updates/universe amd64 openjdk-8-jre-headless amd64 8u352-ga-1~20.04 [28.2 MB]
Get:3 http://cn.archive.ubuntu.com/ubuntu focal/main amd64 ca-certificates-java all 20190405ubuntu1 [12.2 kB]                                                                                                                                                                
Get:4 http://cn.archive.ubuntu.com/ubuntu focal/main amd64 fonts-dejavu-extra all 2.37-1 [1,953 kB]                                                                                                                                                                          
Get:5 http://cn.archive.ubuntu.com/ubuntu focal/main amd64 libatk-wrapper-java all 0.37.1-1 [53.0 kB]                                                                                                                                                                        
Get:6 http://cn.archive.ubuntu.com/ubuntu focal/main amd64 libatk-wrapper-java-jni amd64 0.37.1-1 [45.1 kB]                                                                                                                                                                  
Get:7 http://cn.archive.ubuntu.com/ubuntu focal/main amd64 libice-dev amd64 2:1.0.10-0ubuntu1 [47.8 kB]                                                                                                                                                                      
Get:8 http://cn.archive.ubuntu.com/ubuntu focal/main amd64 libsm-dev amd64 2:1.2.3-1 [17.0 kB]                                                                                                                                                                               
Get:9 http://cn.archive.ubuntu.com/ubuntu focal/main amd64 libxt-dev amd64 1:1.1.5-1 [395 kB]                                                                                                                                                                                
Get:10 http://cn.archive.ubuntu.com/ubuntu focal-updates/universe amd64 openjdk-8-jre amd64 8u352-ga-1~20.04 [69.9 kB]                                                                                                                                                       
Get:11 http://cn.archive.ubuntu.com/ubuntu focal-updates/universe amd64 openjdk-8-jdk-headless amd64 8u352-ga-1~20.04 [8,293 kB]                                                                                                                                             
Get:12 http://cn.archive.ubuntu.com/ubuntu focal-updates/universe amd64 openjdk-8-jdk amd64 8u352-ga-1~20.04 [4,015 kB]                                                                                                                                                      
Fetched 43.1 MB in 1min 24s (514 kB/s)                                                                                                                                                                                                                                       
Selecting previously unselected package java-common.
(Reading database ... 175804 files and directories currently installed.)
Preparing to unpack .../00-java-common_0.72_all.deb ...
Unpacking java-common (0.72) ...
Selecting previously unselected package openjdk-8-jre-headless:amd64.
Preparing to unpack .../01-openjdk-8-jre-headless_8u352-ga-1~20.04_amd64.deb ...
Unpacking openjdk-8-jre-headless:amd64 (8u352-ga-1~20.04) ...
Selecting previously unselected package ca-certificates-java.
Preparing to unpack .../02-ca-certificates-java_20190405ubuntu1_all.deb ...
Unpacking ca-certificates-java (20190405ubuntu1) ...
Selecting previously unselected package fonts-dejavu-extra.
Preparing to unpack .../03-fonts-dejavu-extra_2.37-1_all.deb ...
Unpacking fonts-dejavu-extra (2.37-1) ...
Selecting previously unselected package libatk-wrapper-java.
Preparing to unpack .../04-libatk-wrapper-java_0.37.1-1_all.deb ...
Unpacking libatk-wrapper-java (0.37.1-1) ...
Selecting previously unselected package libatk-wrapper-java-jni:amd64.
Preparing to unpack .../05-libatk-wrapper-java-jni_0.37.1-1_amd64.deb ...
Unpacking libatk-wrapper-java-jni:amd64 (0.37.1-1) ...
Selecting previously unselected package libice-dev:amd64.
Preparing to unpack .../06-libice-dev_2%3a1.0.10-0ubuntu1_amd64.deb ...
Unpacking libice-dev:amd64 (2:1.0.10-0ubuntu1) ...
Selecting previously unselected package libsm-dev:amd64.
Preparing to unpack .../07-libsm-dev_2%3a1.2.3-1_amd64.deb ...
Unpacking libsm-dev:amd64 (2:1.2.3-1) ...
Selecting previously unselected package libxt-dev:amd64.
Preparing to unpack .../08-libxt-dev_1%3a1.1.5-1_amd64.deb ...
Unpacking libxt-dev:amd64 (1:1.1.5-1) ...
Selecting previously unselected package openjdk-8-jre:amd64.
Preparing to unpack .../09-openjdk-8-jre_8u352-ga-1~20.04_amd64.deb ...
Unpacking openjdk-8-jre:amd64 (8u352-ga-1~20.04) ...
Selecting previously unselected package openjdk-8-jdk-headless:amd64.
Preparing to unpack .../10-openjdk-8-jdk-headless_8u352-ga-1~20.04_amd64.deb ...
Unpacking openjdk-8-jdk-headless:amd64 (8u352-ga-1~20.04) ...
Selecting previously unselected package openjdk-8-jdk:amd64.
Preparing to unpack .../11-openjdk-8-jdk_8u352-ga-1~20.04_amd64.deb ...
Unpacking openjdk-8-jdk:amd64 (8u352-ga-1~20.04) ...
Setting up java-common (0.72) ...
Setting up libice-dev:amd64 (2:1.0.10-0ubuntu1) ...
Setting up libsm-dev:amd64 (2:1.2.3-1) ...
Setting up libxt-dev:amd64 (1:1.1.5-1) ...
Setting up fonts-dejavu-extra (2.37-1) ...
Setting up libatk-wrapper-java (0.37.1-1) ...
Setting up libatk-wrapper-java-jni:amd64 (0.37.1-1) ...
Setting up ca-certificates-java (20190405ubuntu1) ...
head: cannot open '/etc/ssl/certs/java/cacerts' for reading: No such file or directory
Adding debian:QuoVadis_Root_CA_3_G3.pem
Adding debian:Entrust_Root_Certification_Authority_-_EC1.pem
Adding debian:Cybertrust_Global_Root.pem
Adding debian:GlobalSign_Root_CA.pem
Adding debian:Atos_TrustedRoot_2011.pem
Adding debian:XRamp_Global_CA_Root.pem
Adding debian:AC_RAIZ_FNMT-RCM_SERVIDORES_SEGUROS.pem
Adding debian:SSL.com_EV_Root_Certification_Authority_RSA_R2.pem
Adding debian:Certum_Trusted_Root_CA.pem
Adding debian:GlobalSign_Root_CA_-_R2.pem
Adding debian:UCA_Extended_Validation_Root.pem
Adding debian:TWCA_Global_Root_CA.pem
Adding debian:emSign_ECC_Root_CA_-_G3.pem
Adding debian:SwissSign_Silver_CA_-_G2.pem
Adding debian:Amazon_Root_CA_4.pem
Adding debian:ISRG_Root_X1.pem
Adding debian:DigiCert_Global_Root_G3.pem
Adding debian:AC_RAIZ_FNMT-RCM.pem
Adding debian:GlobalSign_Root_E46.pem
Adding debian:GlobalSign_ECC_Root_CA_-_R4.pem
Adding debian:D-TRUST_Root_Class_3_CA_2_2009.pem
Adding debian:Amazon_Root_CA_3.pem
Adding debian:SwissSign_Gold_CA_-_G2.pem
Adding debian:Trustwave_Global_ECC_P384_Certification_Authority.pem
Adding debian:Certum_EC-384_CA.pem
Adding debian:TrustCor_RootCert_CA-2.pem
Adding debian:DigiCert_Trusted_Root_G4.pem
Adding debian:Go_Daddy_Root_Certificate_Authority_-_G2.pem
Adding debian:IdenTrust_Public_Sector_Root_CA_1.pem
Adding debian:IdenTrust_Commercial_Root_CA_1.pem
Adding debian:Starfield_Root_Certificate_Authority_-_G2.pem
Adding debian:Go_Daddy_Class_2_CA.pem
Adding debian:emSign_Root_CA_-_C1.pem
Adding debian:E-Tugra_Certification_Authority.pem
Adding debian:Entrust_Root_Certification_Authority_-_G2.pem
Adding debian:SSL.com_EV_Root_Certification_Authority_ECC.pem
Adding debian:Buypass_Class_2_Root_CA.pem
Adding debian:Hellenic_Academic_and_Research_Institutions_RootCA_2011.pem
Adding debian:TrustCor_RootCert_CA-1.pem
Adding debian:Certum_Trusted_Network_CA_2.pem
Adding debian:TeliaSonera_Root_CA_v1.pem
Adding debian:Trustwave_Global_Certification_Authority.pem
Adding debian:AffirmTrust_Networking.pem
Adding debian:GlobalSign_ECC_Root_CA_-_R5.pem
Adding debian:SecureSign_RootCA11.pem
Adding debian:CFCA_EV_ROOT.pem
Adding debian:e-Szigno_Root_CA_2017.pem
Adding debian:Microsec_e-Szigno_Root_CA_2009.pem
Adding debian:QuoVadis_Root_CA_1_G3.pem
Adding debian:Baltimore_CyberTrust_Root.pem
Adding debian:ssl-cert-snakeoil.pem
Adding debian:COMODO_ECC_Certification_Authority.pem
Adding debian:AffirmTrust_Premium.pem
Adding debian:emSign_Root_CA_-_G1.pem
Adding debian:GTS_Root_R1.pem
Adding debian:AffirmTrust_Commercial.pem
Adding debian:TUBITAK_Kamu_SM_SSL_Kok_Sertifikasi_-_Surum_1.pem
Adding debian:UCA_Global_G2_Root.pem
Adding debian:Starfield_Services_Root_Certificate_Authority_-_G2.pem
Adding debian:certSIGN_ROOT_CA.pem
Adding debian:Certigna.pem
Adding debian:NetLock_Arany_=Class_Gold=_Főtanúsítvány.pem
Adding debian:QuoVadis_Root_CA_2.pem
Adding debian:Certum_Trusted_Network_CA.pem
Adding debian:SSL.com_Root_Certification_Authority_ECC.pem
Adding debian:Trustwave_Global_ECC_P256_Certification_Authority.pem
Adding debian:USERTrust_RSA_Certification_Authority.pem
Adding debian:GlobalSign_Root_CA_-_R6.pem
Adding debian:emSign_ECC_Root_CA_-_C3.pem
Adding debian:D-TRUST_Root_Class_3_CA_2_EV_2009.pem
Adding debian:Entrust_Root_Certification_Authority.pem
Adding debian:GlobalSign_Root_CA_-_R3.pem
Adding debian:T-TeleSec_GlobalRoot_Class_2.pem
Adding debian:Entrust.net_Premium_2048_Secure_Server_CA.pem
Adding debian:GTS_Root_R4.pem
Adding debian:EC-ACC.pem
Adding debian:DigiCert_Assured_ID_Root_G2.pem
Adding debian:GLOBALTRUST_2020.pem
Adding debian:ANF_Secure_Server_Root_CA.pem
Adding debian:Izenpe.com.pem
Adding debian:GlobalSign_Root_R46.pem
Adding debian:DigiCert_Assured_ID_Root_CA.pem
Adding debian:GTS_Root_R3.pem
Adding debian:Hellenic_Academic_and_Research_Institutions_RootCA_2015.pem
Adding debian:TrustCor_ECA-1.pem
Adding debian:Actalis_Authentication_Root_CA.pem
Adding debian:Buypass_Class_3_Root_CA.pem
Adding debian:DigiCert_Global_Root_CA.pem
Adding debian:TWCA_Root_Certification_Authority.pem
Adding debian:Amazon_Root_CA_1.pem
Adding debian:Microsoft_ECC_Root_Certificate_Authority_2017.pem
Adding debian:Security_Communication_Root_CA.pem
Adding debian:USERTrust_ECC_Certification_Authority.pem
Adding debian:DigiCert_High_Assurance_EV_Root_CA.pem
Adding debian:QuoVadis_Root_CA_2_G3.pem
Adding debian:SSL.com_Root_Certification_Authority_RSA.pem
Adding debian:Network_Solutions_Certificate_Authority.pem
Adding debian:Secure_Global_CA.pem
Adding debian:T-TeleSec_GlobalRoot_Class_3.pem
Adding debian:QuoVadis_Root_CA_3.pem
Adding debian:Security_Communication_RootCA2.pem
Adding debian:COMODO_RSA_Certification_Authority.pem
Adding debian:Entrust_Root_Certification_Authority_-_G4.pem
Adding debian:DigiCert_Global_Root_G2.pem
Adding debian:Amazon_Root_CA_2.pem
Adding debian:ACCVRAIZ1.pem
Adding debian:Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem
Adding debian:ePKI_Root_Certification_Authority.pem
Adding debian:Staat_der_Nederlanden_EV_Root_CA.pem
Adding debian:DigiCert_Assured_ID_Root_G3.pem
Adding debian:Hongkong_Post_Root_CA_3.pem
Adding debian:Certigna_Root_CA.pem
Adding debian:Hellenic_Academic_and_Research_Institutions_ECC_RootCA_2015.pem
Adding debian:GDCA_TrustAUTH_R5_ROOT.pem
Adding debian:SZAFIR_ROOT_CA2.pem
Adding debian:COMODO_Certification_Authority.pem
Adding debian:AffirmTrust_Premium_ECC.pem
Adding debian:NAVER_Global_Root_Certification_Authority.pem
Adding debian:Microsoft_RSA_Root_Certificate_Authority_2017.pem
Adding debian:OISTE_WISeKey_Global_Root_GB_CA.pem
Adding debian:OISTE_WISeKey_Global_Root_GC_CA.pem
Adding debian:Comodo_AAA_Services_root.pem
Adding debian:certSIGN_Root_CA_G2.pem
Adding debian:Starfield_Class_2_CA.pem
Adding debian:CA_Disig_Root_R2.pem
Adding debian:GTS_Root_R2.pem
Adding debian:Hongkong_Post_Root_CA_1.pem
Adding debian:SecureTrust_CA.pem
done.
Processing triggers for fontconfig (2.13.1-2ubuntu3) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for ca-certificates (20211016~20.04.1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...

done.
done.
Setting up openjdk-8-jre-headless:amd64 (8u352-ga-1~20.04) ...
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java to provide /usr/bin/java (java) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/keytool to provide /usr/bin/keytool (keytool) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/jjs to provide /usr/bin/jjs (jjs) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/pack200 to provide /usr/bin/pack200 (pack200) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/unpack200 to provide /usr/bin/unpack200 (unpack200) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/orbd to provide /usr/bin/orbd (orbd) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/servertool to provide /usr/bin/servertool (servertool) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/tnameserv to provide /usr/bin/tnameserv (tnameserv) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode
Setting up openjdk-8-jre:amd64 (8u352-ga-1~20.04) ...
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/policytool to provide /usr/bin/policytool (policytool) in auto mode
Setting up openjdk-8-jdk-headless:amd64 (8u352-ga-1~20.04) ...
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/idlj to provide /usr/bin/idlj (idlj) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jdeps to provide /usr/bin/jdeps (jdeps) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/wsimport to provide /usr/bin/wsimport (wsimport) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/rmic to provide /usr/bin/rmic (rmic) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jinfo to provide /usr/bin/jinfo (jinfo) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jsadebugd to provide /usr/bin/jsadebugd (jsadebugd) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/native2ascii to provide /usr/bin/native2ascii (native2ascii) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jstat to provide /usr/bin/jstat (jstat) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/javac to provide /usr/bin/javac (javac) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/javah to provide /usr/bin/javah (javah) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/clhsdb to provide /usr/bin/clhsdb (clhsdb) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jstack to provide /usr/bin/jstack (jstack) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jrunscript to provide /usr/bin/jrunscript (jrunscript) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/javadoc to provide /usr/bin/javadoc (javadoc) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/javap to provide /usr/bin/javap (javap) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jar to provide /usr/bin/jar (jar) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/xjc to provide /usr/bin/xjc (xjc) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/hsdb to provide /usr/bin/hsdb (hsdb) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/schemagen to provide /usr/bin/schemagen (schemagen) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jps to provide /usr/bin/jps (jps) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/extcheck to provide /usr/bin/extcheck (extcheck) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jmap to provide /usr/bin/jmap (jmap) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jstatd to provide /usr/bin/jstatd (jstatd) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jhat to provide /usr/bin/jhat (jhat) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jdb to provide /usr/bin/jdb (jdb) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/serialver to provide /usr/bin/serialver (serialver) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jfr to provide /usr/bin/jfr (jfr) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/wsgen to provide /usr/bin/wsgen (wsgen) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jcmd to provide /usr/bin/jcmd (jcmd) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jarsigner to provide /usr/bin/jarsigner (jarsigner) in auto mode
Setting up openjdk-8-jdk:amd64 (8u352-ga-1~20.04) ...
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/appletviewer to provide /usr/bin/appletviewer (appletviewer) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jconsole to provide /usr/bin/jconsole (jconsole) in auto mode
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ java -version
openjdk version "1.8.0_352"
OpenJDK Runtime Environment (build 1.8.0_352-8u352-ga-1~20.04-b08)
OpenJDK 64-Bit Server VM (build 25.352-b08, mixed mode)
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ sudo apt-get install openjdk-8-jdk
Reading package lists... Done
Building dependency tree       
Reading state information... Done
openjdk-8-jdk is already the newest version (8u352-ga-1~20.04).
0 upgraded, 0 newly installed, 0 to remove and 159 not upgraded.
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ ./build.sh --product-name rk3568 --ccache


[5426/5440] STAMP obj/build/ohos/packages/merge_system_notice_file_phone.stamp
[5427/5440] ACTION //build/ohos/packages:verify_notice_file_phone(//build/toolchain/ohos:ohos_clang_arm)
[5428/5440] STAMP obj/build/ohos/packages/verify_notice_file_phone.stamp
[5429/5440] ACTION //build/ohos/packages:phone_install_modules(//build/toolchain/ohos:ohos_clang_arm)
copy modules...
[5430/5440] STAMP obj/build/ohos/packages/phone_install_modules.stamp
[5431/5440] ACTION //build/ohos/images:phone_vendor_image(//build/toolchain/ohos:ohos_clang_arm)
[5432/5440] STAMP obj/build/ohos/images/phone_vendor_image.stamp
[5433/5440] ACTION //build/ohos/images:phone_updater_image(//build/toolchain/ohos:ohos_clang_arm)
[5434/5440] STAMP obj/build/ohos/images/phone_updater_image.stamp
[5435/5440] ACTION //build/ohos/images:phone_userdata_image(//build/toolchain/ohos:ohos_clang_arm)
[5436/5440] STAMP obj/build/ohos/images/phone_userdata_image.stamp
[5437/5440] ACTION //build/ohos/images:phone_system_image(//build/toolchain/ohos:ohos_clang_arm)
[5438/5440] STAMP obj/build/ohos/images/phone_system_image.stamp
[5439/5440] STAMP obj/build/ohos/images/make_images.stamp
[5440/5440] STAMP obj/build/core/gn/images.stamp
used: 3581 seconds
pycache statistics
manage pycache contents
pycache daemon exit
ccache statistics
---------------------------------------------
ccache summary:
cache hit (direct)  : 4
cache hit (preprocessed)  : 0
cache miss  : 4310
hit rate:  0.09% 
mis rate: 99.91% 
---------------------------------------------
c targets overlap rate statistics
subsystem           files NO.    percentage    builds NO.    percentage    overlap rate
utils                    211    1.2%         291    1.5%    1.38
third_party             8869    48.4%       10191    51.6%    1.15
ace                     2801    15.3%        2835    14.4%    1.01
graphic                  170    0.9%         171    0.9%    1.01
aafwk                    210    1.1%         210    1.1%    1.00
account                   66    0.4%          66    0.3%    1.00
appexecfwk               433    2.4%         433    2.2%    1.00
ark                      430    2.3%         430    2.2%    1.00
ccruntime                 32    0.2%          32    0.2%    1.00
communication            529    2.9%         529    2.7%    1.00
developtools             206    1.1%         206    1.0%    1.00
deviceprofile             37    0.2%          37    0.2%    1.00
distributeddatamgr         348    1.9%         348    1.8%    1.00
distributedhardware          33    0.2%          33    0.2%    1.00
distributedschedule          33    0.2%          33    0.2%    1.00
global                    41    0.2%          41    0.2%    1.00
hdf                      389    2.1%         389    2.0%    1.00
hiviewdfx                203    1.1%         203    1.0%    1.00
miscservices              64    0.3%          64    0.3%    1.00
multimedia               358    2.0%         358    1.8%    1.00
multimodalinput          129    0.7%         129    0.7%    1.00
notification             132    0.7%         132    0.7%    1.00
powermgr                  75    0.4%          75    0.4%    1.00
security                 307    1.7%         307    1.6%    1.00
sensors                   43    0.2%          43    0.2%    1.00
settingsdata               2    0.0%           2    0.0%    1.00
startup                   94    0.5%          94    0.5%    1.00
telephony                365    2.0%         365    1.8%    1.00
updater                   91    0.5%          91    0.5%    1.00
wpa_supplicant-2.9           4    0.0%           4    0.0%    1.00

c overall build overlap rate: 1.08


post_process
=====build rk3568 successful.
2023-01-15 02:04:51
++++++++++++++++++++++++++++++++++++++++
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/RK3399_OpenHarmony-v3.1-Beta$ 

你可能感兴趣的:(杂质,ubuntu,linux,服务器)