Build problems with carter_delivery app

When I try to run the carter_delivery_flatsim app on my host pc I got the following error. BUILD file is in the folder and I did not make any modifications on any of the project files.

bazel run //apps/carter/carter_delivery/carter_delivery_flatsim
ERROR: Skipping ‘//apps/carter/carter_delivery/carter_delivery_flatsim’: no such package ‘apps/carter/carter_delivery/carter_delivery_flatsim’: BUILD file not found on package path
WARNING: Target pattern parsing failed.

Hi gkobas,

Please verify that the following command that you are issuing is at Isaac SDK home folder.
bazel run //apps/carter/carter_delivery/carter_delivery_flatsim

1 Like

I can confirm that, Actually I can run other projects from the same Isaac SDK home folder. Below you can find the folder contents and then I run the bazel command afterwards.

(base)@@@@@:~/isaac-sdk-20191213-65ec14db$ ls
apps gupse_test packages_jetpack43
bazel-bin jetson-ev3 packages_x86_64
bazel-genfiles LICENSE README.md
bazel-isaac-sdk-20191213-65ec14db messages third_party
bazel-out NOTICE WORKSPACE
bazel-testlogs OWNERS
engine packages
(base) @@@@@:~/isaac-sdk-20191213-65ec14db$ bazel run //apps/carter/carter_delivery/carter_delivery_flatsim
ERROR: Skipping ‘//apps/carter/carter_delivery/carter_delivery_flatsim’: no such package ‘apps/carter/carter_delivery/carter_delivery_flatsim’: BUILD file not found on package path
WARNING: Target pattern parsing failed.
WARNING: No targets found to run. Will continue anyway
INFO: Analysed 0 targets (0 packages loaded, 0 targets configured).
INFO: Found 0 targets…
ERROR: command succeeded, but there were errors parsing the target pattern
INFO: Elapsed time: 0.073s, Critical Path: 0.00s, Remote (0.00% of the time): [queue: 0.00%, setup: 0.00%, process: 0.00%]
INFO: 0 processes.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
(base) ccv-main@ccvmain-Z390-D:~/isaac-sdk-20191213-65ec14db$

Try to check if BUILD file is there at
<Isaac SDK Home>/apps/carter/carter_delivery/BUILD" and it has the rule as follows and verify the name parameter:

isaac_app(
name = “carter_delivery_flatsim”,
data = [
“//apps/assets/maps”,
“//apps/carter/carter_delivery/operators”,
“//packages/flatsim/apps:2d_differential_base_simulation_subgraph”,
“//packages/navigation/apps:differential_base_commander_subgraph”,
“//packages/navigation/apps:differential_base_navigation_subgraph”,
],
modules = [
“//apps/carter/carter_delivery:carter_delivery_codelet”,
“flatsim”,
“communications”,
“map”,
“navigation”,
“perception”,
“planner”,
“imu”,
“viewers”,
],
)

If the problem still persists, try cleaning the bazel working tree by running the following command at Isaac SDK Home folder:
bazel clean

I think I found a bug, none of the above solutions did work.
When I run it from the isaac SDK home directory it fails as copied below:

(base) ----:~/isaac-sdk-20191213-65ec14db$ bazel run //apps/carter/carter_delivery/carter_delivery_flatsim
ERROR: Skipping ‘//apps/carter/carter_delivery/carter_delivery_flatsim’: no such package ‘apps/carter/carter_delivery/carter_delivery_flatsim’: BUILD file not found on package path
WARNING: Target pattern parsing failed.
WARNING: No targets found to run. Will continue anyway
INFO: Analysed 0 targets (0 packages loaded, 0 targets configured).
INFO: Found 0 targets…
ERROR: command succeeded, but there were errors parsing the target pattern
INFO: Elapsed time: 0.142s, Critical Path: 0.00s, Remote (0.00% of the time): [queue: 0.00%, setup: 0.00%, process: 0.00%]
INFO: 0 processes.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully

=============================================================
When I run it from the project directory it builds successfuly. The below command builds the code and runs it.

(base) ccv-main@ccvmain-Z390-D:~/isaac-sdk-20191213-65ec14db/apps/carter/carter_delivery$ bazel run carter_delivery_flatsim

Or it could be a problem about my environemnt but as I said before I can run most of the sample apps , even my own apps but this one. So highly likely there is sth wrong with this project settings.

Hi, @gkobas,

What is the bazel version you are using? Check it with bazel version.
What is the content in apps/carter/carter_delivery/BUILD? Try cat apps/carter/carter_delivery/BUILD
Lastly, try bazel run apps/carter/carter_delivery:carter_delivery_flatsim.

Bazel version:

(base) c----:~/isaac-sdk-20191213-65ec14db/apps/carter/carter_delivery$ bazel version
Build label: 0.19.2
Build target: bazel-out/k8-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Mon Nov 19 16:25:09 2018 (1542644709)
Build timestamp: 1542644709
Build timestamp as int: 1542644709

BUILD FILE CONTENTS (which I never modified)
(base) ----:~/isaac-sdk-20191213-65ec14db$ cat apps/carter/carter_delivery/BUILD
“”"
Copyright © 2019, NVIDIA CORPORATION. All rights reserved.

NVIDIA CORPORATION and its licensors retain all intellectual property
and proprietary rights in and to this software, related documentation
and any modifications thereto. Any use, reproduction, disclosure or
distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
“”"

load("//engine/build:isaac.bzl", “isaac_app”, “isaac_cc_module”)

isaac_cc_module(
name = “carter_delivery_codelet”,
srcs = [“CarterDelivery.cpp”],
hdrs = [“CarterDelivery.hpp”],
visibility = ["//visibility:public"],
deps = [
“//engine/gems/algorithm:string_utils”,
“//engine/gems/state_machine”,
“//packages/map:public_headers”,
],
)

isaac_app(
name = “carter_delivery”,
data = [
“//apps/assets/maps”,
“//apps/carter:2d_carter_subgraph”,
“//apps/carter/carter_delivery/operators”,
“//apps/carter/robots:robots”,
“//packages/navigation/apps:differential_base_commander_subgraph”,
“//packages/navigation/apps:differential_base_navigation_subgraph”,
],
modules = [
“//apps/carter/carter_delivery:carter_delivery_codelet”,
“communications”,
“map”,
“navigation”,
“perception”,
“planner”,
“segway”,
“imu”,
“sensors:joystick”,
“velodyne_lidar”,
“viewers”,
],
script = “select_json.sh”,
)

isaac_app(
name = “carter_delivery_flatsim”,
data = [
“//apps/assets/maps”,
“//apps/carter/carter_delivery/operators”,
“//packages/flatsim/apps:flatsim_subgraph”,
“//packages/navigation/apps:differential_base_commander_subgraph”,
“//packages/navigation/apps:differential_base_navigation_subgraph”,
],
modules = [
“//apps/carter/carter_delivery:carter_delivery_codelet”,
“flatsim”,
“communications”,
“map”,
“navigation”,
“perception”,
“planner”,
“imu”,
“viewers”,
],
)

this command works!!!
bazel run apps/carter/carter_delivery:carter_delivery_flatsim