set(TENSORFLOW_INCLUDES ${PROJECT_SOURCE_DIR}/lib/tensorflow ${PROJECT_SOURCE_DIR}/lib/tensorflow/include ${PROJECT_SOURCE_DIR}/lib/tensorflow/third_party/proto ${PROJECT_SOURCE_DIR}/lib/tensorflow/third_party/protobuf-host/include ${PROJECT_SOURCE_DIR}/lib/tensorflow/third_party/eigen ${PROJECT_SOURCE_DIR}/lib/tensorflow/third_party/nsync/public ${PROJECT_SOURCE_DIR}/lib/tensorflow/third_party/absl ) set(TENSORFLOW_LIBS ${PROJECT_SOURCE_DIR}/lib/tensorflow/lib/libtensorflow-core.a ${PROJECT_SOURCE_DIR}/lib/tensorflow/third_party/protobuf-host/lib/libprotobuf.a ${PROJECT_SOURCE_DIR}/lib/tensorflow/third_party/nsync/builds/default.linux.c++11/nsync.a pthread m z dl )
...
If
undefined reference to tensorflow::Status::ToString() const
issue arise, try to build you project with
-D_GLIBCXX_USE_CXX11_ABI=0 which will force GCC to use the
old ABI version or try to use
-D_GLIBCXX_USE_CXX11_ABI=1.
This static library will not contain: * Python or
other language bindings * GPU support