Title: cmake fails for examples/Console: "examples/Console/sioclientConfig.cmake.in does not exist." · Issue #439 · socketio/socket.io-client-cpp · GitHub
Open Graph Title: cmake fails for examples/Console: "examples/Console/sioclientConfig.cmake.in does not exist." · Issue #439 · socketio/socket.io-client-cpp
X Title: cmake fails for examples/Console: "examples/Console/sioclientConfig.cmake.in does not exist." · Issue #439 · socketio/socket.io-client-cpp
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-cmak...
Open Graph 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/da779141a7379cc30c870...
X 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/da779141a73...
Opengraph URL: https://github.com/socketio/socket.io-client-cpp/issues/439
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"cmake fails for examples/Console: \"examples/Console/sioclientConfig.cmake.in does not exist.\"","articleBody":"I am using WSL Ubuntu 24.04.2 LTS on Windows 11.\n\nI followed the \"With CMake\" installation instructions as described here: https://github.com/socketio/socket.io-client-cpp/blob/da779141a7379cc30c870d48295033bc16a23c66/INSTALL.md#with-cmake\n\nI am on commit da779141a7379cc30c870d48295033bc16a23c66\n\nI try to build the `examples/Console` example using cmake. It is telling me `examples/Console/sioclientConfig.cmake.in` is missing.\n\n```\npaul@DESKTOP-E3P2CL2:~/Programming/generals.io/socket.io-client-cpp/examples/Console$ cmake --version\ncmake version 3.28.3\n\nCMake suite maintained and supported by Kitware (kitware.com/cmake).\npaul@DESKTOP-E3P2CL2:~/Programming/generals.io/socket.io-client-cpp/examples/Console$ mkdir build\npaul@DESKTOP-E3P2CL2:~/Programming/generals.io/socket.io-client-cpp/examples/Console$ cd build/\npaul@DESKTOP-E3P2CL2:~/Programming/generals.io/socket.io-client-cpp/examples/Console/build$ cmake ..\nCMake Warning (dev) in CMakeLists.txt:\n No project() command is present. The top-level CMakeLists.txt file must\n contain a literal, direct call to the project() command. Add a line of\n code such as\n\n project(ProjectName)\n\n near the top of the file, but after cmake_minimum_required().\n\n CMake is pretending there is a \"project(Project)\" command on the first\n line.\nThis warning is for project developers. Use -Wno-dev to suppress it.\n\nCMake Warning (dev) in CMakeLists.txt:\n cmake_minimum_required() should be called prior to this top-level project()\n call. Please see the cmake-commands(7) manual for usage documentation of\n both commands.\nThis warning is for project developers. Use -Wno-dev to suppress it.\n\n-- The C compiler identification is GNU 13.3.0\n-- The CXX compiler identification is GNU 13.3.0\n-- Detecting C compiler ABI info\n-- Detecting C compiler ABI info - done\n-- Check for working C compiler: /usr/bin/cc - skipped\n-- Detecting C compile features\n-- Detecting C compile features - done\n-- Detecting CXX compiler ABI info\n-- Detecting CXX compiler ABI info - done\n-- Check for working CXX compiler: /usr/bin/c++ - skipped\n-- Detecting CXX compile features\n-- Detecting CXX compile features - done\nCMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):\n Compatibility with CMake \u003c 3.5 will be removed from a future version of\n CMake.\n\n Update the VERSION argument \u003cmin\u003e value or use a ...\u003cmax\u003e suffix to tell\n CMake that the project does not need compatibility with older versions.\n\n\n-- Performing Test CMAKE_HAVE_LIBC_PTHREAD\n-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success\n-- Found Threads: TRUE\n-- Setting build type to 'Release' as none was specified.\n-- 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)\nCMake Error: File /home/paul/Programming/generals.io/socket.io-client-cpp/examples/Console/sioclientConfig.cmake.in does not exist.\nCMake Error at /usr/share/cmake-3.28/Modules/CMakePackageConfigHelpers.cmake:344 (configure_file):\n configure_file Problem configuring file\nCall Stack (most recent call first):\n /home/paul/Programming/generals.io/socket.io-client-cpp/CMakeLists.txt:155 (configure_package_config_file)\n CMakeLists.txt:3 (include)\n\n\nCMake Error at /home/paul/Programming/generals.io/socket.io-client-cpp/CMakeLists.txt:176 (add_subdirectory):\n add_subdirectory given source \"test\" which is not an existing directory.\nCall Stack (most recent call first):\n CMakeLists.txt:3 (include)\n\n\n--\n-- Configuring incomplete, errors occurred!\n```\n\nI also tried running cmake directly in the `examples/Console` directory (without `cd build`) and the same thing happens.","author":{"url":"https://github.com/Paul-Andre","@type":"Person","name":"Paul-Andre"},"datePublished":"2025-04-15T22:11:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/439/socket.io-client-cpp/issues/439"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fd1f20e3-4b25-a99e-36ac-77e30e5d6670 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A4F0:3E246C:A9B21:DD035:698D02D2 |
| html-safe-nonce | 8b40c78afabf0f7f9365590b51c701806c18f14c153ff6baec89a65769d6b8ba |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNEYwOjNFMjQ2QzpBOUIyMTpERDAzNTo2OThEMDJEMiIsInZpc2l0b3JfaWQiOiIxOTE3NjU2NDk2NjA4MTgyOTk0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9eb82ef6f018b1a97a7004674aff101634d927eb83dfeaa510950b36dc21342b |
| hovercard-subject-tag | issue:2997753549 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/socketio/socket.io-client-cpp/439/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4ed1f5172c63bcd111bff339bcfb2e66417b0b6936da2d312c22e248fce8413a/socketio/socket.io-client-cpp/issues/439 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4ed1f5172c63bcd111bff339bcfb2e66417b0b6936da2d312c22e248fce8413a/socketio/socket.io-client-cpp/issues/439 |
| og:image:alt | 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/da779141a7379cc30c870... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Paul-Andre |
| hostname | github.com |
| expected-hostname | github.com |
| None | f2da95634bce8a94cfa4123788169bfabdf845fd1d790fbaaaaab09dcfebdf28 |
| turbo-cache-control | no-preview |
| go-import | github.com/socketio/socket.io-client-cpp git https://github.com/socketio/socket.io-client-cpp.git |
| octolytics-dimension-user_id | 10566080 |
| octolytics-dimension-user_login | socketio |
| octolytics-dimension-repository_id | 33086039 |
| octolytics-dimension-repository_nwo | socketio/socket.io-client-cpp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 33086039 |
| octolytics-dimension-repository_network_root_nwo | socketio/socket.io-client-cpp |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c21843b18feba17d11efb1895a7db61e8672f2cf |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width