GithubHelp home page GithubHelp logo

Comments (6)

apachexc avatar apachexc commented on June 4, 2024

make srpc 报错

from srpc.

holmes1412 avatar holmes1412 commented on June 4, 2024

你好,可以看看是否有/root/srpc/third_party/snappy/cmake/SnappyConfig.cmake.in这个文件?
另外可以提供下cmake的版本号么?

from srpc.

apachexc avatar apachexc commented on June 4, 2024

image

cmake3 version 3.17.5

from srpc.

holmes1412 avatar holmes1412 commented on June 4, 2024

你好,这里只是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.

apachexc avatar apachexc commented on June 4, 2024

[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.

holmes1412 avatar holmes1412 commented on June 4, 2024

这个看起来是没有安装protoc~ protobuf和protoc都需要自行安装,一般安装protobuf的时候都会一起安装,可以直接执行一下protoc看看是否有?

from srpc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.