Open
Description
I am using WSL Ubuntu 24.04.2 LTS on Windows 11.
I followed the "With CMake" installation instructions as described here: https://github.com/socketio/socket.io-client-cpp/blob/da779141a7379cc30c870d48295033bc16a23c66/INSTALL.md#with-cmake
I am on commit da77914
I try to build the examples/Console
example using cmake. It is telling me examples/Console/sioclientConfig.cmake.in
is missing.
paul@DESKTOP-E3P2CL2:~/Programming/generals.io/socket.io-client-cpp/examples/Console$ cmake --version
cmake version 3.28.3
CMake suite maintained and supported by Kitware (kitware.com/cmake).
paul@DESKTOP-E3P2CL2:~/Programming/generals.io/socket.io-client-cpp/examples/Console$ mkdir build
paul@DESKTOP-E3P2CL2:~/Programming/generals.io/socket.io-client-cpp/examples/Console$ cd build/
paul@DESKTOP-E3P2CL2:~/Programming/generals.io/socket.io-client-cpp/examples/Console/build$ cmake ..
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as
project(ProjectName)
near the top of the file, but after cmake_minimum_required().
CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) in CMakeLists.txt:
cmake_minimum_required() should be called prior to this top-level project()
call. Please see the cmake-commands(7) manual for usage documentation of
both commands.
This warning is for project developers. Use -Wno-dev to suppress it.
-- The C compiler identification is GNU 13.3.0
-- The CXX compiler identification is GNU 13.3.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
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.
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Setting build type to 'Release' as none was specified.
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR)
CMake Error: File /home/paul/Programming/generals.io/socket.io-client-cpp/examples/Console/sioclientConfig.cmake.in does not exist.
CMake Error at /usr/share/cmake-3.28/Modules/CMakePackageConfigHelpers.cmake:344 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
/home/paul/Programming/generals.io/socket.io-client-cpp/CMakeLists.txt:155 (configure_package_config_file)
CMakeLists.txt:3 (include)
CMake Error at /home/paul/Programming/generals.io/socket.io-client-cpp/CMakeLists.txt:176 (add_subdirectory):
add_subdirectory given source "test" which is not an existing directory.
Call Stack (most recent call first):
CMakeLists.txt:3 (include)
--
-- Configuring incomplete, errors occurred!
I also tried running cmake directly in the examples/Console
directory (without cd build
) and the same thing happens.
Metadata
Metadata
Assignees
Labels
No labels