'gRPC fails to find its own third-party source

I'm trying to use cmake instead of bazel to build gRPC。 However, the following ERROR messages received:


 CMake Error at CMakeLists.txt:1055 (add_library):
   Cannot find source file:

     third_party/address_sorting/address_sorting.c

   Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
   .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc

 CMake Error at CMakeLists.txt:3949 (add_library):
   Cannot find source file:

     third_party/upb/third_party/utf8_range/naive.c

   Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
   .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc

 CMake Error at CMakeLists.txt:1055 (add_library):
   No SOURCES given to target: address_sorting

 CMake Error at CMakeLists.txt:3949 (add_library):
   No SOURCES given to target: upb

However, clearly, both files exist:

➜  grpc git:(master) ✗ ll third_party/upb/third_party/utf8_range/naive.c
-rwxrwxrwx 1 lvision lvision 3.9K Mar  8 13:34 third_party/upb/third_party/utf8_range/naive.c
➜  grpc git:(master) ✗ ll third_party/address_sorting/address_sorting.c
-rwxrwxrwx 1 lvision lvision 14K Mar  8 13:34 third_party/address_sorting/address_sorting.c

Any suggestions?



Solution 1:[1]

Sorry. Problem seems to be solved?? I actually build it out from source by

mkdir build
cd build

According to the official doc gRPC C++ - Building from source, this time, I tried

mkdir -p cmake/build
cd cmake/build

this seems to be okay... This doesn't seem to make sense. But, anyway, it's built now...

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Clément Jean