【发布时间】:2018-11-15 01:59:59
【问题描述】:
我得到了 tensorflow 二进制文件(已经编译)
我已添加到 tensorflow 源:
tensorflow\core\user_ops\icp_op_kernel.cc - 包含:
https://github.com/tensorflow/models/blob/master/research/vid2depth/ops/icp_op_kernel.cc
tensorflow\core\user_ops\BUILD - 包含:
load("//tensorflow:tensorflow.bzl", "tf_custom_op_library")
tf_custom_op_library(
name = "icp_op_kernel.so",
srcs = ["icp_op_kernel.cc"],
)
我正在尝试构建:
bazel build --config opt //tensorflow/core/user_ops:icp_op_kernel.so
我得到:
tensorflow/core/user_ops/icp_op_kernel.cc(16): fatal error C1083: Cannot open include file: 'pcl/point_types.h': No such file or directory
因为 bazel 不知道 pcl 包含文件在哪里。 我已经安装了 pcl 并且包含目录在:
C:\Program Files\PCL 1.6.0\include\pcl-1.6
我如何告诉 bazel 也包含这个目录?
另外我可能需要在链接中添加C:\Program Files\PCL 1.6.0\lib,我该怎么做?
【问题讨论】:
标签: tensorflow bazel