Comments (6)
make srpc 报错
from srpc.
你好,可以看看是否有/root/srpc/third_party/snappy/cmake/SnappyConfig.cmake.in这个文件?
另外可以提供下cmake的版本号么?
from srpc.
cmake3 version 3.17.5
from srpc.
你好,这里只是warning的信息,因为你系统默认没有安装的话,这里find_package(snappy)找不到的话,就会从third_party/snappy/cmake里找,后面会继续编译的,如下:
CMake Warning at CMakeLists.txt:43 (find_package):
By not providing "FindSnappy.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Snappy", but
CMake did not find one.
Could not find a package configuration file provided by "Snappy" with any
of the following names:
SnappyConfig.cmake
snappy-config.cmake
Add the installation prefix of "Snappy" to CMAKE_PREFIX_PATH or set
"Snappy_DIR" to a directory containing one of the above files. If "Snappy"
provides a separate development package or SDK, be sure it has been
installed.
-- Looking for C++ include snappy.h
-- Looking for C++ include snappy.h - found
Snappy third_party FOUND. Use for source code dependencies.
-- Looking for C++ include workflow/Workflow.h
-- Looking for C++ include workflow/Workflow.h - found
Workflow third_party FOUND. Use for source code dependencies.
-- Found OpenSSL: /usr/lib64/libcrypto.so (found version "1.1.1k")
-- Found Protobuf: /usr/local/lib/libprotobuf.so;-lpthread (found suitable version "3.12.0", minimum required is "3.5.0")
-- Configuring done
-- Generating done
-- Build files have been written to: /root/srpc/srpc_december/build.cmake
make -C build.cmake -f Makefile
make[1]: Entering directory '/root/srpc/srpc_december/build.cmake'
make[2]: Entering directory '/root/srpc/srpc_december/build.cmake'
make[3]: Entering directory '/root/srpc/srpc_december/build.cmake'
make[3]: Leaving directory '/root/srpc/srpc_december/build.cmake'
make[3]: Entering directory '/root/srpc/srpc_december/build.cmake'
make[3]: Leaving directory '/root/srpc/srpc_december/build.cmake'
[ 0%] Built target LINK_HEADERS
make[3]: Entering directory '/root/srpc/srpc_december/build.cmake'
make[3]: Leaving directory '/root/srpc/srpc_december/build.cmake'
make[3]: Entering directory '/root/srpc/srpc_december/build.cmake'
[ 1%] Building CXX object src/http/CMakeFiles/http.dir/http_module.cc.o
[ 3%] Building CXX object src/http/CMakeFiles/http.dir/http_task.cc.o
[ 5%] Building CXX object src/http/CMakeFiles/http.dir/http_client.cc.o
[ 7%] Building CXX object src/http/CMakeFiles/http.dir/http_server.cc.o
make[3]: Leaving directory '/root/srpc/srpc_december/build.cmake'
[ 7%] Built target http
make[3]: Entering directory '/root/srpc/srpc_december/build.cmake'
[ 9%] Running cpp protocol buffer compiler on proto/opentelemetry_trace.proto
如果你最终失败了,可以把最终的错误信息发一下~
from srpc.
[100%] Built target workflow-static
make[3]: Leaving directory /root/srpc/workflow/build.cmake' make[2]: Leaving directory
/root/srpc/workflow/build.cmake'
make[1]: Leaving directory `/root/srpc/workflow'
mkdir -p build.cmake
cd build.cmake && cmake3 /root/srpc
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- 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 lz4.h
-- Looking for lz4.h - found
Lz4 third_party FOUND. Use for source code dependencies.
CMake Warning at CMakeLists.txt:43 (find_package):
By not providing "FindSnappy.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Snappy", but
CMake did not find one.
Could not find a package configuration file provided by "Snappy" with any
of the following names:
SnappyConfig.cmake
snappy-config.cmake
Add the installation prefix of "Snappy" to CMAKE_PREFIX_PATH or set
"Snappy_DIR" to a directory containing one of the above files. If "Snappy"
provides a separate development package or SDK, be sure it has been
installed.
-- Looking for C++ include snappy.h
-- Looking for C++ include snappy.h - found
Snappy third_party FOUND. Use for source code dependencies.
-- Looking for C++ include workflow/Workflow.h
-- Looking for C++ include workflow/Workflow.h - not found
CMake Error at CMakeLists.txt:74 (message):
Protobuf compiler is missing!
-- Configuring incomplete, errors occurred!
See also "/root/srpc/build.cmake/CMakeFiles/CMakeOutput.log".
See also "/root/srpc/build.cmake/CMakeFiles/CMakeError.log".
make: *** [base] Error 1
from srpc.
这个看起来是没有安装protoc~ protobuf和protoc都需要自行安装,一般安装protobuf的时候都会一起安装,可以直接执行一下protoc
看看是否有?
from srpc.
Related Issues (20)
- client端访问status code 103 HOT 1
- vs找不到unistd.h文件 HOT 5
- 关于压缩的问题 HOT 2
- problem HOT 29
- New versions of GTest use C++14 HOT 8
- Have Conan package? HOT 1
- crt detected that the application wrote to memory after end of heap buffer HOT 4
- 🎉 srpc tools: simple generator for building Workflow and SRPC projects
- cross compile problem HOT 12
- compile problem HOT 14
- srpc_generator.exe无法使用 HOT 3
- does one service support multi function HOT 7
- Android compile problem HOT 20
- MacOS下链接找不到protobuf HOT 9
- srpc搭建http服务时, 回包如何通过JsonPrintOptions设置打印格式 HOT 4
- docs/wiki.md第二章图片有误 HOT 1
- Srpc无法正确生成官方hbase.thrift的srpc客户端 HOT 24
- Support in API testing tool linuxsuren/api-testing HOT 7
- srpc和workflow配合使用问题 HOT 19
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from srpc.