我想用 Bazel 构建 tensorflow,以使用 c++中的编译库。我在 cmd 中运行以下命令。
C:\Users\Furkan\Desktop\tensorflow-1.14.0>bazel build --config=opt
WARNING: Usage: bazel build <options> <targets>.
Invoke `bazel help build` for full description of usage and options.
Your request is correct, but requested an empty set of targets. Nothing will be built.
INFO: Build option --define has changed, discarding analysis cache.
INFO: Analyzed 0 targets (0 packages loaded, 0 targets configured).
INFO: Found 0 targets...
INFO: Elapsed time: 0.124s, Critical Path: 0.01s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action
之后他们在 tensorflow 中创建文件夹,但文件夹是空的。我做错了什么?
基底:0.25.2张量流:1.14.0
我猜你正在输入一个不完整的命令,你应该输入:
bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package
的
//tensorflow/tools/pip _ package:build _ pip _ package
是构建文件的位置,如果不包含它,bazel 不知道要构建什么。包括在你的命令中应该能解决这个问题。