-
Notifications
You must be signed in to change notification settings - Fork 183
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
Add support for matching Protobuf install #246
Conversation
As I just touch tensorflow cpp, not sure how to resolve this error. Background: I have build with the master branch, then, switch to system-protobuf branch, then run it with
|
And do you have Protobuf installed in your system?
…On Tue, Nov 17, 2020 at 5:07 PM XiandongQI ***@***.***> wrote:
As I just touch tensorflow cpp, not sure how to resolve this error.
***@***.***:~/tensorflow_cc/tensorflow_cc/build$ cmake -DSYSTEM_PROTOBUF=ON ..
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find Protobuf (missing: Protobuf_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.10/Modules/FindProtobuf.cmake:543 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:58 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/tensorflow_cc/tensorflow_cc/build/CMakeFiles/CMakeOutput.log".
See also "/home/ubuntu/tensorflow_cc/tensorflow_cc/build/CMakeFiles/CMakeError.log".
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#246 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABN5KH2PZS2TS5TZJR5L5TDSQKNUBANCNFSM4TYN7RWQ>
.
|
maybe I just do some wrong operations that I donot realize. sorry to waste your time. the system protoc/Protobuf might be not applicable for tensorflow's need |
That is why I don't really like the idea of linking system protobuf. But this error is already when cmake calls |
Hi, just my two cents / experiences about that.
|
@xiandong79 @cweigel According to your suggestions, there is an option |
Hi @xiandong79, feel free to try this if it helps.
cmake -DINSTALL_PROTOBUF=ON ..
Relates to #219