-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make error: #1
Comments
In usr/local/include/tf, you have missed something. You need to use bazel to compile your tensorflow to get bazel-genfiles/. All you need are in this folder. |
Apple LLVM version 9.0.0 (clang-900.0.38) macos error |
I have finished compiling the tensorflow C++ source code ,using bazel . But when I try to build the project , the following errors are given: |
The error occurs when I try to build the project: |
Build successfully at last. |
@zy27 I met the same error Have you solved this problem? |
I get the error too, do you solve it ? @xiupingmath |
@hengshanji @zy27 @xiupingmath
What I did was to make install another local copy of Eigen 3.3.4, and included the following lines in the CMakeLists.txt file
Because I need both Eigen 3.3.0 and 3.3.4 versions in my source code, this is the only solution. |
@xt479910344 Have you solved this problem?I met this problem too.I will be very grateful if you could tell me how to solve the problem. |
g++ -std=c++11 -o ./bin/tfcpp_demo -I/usr/local/include/tf -I/usr/local/include/eigen3 -g -Wall -D_DEBUG -Wshadow -Wno-sign-compare -w -L/usr/local/lib
pkg-config --cflags --libs protobuf
-ltensorflow_cc ./src/main.cpp ./src/ann_model_loader.cppIn file included from ./src/main.cpp:9:0:
/usr/local/include/tf/tensorflow/core/public/session.h:22:60: 致命错误:tensorflow/core/framework/device_attributes.pb.h:没有那个文件或目录
#include "tensorflow/core/framework/device_attributes.pb.h"
^
编译中断。
In file included from ./src/model_loader_base.h:13:0,
from ./src/ann_model_loader.h:11,
from ./src/ann_model_loader.cpp:11:
/usr/local/include/tf/tensorflow/core/public/session.h:22:60: 致命错误:tensorflow/core/framework/device_attributes.pb.h:没有那个文件或目录
#include "tensorflow/core/framework/device_attributes.pb.h"
^
编译中断。
make: *** [tfcpp_demo] 错误 1
The text was updated successfully, but these errors were encountered: