fuchsia学习_下载编译遇到问题和demo运行

 

下载编译,官网 https://fuchsia.dev
$ curl -s "https://fuchsia.googlesource.com/fuchsia/+/master/scripts/bootstrap?format=TEXT" | base64 --decode | bash
$ export PATH="/home/fuchsia/.jiri_root/bin:$PATH"
$ fx set core.x64 --with //bundles:kitchen_sink
$ fx build
$ fx emu -N
// 模拟器运行起来后,可执行命令:
$ printf "1234"  $ pwd  $ ps  $ date  $ ls  $ uname  $ uname -srm  $ locate
https://fuchsia.dev/fuchsia-src/getting_started
$ fx get-device-addr
====
遇到问题五(shasum命令问题):
$ fx qemu -N
"$errmsg" is not exported by the Digest::SHA module
Can't continue after import errors at /usr/local/bin/shasum line 21.
方案参考  https://command-not-found.com/shasum
$ sudo apt-get install libdigest-sha-perl
验证命令方式  $ shasum --help
====
遇到问题四(ubuntu18的KVM权限问题):
$ fx qemu -N
qemu-system-x86_64: failed to initialize KVM: Permission denied
方案参考  https://stackoverflow.com/questions/59131434/unable-to-start-fuchsia-on-emulator
$ sudo chmod 777 /dev/kvm
====
遇到问题三(运行虚拟机):
$ fx qemu
ERROR: Could not extend fvm, unable to stat fvm image
问题解决(原因是非英文系统会遇到):
方案参考 https://github.com/assusdan/fuchsia-patches 或 https://forum.fuchsia-china.com/t/fuchsia/754
用文本编辑器打开~/fuchsia/tools/devshell/lib/fvm.sh,将
stat_output=$(stat "${stat_flags[@]}" "${fvmraw}") 改为
stat_output=$(LC_ALL=C stat "${stat_flags[@]}" "${fvmraw}")
这是似乎是因为系统语言导致的相关问题。在
size="${BASH_REMATCH[1]}" 的后面下一行
echo $size
====
遇到问题二(权限问题):
ERROR: 'git clone --no-checkout https://chromium.googlesource.com/catapult /home/fuchsia/third_party/catap

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值