I don’t have a pc like the guide requrimented
But i have jetson AGV xavier and nano .
so I want build a kaya . the xavier work as a pc.
I have tried to install isaac sdk in xavier .
I can run bazel with the office example
cd ~/examples/cpp-tutorial/stage1
bazel run //main:hello-world
but i can’t run the isaac example
I run script as below:
/isaac$ bazel build //apps/samples/stereo_dummy
INFO: Build options have changed, discarding analysis cache.
WARNING: /home/ubuntu/isaac/packages/viewers/BUILD:14:12: in srcs attribute of cc_binary rule //packages/viewers:libviewers_module.so: please do not import '//packages_x86_64/viewers:libviewers_module.so' directly. You should either move the file to this package or depend on an appropriate rule there
INFO: Analysed target //apps/samples/stereo_dummy:stereo_dummy (10 packages loaded, 2846 targets configured).
INFO: Found 1 target...
ERROR: /home/ubuntu/.cache/bazel/_bazel_ubuntu/026f80ffd3407b04a89c5a0bc1659072/external/libuuid/BUILD.bazel:14:1: Couldn't build file external/libuuid/_objs/libuuid/unparse.o: undeclared inclusion(s) in rule '@libuuid//:libuuid':
this rule is missing dependency declarations for the following files included by 'external/libuuid/unparse.c':
'/usr/lib/gcc/aarch64-linux-gnu/7/include/stddef.h'
'/usr/lib/gcc/aarch64-linux-gnu/7/include/stdarg.h'
'/usr/lib/gcc/aarch64-linux-gnu/7/include/stdint.h'
I run script as test :
./engine/build/deploy.sh -d jetpack42 -h 127.0.0.1 -p //apps/kaya:joystick-pkg
The result as :
================================================================================
Building //apps/kaya:joystick-pkg for target platform 'jetpack42'
================================================================================
INFO: Analysed target //apps/kaya:joystick-pkg (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: /home/ubuntu/.cache/bazel/_bazel_ubuntu/026f80ffd3407b04a89c5a0bc1659072/external/net_zlib_zlib/BUILD.bazel:14:1: Couldn't build file external/net_zlib_zlib/_objs/zlib/crc32.o: undeclared inclusion(s) in rule '@net_zlib_zlib//:zlib':
this rule is missing dependency declarations for the following files included by 'external/net_zlib_zlib/crc32.c':
'/usr/lib/gcc/aarch64-linux-gnu/7/include/stddef.h'
'/usr/lib/gcc/aarch64-linux-gnu/7/include-fixed/limits.h'
'/usr/lib/gcc/aarch64-linux-gnu/7/include-fixed/syslimits.h'
'/usr/lib/gcc/aarch64-linux-gnu/7/include/stdarg.h'
ERROR: /home/ubuntu/.cache/bazel/_bazel_ubuntu/026f80ffd3407b04a89c5a0bc1659072/external/capnproto/BUILD.bazel:19:1: Couldn't build file external/capnproto/_objs/kj_lite/common.o: undeclared inclusion(s) in rule '@capnproto//:kj_lite':
this rule is missing dependency declarations for the following files included by 'external/capnproto/c++/src/kj/common.c++':
'/usr/lib/gcc/aarch64-linux-gnu/7/include/stddef.h'
ERROR: /home/ubuntu/.cache/bazel/_bazel_ubuntu/026f80ffd3407b04a89c5a0bc1659072/external/capnproto/BUILD.bazel:51:1: Couldn't build file external/capnproto/_objs/kj_heavy/char.o: undeclared inclusion(s) in rule '@capnproto//:kj_heavy':
this rule is missing dependency declarations for the following files included by 'external/capnproto/c++/src/kj/parse/char.c++':
I change some file:
isaac/engine/build/toolchain/crosstool
add line as :
default_toolchain {
cpu: "aarch64"
toolchain_identifier: "local"
}
isaac/engine/build/BUILD
add line as :
config_setting(
name = "platform_aarch64",
define_values = {"target_platform": "jetpack42"},
visibility = ["//visibility:public"],
)
I don’t understand how to fix , but i just try . but not work for now.
if don’t change those files .it can’t compiled with cpu as aarch64