在 jetson nano 上构建 isaac SDK 示例时出错:JetPack43 未在任何 .rc 文件中定义

运行 isaac sdk 示例脚本 ( https://docs.nvidia.com/isaac/isaac/doc/tutorials/nano.html ) 时出现错误:

sudo ./engine/build/deploy.sh --remote_user thoth -p //apps/tutorials/ping:ping-pkg -d 'JetPack43' -h 192.168.0.14 --run

对 rc 文件进行了三次检查,但找不到任何文件。我尝试了jetpack43, jetpack42, 'jetpack43', 没有任何效果。

我按照所有设置步骤没有任何错误,可以毫无问题地访问 ssh 并手动重新安装 bazel。在 PC 和 jetson nano 上运行 ubuntu 18.04。安装了 Jetson4.3 和 bazel 0.19。bazel 位于 user/bin 中,而脚本位于 Desktop/isaac/ 中。

在文档(https://docs.nvidia.com/isaac/isaac/doc/setup.html)中有以下注释:

Bazel 需要位于 Isaac SDK 包中的 .bazelrc 文件。Ubuntu Linux 中的存档管理器应用程序可能无法提取隐藏文件,从而导致构建错误。如果您在构建时看到错误,请确认 .bazelrc 存在于提取的源中。

并在 bazel 安装页面(https://docs.bazel.build/versions/master/install-ubuntu.html):

--user 标志将 Bazel 安装到系统上的 $HOME/bin 目录,并将 .bazelrc 路径设置为 $HOME/.bazelrc。使用 --help 命令查看其他安装选项。

解决方案:

  • (可选)遵循:使用二进制安装程序Installing Bazel on Ubuntu - Bazel main

  • 使用 ctr + H 激活显示隐藏文件(隐藏文件为 .filename)

  • 转到磁盘原点

  • 搜索 .bazelrc

  • 找到具有以下代码的代码(775bytes 位于 admin:///home/thoth/.local/share/Trash/files/isaac-sdk-20191213-65ec14db):

build --keep_going --color=yes -c opt --crosstool_top=@toolchain//crosstool:toolchain

build --define=target_platform=x86_64 --strip=always
build --action_env=target_platform="x86_64"
build:x86_64 --define=target_platform=x86_64 --strip=always
build:x86_64 --action_env=target_platform="x86_64"

build:jetpack43 --cpu=arm64-v8a --strip=always
build:jetpack43 --define=target_platform=jetpack43
build:jetpack43 --action_env=target_platform="jetpack43"

test --test_output=errors --keep_going --color=yes -c opt
test --test_tag_filters=-lint

build --python_top=//engine/build:python3
test --python_top=//engine/build:python3
run --python_top=//engine/build:python3

test:lint --build_tests_only
test:lint --test_tag_filters=lint
test:lint --python_top=//engine/build:python27

运行 isaac sdk 示例脚本 ( https://docs.nvidia.com/isaac/isaac/doc/tutorials/nano.html ) 时出现错误:

sudo ./engine/build/deploy.sh --remote_user thoth -p //apps/tutorials/ping:ping-pkg -d 'JetPack43' -h 192.168.0.14 --run

错误是:

=============================================================
Building Minidump tools
Building //apps/tutorials/ping:ping-pkg for target platform 'JetPack43'
=============================================================
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=125
**ERROR: Config value JetPack43 is not defined in any .rc file**

我对任何 rc 文件进行了三次检查,但找不到任何文件。我尝试了jetpack43jetpack42'jetpack43', 没有任何效果。

我按照所有设置步骤没有任何错误,可以毫无问题地访问 ssh 并手动重新安装 bazel。在 PC 和 jetson nano 上运行 ubuntu 18.04。安装了 Jetson4.3 和 bazel 0.19。bazel 位于 user/bin 中,而脚本位于 Desktop/isaac/ 中。

在文档(https://docs.nvidia.com/isaac/isaac/doc/setup.html)中有以下注释:

Bazel 需要位于 Isaac SDK 包中的 .bazelrc 文件。Ubuntu Linux 中的存档管理器应用程序可能无法提取隐藏文件,从而导致构建错误。如果您在构建时看到错误,请确认 .bazelrc 存在于提取的源中。

并在 bazel 安装页面(Installing Bazel on Ubuntu - Bazel main):

--user 标志将 Bazel 安装到系统上的 $HOME/bin 目录,并将 .bazelrc 路径设置为 $HOME/.bazelrc。使用 --help 命令查看其他安装选项。

解决方案

好吧,睡了 2 小时对我有好处 ^^ 我终于找到了这里的文件,我就是这样做的:

  • (可选)遵循:使用二进制安装程序Installing Bazel on Ubuntu - Bazel main

  • 使用 ctr + H 激活显示隐藏文件(隐藏文件为 .filename)

  • 转到磁盘原点

  • 搜索 .bazelrc

  • 找到具有以下代码的代码(775bytes 位于 admin:///home/thoth/.local/share/Trash/files/isaac-sdk-20191213-65ec14db):

build --keep_going --color=yes -c opt --crosstool_top=@toolchain//crosstool:toolchain

build --define=target_platform=x86_64 --strip=always
build --action_env=target_platform="x86_64"
build:x86_64 --define=target_platform=x86_64 --strip=always
build:x86_64 --action_env=target_platform="x86_64"

build:jetpack43 --cpu=arm64-v8a --strip=always
build:jetpack43 --define=target_platform=jetpack43
build:jetpack43 --action_env=target_platform="jetpack43"

test --test_output=errors --keep_going --color=yes -c opt
test --test_tag_filters=-lint

build --python_top=//engine/build:python3
test --python_top=//engine/build:python3
run --python_top=//engine/build:python3

test:lint --build_tests_only
test:lint --test_tag_filters=lint
test:lint --python_top=//engine/build:python27
  • 复制文件

  • 将文件粘贴到 /home/thoth/.bazel/bin/

  • 在终端运行:sudo ./engine/build/deploy.sh --remote_user thoth -p //apps/tutorials/ping:ping-pkg -d jetpack43 -h 192.168.0.14 --run

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值