Meanwhile I've resolved all problems on my own and successfully built the "helloworld" example program for C++. So there is no need to reply to my inquiries.
Best Regards Claus Volko Am Mo., 15. Apr. 2024 um 06:57 Uhr schrieb Claus Volko <[email protected]>: > I temporarily removed the references to the libraries related to OpenSSL > from the .vcxproj files. Now I get this error: > > << > c:\Projects\levasoft\grpc\examples\cpp\helloworld\cmake\build>cmake build . > -- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045. > -- Using protobuf 26.1.0 > -- Could NOT find re2 (missing: re2_DIR) > -- Using gRPC 1.64.0-dev > -- Configuring done (0.5s) > CMake Error at C:/Projects/levasoft/grpc/cmake/build/gRPCTargets.cmake:79 > (set_target_properties): > The link interface of target "gRPC::grpc" contains: > > re2::re2 > > but the target was not found. Possible reasons include: > > * There is a typo in the target name. > * A find_package call is missing for an IMPORTED target. > * An ALIAS target is missing. > > Call Stack (most recent call first): > C:/Projects/levasoft/grpc/cmake/build/gRPCConfig.cmake:18 (include) > C:/Projects/levasoft/grpc/examples/cpp/cmake/common.cmake:113 > (find_package) > CMakeLists.txt:163 (include) > > > -- Generating done (0.8s) > CMake Generate step failed. Build files cannot be regenerated correctly. > >> > > What can I do about it? > > Am Fr., 12. Apr. 2024 um 20:53 Uhr schrieb Claus Volko <[email protected] > >: > >> I solved the problem by using this command: >> >> cmake -DCMAKE_BUILD_TYPE=Release -DgRPC_INSTALL=ON -DgRPC_BUILD_TESTS=OFF >> -DgRPC_CARES_PROVIDER=module -DgRPC_ABSL_PROVIDER=module >> -DgRPC_PROTOBUF_PROVIDER=module -DgRPC_RE2_PROVIDER=module >> -DgRPC_SSL_PROVIDER=module -DgRPC_ZLIB_PROVIDER=module ../.. >> >> However, now I have the problem that when I try to build the example >> program "helloworld" for cpp, libraries related to OpenSSL are missing. I >> installed OpenSSL on my machine and the package does not contain a file >> named SSL.lib, it only contains a file named libssl.lib. The same goes for >> crypto.lib. Where can I get these files? >> >> Best Regards >> Claus Volko >> On Friday, April 12, 2024 at 6:51:24 AM UTC+2 Claus Volko wrote: >> >>> I am using Windows 10. >>> >>> When I am following the steps described at >>> https://github.com/grpc/grpc/blob/master/BUILDING.md#build-from-source >>> and execute the code in >>> https://github.com/grpc/grpc/blob/master/test/distrib/cpp/run_distrib_test_cmake.sh, >>> I run into a problem related to absl. >>> >>> When I execute this code: >>> >>> mkdir "cmake/build" >>> cd "cmake/build" >>> cmake -DCMAKE_BUILD_TYPE=Release -DgRPC_INSTALL=ON >>> -DgRPC_BUILD_TESTS=OFF -DgRPC_CARES_PROVIDER=package >>> -DgRPC_ABSL_PROVIDER=package -DgRPC_PROTOBUF_PROVIDER=package >>> -DgRPC_RE2_PROVIDER=package -DgRPC_SSL_PROVIDER=package >>> -DgRPC_ZLIB_PROVIDER=package ../.. >>> cmake --build . >>> >>> I get the following error message: >>> >>> << >>> -- Selecting Windows SDK version 10.0.22621.0 to target Windows >>> 10.0.19045. >>> CMake Error at cmake/abseil-cpp.cmake:38 (find_package): >>> Could not find a package configuration file provided by "absl" with >>> any of >>> the following names: >>> >>> abslConfig.cmake >>> absl-config.cmake >>> >>> Add the installation prefix of "absl" to CMAKE_PREFIX_PATH or set >>> "absl_DIR" to a directory containing one of the above files. If "absl" >>> provides a separate development package or SDK, be sure it has been >>> installed. >>> Call Stack (most recent call first): >>> CMakeLists.txt:335 (include) >>> >>> >>> -- Configuring incomplete, errors occurred! >>> >> >>> >>> What can I do about that? >>> >>> Best Regards >>> Claus Volko >>> >> -- >> 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/03cc1728-68fa-4182-8a69-1f75febcf49fn%40googlegroups.com >> <https://groups.google.com/d/msgid/grpc-io/03cc1728-68fa-4182-8a69-1f75febcf49fn%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > > > -- > Dipl.-Ing. Dr. Claus D. Volko, BSc > http://www.cdvolko.net/ > > > > -- Dipl.-Ing. Dr. Claus D. Volko, BSc http://www.cdvolko.net/ -- 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/CAGEeFARwE%3DMDRYpUWDFYT3ACW%3D4_YtZJ7e24hNhP9L9z%2BcD9Pw%40mail.gmail.com.
