ynqa / faiss-server Goto Github PK
View Code? Open in Web Editor NEWfaiss serving :)
License: MIT License
faiss serving :)
License: MIT License
I can't make
:
/root/faiss-server/src/protobuf/faiss.pb.h:17:2: error: #error This file was generated by an older version of protoc which is
#error This file was generated by an older version of protoc which is
^~~~~
/root/faiss-server/src/protobuf/faiss.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please
#error incompatible with your Protocol Buffer headers. Please
^~~~~
/root/faiss-server/src/protobuf/faiss.pb.h:19:2: error: #error regenerate this file with a newer version of protoc.
#error regenerate this file with a newer version of protoc.
^~~~~
In file included from /root/faiss-server/src/protobuf/faiss.grpc.pb.h:7:0,
from /root/faiss-server/src/main.cpp:6:
/root/faiss-server/src/protobuf/faiss.pb.h:27:10: fatal error: google/protobuf/inlined_string_field.h: No such file or directory
#include <google/protobuf/inlined_string_field.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/faiss_server.dir/build.make:75: recipe for target 'CMakeFiles/faiss_server.dir/main.o' failed
make[5]: *** [CMakeFiles/faiss_server.dir/main.o] Error 1
CMakeFiles/Makefile2:82: recipe for target 'CMakeFiles/faiss_server.dir/all' failed
make[4]: *** [CMakeFiles/faiss_server.dir/all] Error 2
Makefile:90: recipe for target 'all' failed
make[3]: *** [all] Error 2
CMakeFiles/faiss-server.dir/build.make:85: recipe for target 'faiss-server/src/faiss-server-stamp/faiss-server-build' failed
make[2]: *** [faiss-server/src/faiss-server-stamp/faiss-server-build] Error 2
CMakeFiles/Makefile2:100: recipe for target 'CMakeFiles/faiss-server.dir/all' failed
make[1]: *** [CMakeFiles/faiss-server.dir/all] Error 2
Makefile:90: recipe for target 'all' failed
make: *** [all] Error 2
I see you are using a custom message type as the request type to:
message HealthCheckRequest {};
rpc HealthCheck (HealthCheckRequest) returns (HealthCheckResponse);
Assuming you never actually a need to add parms to this, you can use the Google Empty message type:
https://github.com/google/protobuf/blob/master/src/google/protobuf/empty.proto
-- 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/bin/cmake/share/cmake-3.11/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find Protobuf (missing: Protobuf_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/bin/cmake/share/cmake-3.11/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/usr/bin/cmake/share/cmake-3.11/Modules/FindProtobuf.cmake:543 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:6 (find_package)
Microsoft Windows [Version 10.0.20251.1]
(c) 2020 Microsoft Corporation. All rights reserved.
C:\Users\polyt>pushd z:\repos
z:\repos>git clone http://github.com/ynqa/faiss-server.git
Cloning into 'faiss-server'...
warning: redirecting to https://github.com/ynqa/faiss-server.git/
remote: Enumerating objects: 284, done.
remote: Total 284 (delta 0), reused 0 (delta 0), pack-reused 284 eceiving objects: 79%
Receiving objects: 100% (284/284), 65.09 KiB | 1.42 MiB/s, done.
Resolving deltas: 100% (140/140), done.
z:\repos>cd faiss-server
z:\repos\faiss-server>docker build -t faiss-server .
..........
[ 95%] Performing configure step for 'faiss-server'
loading initial cache file /builder/build/faiss-server/tmp/faiss-server-cache-.cmake
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- 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/bin/cmake/share/cmake-3.11/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find Protobuf (missing: Protobuf_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/bin/cmake/share/cmake-3.11/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/usr/bin/cmake/share/cmake-3.11/Modules/FindProtobuf.cmake:543 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:6 (find_package)
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.11)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred!
See also "/builder/build/bin/CMakeFiles/CMakeOutput.log".
See also "/builder/build/bin/CMakeFiles/CMakeError.log".
CMakeFiles/faiss-server.dir/build.make:110: recipe for target 'faiss-server/src/faiss-server-stamp/faiss-server-configure' failed
CMakeFiles/Makefile2:71: recipe for target 'CMakeFiles/faiss-server.dir/all' failed
make[2]: *** [faiss-server/src/faiss-server-stamp/faiss-server-configure] Error 1
make[1]: *** [CMakeFiles/faiss-server.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
The command '/bin/sh -c make' returned a non-zero code: 2
@ynqa
I get this error when I try to run the cmake command and then the make -j command. When I look at the Build folder, the relevant file appears under protobuf/include.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.