However, the error shows the directory third_party/cares/cares does not contains CMakeLists.txt file, and I searched the grpc github, there is no such file as well.
*CMake Error at cmake/cares.cmake:25 (add_subdirectory):* * The source directory* * /home/yh/tools/grpc/third_party/cares/cares* * does not contain a CMakeLists.txt file.* *Call Stack (most recent call first):* * CMakeLists.txt:254 (include)* it seems not to related to openssl, any other idea? Thanks. 在2021年8月4日星期三 UTC+8 上午11:18:01<[email protected]> 写道: > This looks like you didn't close recursively and/or installed openssl's > development files on your system. > > On Wed, Jul 28, 2021 at 7:56 PM 欧阳昊 <[email protected]> wrote: > >> Hi, when I execute the command build and locally install gRPC, Protocol >> Buffers, and Abseil: >> $ cd grpc >> $ mkdir -p cmake/build >> $ pushd cmake/build >> $ cmake -DgRPC_INSTALL=ON \ -DgRPC_BUILD_TESTS=OFF \ >> -DCMAKE_INSTALL_PREFIX=$MY_INSTALL_DIR >> \ ../.. >> >> I got the following error: >> >> -- The C compiler identification is GNU 9.3.1 >> -- The CXX compiler identification is GNU 9.3.1 >> -- Detecting C compiler ABI info >> -- Detecting C compiler ABI info - done >> -- Check for working C compiler: /opt/rh/devtoolset-9/root/usr/bin/cc - >> skipped >> -- Detecting C compile features >> -- Detecting C compile features - done >> -- Detecting CXX compiler ABI info >> -- Detecting CXX compiler ABI info - done >> -- Check for working CXX compiler: /opt/rh/devtoolset-9/root/usr/bin/c++ >> - skipped >> -- Detecting CXX compile features >> -- Detecting CXX compile features - done >> -- Looking for pthread.h >> -- Looking for pthread.h - found >> -- Performing Test CMAKE_HAVE_LIBC_PTHREAD >> -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed >> -- 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 cmake/cares.cmake:25 (add_subdirectory): >> The source directory >> >> /home/yh/tools/grpc/third_party/cares/cares >> >> does not contain a CMakeLists.txt file. >> Call Stack (most recent call first): >> CMakeLists.txt:254 (include) >> >> >> -- >> -- 3.17.3.0 >> -- Performing Test protobuf_HAVE_BUILTIN_ATOMICS >> -- Performing Test protobuf_HAVE_BUILTIN_ATOMICS - Success >> -- Check if compiler accepts -pthread >> -- Check if compiler accepts -pthread - yes >> CMake Warning at cmake/ssl.cmake:55 (message): >> gRPC_SSL_PROVIDER is "module" but BORINGSSL_ROOT_DIR is wrong >> Call Stack (most recent call first): >> CMakeLists.txt:257 (include) >> >> >> CMake Deprecation Warning at third_party/zlib/CMakeLists.txt:1 >> (cmake_minimum_required): >> Compatibility with CMake < 2.8.12 will be removed from a future version >> of >> CMake. >> >> Update the VERSION argument <min> value or use a ...<max> suffix to tell >> CMake that the project does not need compatibility with older versions. >> >> >> -- Looking for sys/types.h >> -- Looking for sys/types.h - found >> -- Looking for stdint.h >> -- Looking for stdint.h - found >> -- Looking for stddef.h >> -- Looking for stddef.h - found >> -- Check size of off64_t >> -- Check size of off64_t - done >> -- Looking for fseeko >> -- Looking for fseeko - found >> -- Looking for unistd.h >> -- Looking for unistd.h - found >> -- Configuring incomplete, errors occurred! >> See also "/home/yh/tools/grpc/cmake/build/CMakeFiles/CMakeOutput.log". >> See also "/home/yh/tools/grpc/cmake/build/CMakeFiles/CMakeError.log". >> >> Any suggestion would be welcomed, thanks >> >> -- >> You received this message because you are subscribed to the Google Groups >> "grpc.io" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/grpc-io/7d9a16fe-2418-4206-8e83-cb35a1acac0cn%40googlegroups.com >> >> <https://groups.google.com/d/msgid/grpc-io/7d9a16fe-2418-4206-8e83-cb35a1acac0cn%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/7d245e11-2507-4bd3-8c0c-86623f916133n%40googlegroups.com.
