#1740·cpprestsdk

它不基于 Ubuntu 22.10

作者: eugeniomiro创建于 2023年1月27日更新于 2024年9月10日

eugeniomiro@OPTIMUSPRIME:/repos/cpprestsdk$ mkdir build eugeniomiro@OPTIMUSPRIME:/repos/cpprestsdk$ cd build eugeniomiro@OPTIMUSPRIME:/repos/cpprestsdk/build$ cmake -G "Unix Makefiles" .. -DCMAKE_BUILD_TYPE=Debug -- The C compiler identification is GNU 12.2.0 -- The CXX compiler identification is GNU 12.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /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: /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 - Success -- Found Threads: TRUE -- Looking for include file xlocale.h -- Looking for include file xlocale.h - not found -- Setting gcc options -- websocketpp not found, using the embedded version -- Found Boost: /usr/local/lib/cmake/Boost-1.78.0/BoostConfig.cmake (found version "1.78.0") found components: random system thread filesystem chrono atomic date_time regex -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) Reason given by package: The command "/mnt/c/Strawberry/perl/bin/pkg-config" --version failed with output: stderr: result: No such file or directory -- Checking for one of the modules 'openssl' -- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found suitable version "3.0.5", minimum required is "1.0.0") -- Performing Test _SSL_LEAK_SUPPRESS_AVAILABLE -- Performing Test _SSL_LEAK_SUPPRESS_AVAILABLE - Failed -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") -- Added test library httpclient_test -- Added test library httplistener_test -- Added test library json_test -- Added test library pplx_test -- Added test library streams_test -- Added test library uri_test -- Added test library utils_test -- Added test library websocketsclient_test -- Configuring done -- Generating done -- Build files have been written to: /home/eugeniomiro/repos/cpprestsdk/build eugeniomiro@OPTIMUSPRIME:/repos/cpprestsdk/build$ make

内容来源: microsoft/cpprestsdk