Could not build with bazel

I want to use Isaac on my PC.

I followed https://docs.nvidia.com/isaac/isaac/doc/setup.html to setup it.

When I tried to build an application using the command:
bazel build //apps/samples/stereo_dummy

It got an error as follows:

ERROR: error loading package ‘’: Extension file not found. Unable to load package for ‘//engine/build:isaac.bzl’: BUILD file not found on package path
ERROR: Skipping ‘//apps/samples/stereo_dummy’: no such package ‘apps/samples/stereo_dummy’: BUILD file not found on package path
WARNING: Target pattern parsing failed.
ERROR: error loading package ‘’: Extension file not found. Unable to load package for ‘//engine/build:isaac.bzl’: BUILD file not found on package path

What should I do to solve it?
Please help! Thanks in advance!

We did a fresh install of Isaac 2019.3 and followed all the steps as outlined in the documentation and got it to work.

There are 3 things you may want to double check:

  • the directory structure
  • what directory you’re in when you issue the bazel command
  • making sure you have the hidden file .bazelrc

See this note below from the setup documentation:
https://docs.nvidia.com/isaac/isaac/doc/setup.html

Bazel requires the file .bazelrc, located in the Isaac SDK package. The Archive Manager application in Ubuntu Linux may fail to extract the hidden file, leading to building errors. If you see errors when building, confirm that .bazelrc is present in the extracted sources.