I'm trying to use tensorflow as a external library in my C++ application (mainly following this tutorial). What I done so far:
- I have cloned the tensorflow reporitory (let's say, that the repo root dir is
$TENSORFLOW
) - Run
/.configure
(which all settings default, so no CUDA, no OpenCL etc.). - Build shared library with
bazel build -c /opt //tensorflow:libtensorflow_cc.so
(build completed successfully) Now I'm trying to
#include "tensorflow/core/public/session.h"
. But after including it (and adding$TENSORFLOW
and$TENSORFLOW/bazel-genfiles
to include path), I'm receiving error:$TENSORFLOW/tensorflow/third_party/eigen3/unsupported/Eigen/CXX11/Tensor:1:42: fatal error: unsupported/Eigen/CXX11/Tensor: No such file or directory
There is a github issue created for similar problem, but it's marked as closed without any solution provided. Also I tried with master
branch as well as v.1.4.0
release.
Do you happen to know, what could cause this kind of problem and how to deal with it?