{"id":374,"date":"2021-10-16T14:18:40","date_gmt":"2021-10-16T06:18:40","guid":{"rendered":"https:\/\/www.sunyuping.cn\/?p=374"},"modified":"2021-10-16T14:18:40","modified_gmt":"2021-10-16T06:18:40","slug":"ubuntu20-04-%e7%bc%96%e8%af%91-openharmony3-0","status":"publish","type":"post","link":"https:\/\/www.sunyuping.com\/index.php\/2021\/10\/16\/ubuntu20-04-%e7%bc%96%e8%af%91-openharmony3-0\/","title":{"rendered":"ubuntu20.04 \u7f16\u8bd1 Openharmony3.0"},"content":{"rendered":"\n<p>Openharmony3.0\u7f16\u8bd1<br>Openharmony\u5982\u4f55\u5728linux\u4e0a\u8fdb\u884c\u6e90\u7801\u7f16\u8bd1\uff0c\u521d\u6b21\u5c1d\u8bd5\u4e86\u4e00\u4e0b\uff0c\u8bb0\u5f55\u4e00\u4e0b\u81ea\u5df1\u6839\u636e\u5b98\u7f51\u8bb0\u5f55\u7684\u6bd4\u8f83\u5feb\u901f\u4e0a\u624b\u7684\u7b80\u5355\u6b65\u9aa4\u64cd\u4f5c<\/p>\n\n\n\n<p><br>\u4e00\u3001\u5b89\u88c5\u5fc5\u8981\u7684\u4f9d\u8d56\u8f6f\u4ef6\u5305\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt-get install binutils git-core git-lfs gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip m4 ruby<\/pre>\n\n\n\n<p>\u4e8c\u3001git \u73af\u5883\u51c6\u5907<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u6ce8\u518c\u7801\u4e91gitee\u8d26\u53f7\u3002<\/li><li>\u6ce8\u518c\u7801\u4e91SSH\u516c\u94a5\uff0c\u8bf7\u53c2\u8003<a href=\"https:\/\/gitee.com\/help\/articles\/4191\">\u7801\u4e91\u5e2e\u52a9\u4e2d\u5fc3<\/a>\u3002<\/li><li>\u5b89\u88c5<a href=\"http:\/\/git-scm.com\/book\/zh\/v2\/%E8%B5%B7%E6%AD%A5-%E5%AE%89%E8%A3%85-Git\">git\u5ba2\u6237\u7aef<\/a>\u548c<a href=\"https:\/\/gitee.com\/vcs-all-in-one\/git-lfs?_from=gitee_search#downloading\">git-lfs<\/a>\u5e76\u914d\u7f6e\u7528\u6237\u4fe1\u606f\u3002<\/li><li>git config &#8211;global user.name &#8220;yourname&#8221; <\/li><li>git config &#8211;global user.email &#8220;your-email-address&#8221; <\/li><li>git config &#8211;global credential.helper store<\/li><\/ul>\n\n\n\n<p><br>\u4e09\u3001\u5b89\u88c5python3<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u6253\u5f00Linux\u7f16\u8bd1\u670d\u52a1\u5668\u7ec8\u7aef\u3002<\/li><li>\u8fd0\u884c\u5982\u4e0b\u547d\u4ee4<ul><li>sudo apt-get install python3.8<\/li><\/ul><\/li><li>\u8bbe\u7f6epython\u548cpython3\u8f6f\u94fe\u63a5\u4e3apython3.8\u3002<ul><li>sudo update-alternatives &#8211;install \/usr\/bin\/python python \/usr\/bin\/python3.8 1 <\/li><li>sudo update-alternatives &#8211;install \/usr\/bin\/python3 python3 \/usr\/bin\/python3.8 1<\/li><\/ul><\/li><li>\u5b89\u88c5\u5e76\u5347\u7ea7Python\u5305\u7ba1\u7406\u5de5\u5177\uff08pip3\uff09\uff0c\u4efb\u9009\u5982\u4e0b\u4e00\u79cd\u65b9\u5f0f\u3002<ul><li><strong>\u547d\u4ee4\u884c\u65b9\u5f0f\uff1a<\/strong><ul><li>sudo apt-get install python3-setuptools python3-pip -y <\/li><li>sudo pip3 install &#8211;upgrade pip<\/li><\/ul><\/li><li><strong>\u5b89\u88c5\u5305\u65b9\u5f0f\uff1a<\/strong><ul><li>curl https:\/\/bootstrap.pypa.io\/get-pip.py -o get-pip.py<\/li><li> python get-pip.py<a href=\"https:\/\/gitee.com\/openharmony\/docs\/blob\/master\/zh-cn\/device-dev\/quick-start\/quickstart-lite-env-setup-linux.md#%E5%AE%89%E8%A3%85llvm%E4%BB%85openharmony_v1x%E5%88%86%E6%94%AF%E6%A0%87%E7%AD%BE%E9%9C%80%E8%A6%81\"><\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul>\n\n\n\n<p><br>\u56db\u3001\u5b89\u88c5repo<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">curl https:\/\/gitee.com\/oschina\/repo\/raw\/fork_flow\/repo-py3 &gt; \/usr\/local\/bin\/repo #\u5982\u679c\u6ca1\u6709\u6743\u9650\uff0c\u53ef\u4e0b\u8f7d\u81f3\u5176\u4ed6\u76ee\u5f55\uff0c\u5e76\u5c06\u5176\u914d\u7f6e\u5230\u73af\u5883\u53d8\u91cf\u4e2d\nchmod a+x \/usr\/local\/bin\/repo\npip3 install -i https:\/\/repo.huaweicloud.com\/repository\/pypi\/simple requests<\/pre>\n\n\n\n<p><br>\u4e94\u3001\u83b7\u53d6openharmony\u6e90\u7801<br><\/p>\n\n\n\n<p><strong>\u65b9\u5f0f<\/strong>&nbsp;<strong>\u4e00\uff08\u63a8\u8350\uff09<\/strong><\/p>\n\n\n\n<p>\u901a\u8fc7repo + ssh \u4e0b\u8f7d\uff08\u9700\u6ce8\u518c\u516c\u94a5\uff0c\u8bf7\u53c2\u8003<a href=\"https:\/\/gitee.com\/help\/articles\/4191\">\u7801\u4e91\u5e2e\u52a9\u4e2d\u5fc3<\/a>\uff09\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">repo init -u git@gitee.com:openharmony\/manifest.git -b refs\/tags\/OpenHarmony-v3.0-LTS --no-repo-verify\nrepo sync -c\nrepo forall -c 'git lfs pull'<\/pre>\n\n\n\n<p><strong>\u65b9\u5f0f\u4e8c<\/strong><\/p>\n\n\n\n<p>\u901a\u8fc7repo + https \u4e0b\u8f7d\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">repo init -u https:\/\/gitee.com\/openharmony\/manifest.git -b refs\/tags\/OpenHarmony-v3.0-LTS --no-repo-verify\nrepo sync -c\nrepo forall -c 'git lfs pull'<\/pre>\n\n\n\n<p>\u516d\u3001\u83b7\u53d6prebuilts<br>\u5728\u6e90\u7801\u76ee\u5f55\u4e0b\u6267\u884c<br>.\/build\/prebuilts_download.sh<\/p>\n\n\n\n<p>\u4e03\u3001\u7f16\u8bd1<br>.\/build.sh &#8211;product-name Hi3516DV300<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>post_process<br>=====build Hi3516DV300 successful<\/p>\n\n\n\n<p>\u7f16\u8bd1\u5b8c\u4e4b\u540e\u7684\u955c\u50cf\u5728\u8fd9\u91cc\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u7f16\u8bd1\u6240\u751f\u6210\u7684\u6587\u4ef6\u90fd\u5f52\u6863\u5728out\/ohos-arm-release\/\u76ee\u5f55\u4e0b\uff0c\u7ed3\u679c\u955c\u50cf\u8f93\u51fa\u5728 out\/ohos-arm-release\/packages\/phone\/images\/ \u76ee\u5f55\u4e0b\u3002<img decoding=\"async\" src=\"https:\/\/gitee.com\/openharmony\/docs\/raw\/master\/zh-cn\/device-dev\/public_sys-resources\/icon-note.gif\" alt=\"\">\u00a0<strong>\u8bf4\u660e\uff1a<\/strong>\u00a0\u5176\u4ed6\u6a21\u5757\u5316\u7f16\u8bd1\u64cd\u4f5c\uff0c\u53ef\u53c2\u89c1<a href=\"https:\/\/gitee.com\/openharmony\/docs\/blob\/master\/zh-cn\/device-dev\/subsystems\/subsys-build-standard-large.md\">\u7f16\u8bd1\u6784\u5efa\u6307\u5bfc<\/a>\u3002<\/li><li>\u7f16\u8bd1\u6e90\u7801\u5b8c\u6210\uff0c\u8bf7\u8fdb\u884c\u955c\u50cf\u70e7\u5f55\uff0c\u5177\u4f53\u8bf7\u53c2\u89c1<a href=\"https:\/\/gitee.com\/openharmony\/docs\/blob\/master\/zh-cn\/device-dev\/quick-start\/quickstart-standard-burn.md\">\u955c\u50cf\u70e7\u5f55<\/a>\u3002<\/li><\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Openharmony3.0\u7f16\u8bd1Openharmony\u5982\u4f55\u5728linux\u4e0a\u8fdb\u884c\u6e90\u7801\u7f16\u8bd1\uff0c\u521d\u6b21\u5c1d\u8bd5\u4e86\u4e00\u4e0b\uff0c\u8bb0\u5f55\u4e00\u4e0b &#8230; <a title=\"ubuntu20.04 \u7f16\u8bd1 Openharmony3.0\" class=\"read-more\" href=\"https:\/\/www.sunyuping.com\/index.php\/2021\/10\/16\/ubuntu20-04-%e7%bc%96%e8%af%91-openharmony3-0\/\" aria-label=\"\u9605\u8bfb ubuntu20.04 \u7f16\u8bd1 Openharmony3.0\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-374","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.sunyuping.com\/index.php\/wp-json\/wp\/v2\/posts\/374","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sunyuping.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sunyuping.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sunyuping.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sunyuping.com\/index.php\/wp-json\/wp\/v2\/comments?post=374"}],"version-history":[{"count":0,"href":"https:\/\/www.sunyuping.com\/index.php\/wp-json\/wp\/v2\/posts\/374\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sunyuping.com\/index.php\/wp-json\/wp\/v2\/media?parent=374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sunyuping.com\/index.php\/wp-json\/wp\/v2\/categories?post=374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sunyuping.com\/index.php\/wp-json\/wp\/v2\/tags?post=374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}