Open
Description
Configuration requires to add the OpenSSL path to the Path variable:
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY) (found version "1.1.1q")
I added it. Configuration works without problems:
cmake -G "MinGW Makefiles" --fresh -S . -B dist -DCMAKE_INSTALL_PREFIX=E:/libs/socket.io-client-cpp-3.1.0-prefix
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 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.
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Qt/Tools/mingw1120_64/bin/gcc.exe - 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: C:/Qt/Tools/mingw1120_64/bin/c++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- not define build type, set to release
-- Found OpenSSL: C:/Qt/Tools/OpenSSL-1.1.1j/Win_x64/bin/ssl_1.1/x86_64/libcrypto.a (found version "1.1.1u")
-- Configuring done (3.6s)
-- Generating done (0.1s)
-- Build files have been written to: E:/libs/socket.io-client-cpp-3.1.0/dist
But when I try to build I have errors:
cmake --build dist -j4
[ 10%] Building CXX object CMakeFiles/sioclient_tls.dir/src/sio_client.cpp.obj
[ 20%] Building CXX object CMakeFiles/sioclient.dir/src/sio_client.cpp.obj
[ 30%] Building CXX object CMakeFiles/sioclient.dir/src/sio_socket.cpp.obj
[ 40%] Building CXX object CMakeFiles/sioclient_tls.dir/src/sio_socket.cpp.obj
In file included from In file included from ent-cpp-3.1.0\src\sio_client.cpp:8 : sio_client_impl.h:14:10: 14 | #include websocketpp/client.hpp: No such file or directory
14 | #include |
| ^~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
ccoommppiillaattiioonn tteerrmmiinnaatteedd..
mingw32-make.exe[2]: *** [CMakeFiles\sioclient.dir\build.make:76: CMakeFiles/sioclient.dir/src/sio_client.cpp.obj] Error 1
mingw32-make.exe[2]: *** Waiting for unfinished jobs....
mingw32-make.exe[2]: *** [CMakeFiles\sioclient_tls.dir\build.make:76: CMakeFiles/sioclient_tls.dir/src/sio_client.cpp.obj] Error 1
mingw32-make.exe[2]: *** Waiting for unfinished jobs....
[ 50%] Building CXX object CMakeFiles/sioclient_tls.dir/src/internal/sio_client_impl.cpp.obj
In file included from E:\libs\socket.io-client-cpp-3.1.0\src\internal\sio_client_impl.cpp:9:
E:\libs\socket.io-client-cpp-3.1.0\src\internal\sio_client_impl.h:14:10: fatal error: websocketpp/client.hpp: No such file or directory
14 | #include <websocketpp/client.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
mingw32-make.exe[2]: *** [CMakeFiles\sioclient_tls.dir\build.make:106: CMakeFiles/sioclient_tls.dir/src/internal/sio_client_impl.cpp.obj] Error 1
In file included from In file included from ent-cpp-3.1.0\src\sio_socket.cpp:3 :
E:\libs\socket.io-client-cpp-3.1.0\src\internal/sio_client_impl.h:14:10:E:\libs\socket.io-client-cpp-3.1.0\src\internal/sio_client_impl.h:14:10: fatal error: fatal error: websocketpp/client.hpp: No such file or directory
14 | #include websocketpp/client.hpp: No such file or directory
14 | #include | ^~~~~~~~~~~~~~~~~~~~~~~~
com lat
| ion t inat^~~~~~~~~~~~~~~~~~~~~~~~e .
compilation terminated.
mingw32-make.exe[2]: *** [CMakeFiles\sioclient_tls.dir\build.make:91: CMakeFiles/sioclient_tls.dir/src/sio_socket.cpp.obj] Error 1
mingw32-make.exe[2]: *** [CMakeFiles\sioclient.dir\build.make:91: CMakeFiles/sioclient.dir/src/sio_socket.cpp.obj] Error 1
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:110: CMakeFiles/sioclient_tls.dir/all] Error 2
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:84: CMakeFiles/sioclient.dir/all] Error 2
mingw32-make.exe: *** [Makefile:135: all] Error 2
Metadata
Metadata
Assignees
Labels
No labels