Skip to content

bazel failed to build, not visible from target #21

@ahsteven

Description

@ahsteven

I am new to bazel and am unabe to get it to build.

I added package(default_visibility = ["//visibility:public"]) to the bottom of the build file in the lab folder

I have tried building with the osmesa option as well as the glx option
Here is the output error when I run the command from the unreal folder.

teves@teves:~/RL_Codes/lab/unreal$ bazel run //unreal:train --define headless=glx
ERROR: /home/teves/RL_Codes/lab/unreal/BUILD:11:1: Target '//:deepmind_lab.so' is not visible from target '//unreal:train'. Check the visibility declaration of the former target if you think the dependency is legitimate
ERROR: Analysis of target '//unreal:train' failed; build aborted: Analysis of target '//unreal:train' failed; build aborted
INFO: Elapsed time: 0.593s
FAILED: Build did NOT complete successfully (0 packages loaded)
ERROR: Build failed. Not running target

I am in a conda environment.

What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions