Skip to main content

Questions tagged [bazel]

Bazel is a build tool that builds code quickly and reliably. It is used to build the majority of Google's software, and thus it has been designed to handle build problems present in Google's development.

bazel
0 votes
1 answer
16 views

Bazel build tflite-micro: Install third-party packages to build my application

I am currently trying to understand how to initialize third-party software in tflite-micro: https://github.com/tensorflow/tflite-micro/tree/main/third_party I installed the correct bazel version: sudo ...
binaryBigInt's user avatar
  • 1,660
0 votes
1 answer
44 views

How to add a Python package from Git a dependency in Bazel

I'm trying to set up a build for a Python project in Bazel. One of the dependencies (nvdiffrast, to be exact) is a Python package, that is not in PyPi. I usually install it directly from Git (pip ...
zlenyk's user avatar
  • 982
0 votes
0 answers
17 views

In Bazel, how to set the "parse_parallelism" flag in LcovMerger

I would like to set the "parse_parallelism" flag I found in the LcovMerger code here: https://github.com/bazelbuild/bazel/blob/master/tools/test/CoverageOutputGenerator/java/com/google/...
gramm's user avatar
  • 18.8k
0 votes
1 answer
21 views

How to add overrides in "MODULE.tools" file in Bazel?

I want to use a local buildozer Bazel Module while building Bazel from source. In MODULES.bazel file, I could override the bazel_dep by using local_path_override similar to remoteapis here. However ...
NamrataB's user avatar
  • 305
0 votes
2 answers
31 views

Tensorflow lite build fails on windows because of symlink

I'm trying to build tensorflow lite 2.16.2 (c++) for windows 10 and I'm getting this error when I run this command bazel build -c opt //tensorflow/lite:tensorflowlite I have installed msys2, added to ...
Turgut's user avatar
  • 719
1 vote
1 answer
54 views

Parameter to use fallback must be a directory, not a file

This line: use OpenSSL::fallback "$FindBin::Bin/external/perl/MODULES.txt"; in Configure in openssl fails when I am running it from a bazel rule. I am using https://github.com/bazelbuild/...
Andrew Katson's user avatar
0 votes
0 answers
22 views

How do I set a token for maven_install rule in bazel?

I'm trying to download a maven artifact using bazel with maven_install. Artifactory requires a token which I have and confirmed it works via: curl -vvv --oauth2-bearer token url. I can see the ...
gph's user avatar
  • 1,218
0 votes
1 answer
22 views

How to set the protoc path for bazel proto_library rules?

I'm using a company repo that has our standard protobuffers in it. It does not include any build information and I can't modify the repo (though I'm going to inquire about that). I have the ...
gph's user avatar
  • 1,218
0 votes
1 answer
26 views

How do I pass arguments to Bazel java wrapper?

I’m using Bazel to build JanusGraph. For Janusgraph to find all the config files it needs to have them on the classpath. It finds the files via File class but that can’t read from a jar. Basel docs ...
gph's user avatar
  • 1,218
0 votes
1 answer
47 views

How do I provide a py_binary's runfiles to a C toolchain in Bazel

I am trying to write a compiler, well, a Python wrapper for Clang that does some platform specific stuff in Bazel. I have created a MRE where I can reproduce my problem here: https://github.com/...
mallwright's user avatar
  • 1,927
0 votes
1 answer
45 views

libwebp Undefined symbols for architecture arm64: _SharpYuvConvert

Trying to compile the go-webp package using Bazel. This involves compiling libwebp from sources. Here's how I'm retrieving libwebp's sources: # WORKSPACE git_repository( name = "libwebp",...
Victor's user avatar
  • 14.5k
0 votes
1 answer
42 views

Bazel install python libraries

I am new to Bazel and I followed the documentation to install requirements using requirements.txt and Workspace file. This is my workspace file ... pip_parse( name = "pip_dependency_1", ...
CS Diary's user avatar
1 vote
1 answer
45 views

Bazel make variables substitution

I read the following bazel manual about make variables (or custom variables): https://bazel.build/reference/be/make-variables#custom_variables "Attributes marked as "Subject to 'Make ...
Sergey Vlasov's user avatar
0 votes
1 answer
26 views

How to use a whole directory in a test/binary built with bazel

We have a bazel_binary which iterates through all the subdirectories of a fixed directory, and parses the .json files in them, as follows. We want to use a directory iterator because this directory ...
Curious's user avatar
  • 2,901
0 votes
0 answers
20 views

Choose what build tool to import from in IDEA

I have a project that has a dual-build system: Gradle, and Bazel (for a subset of modules). After I installed the IntelliJ Bazel plugin the project is automatically imported via Bazel and misses most ...
Iulian Dragos's user avatar

15 30 50 per page
1
2 3 4 5
227