You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\Users\Brend\Downloads\onemore\cppcoro\build>cmake .. -G "Ninja" -DCMAKE_INSTALL_PREFIX=C:\Users\Brend.local -DBUILD_SHARED_LIBS=ON -DCMAKE_CXX_COMPILER=cl.exe -DCMAKE_CXX_STANDARD=20
-- The CXX compiler identification is MSVC 19.40.33811.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test _CXX_COROUTINES_SUPPORTS_MS_FLAG
-- Performing Test _CXX_COROUTINES_SUPPORTS_MS_FLAG - Success
-- Performing Test _CXX_COROUTINES_SUPPORTS_MS_HEAPELIDE_FLAG
-- Performing Test _CXX_COROUTINES_SUPPORTS_MS_HEAPELIDE_FLAG - Success
-- Performing Test _CXX_COROUTINES_SUPPORTS_TS_FLAG
-- Performing Test _CXX_COROUTINES_SUPPORTS_TS_FLAG - Failed
-- Performing Test _CXX_COROUTINES_SUPPORTS_CORO_FLAG
-- Performing Test _CXX_COROUTINES_SUPPORTS_CORO_FLAG - Failed
-- Looking for C++ include coroutine
-- Looking for C++ include coroutine - found
-- Performing Test _CXX_COROUTINES_FINAL_HEADER_COMPILES
-- Performing Test _CXX_COROUTINES_FINAL_HEADER_COMPILES - Success
-- Performing Test CXX_COROUTINES_NO_AWAIT_NEEDED
-- Performing Test CXX_COROUTINES_NO_AWAIT_NEEDED - Success
-- Configuring done (4.6s)
-- Generating done (0.0s)
-- Build files have been written to: C:/Users/Brend/Downloads/onemore/cppcoro/build
C:\Users\Brend\Downloads\onemore\cppcoro\build>ninja
[34/38] Building CXX object lib\CMakeFiles\cppcoro.dir\socket.cpp.obj
C:\Users\Brend\Downloads\onemore\cppcoro\lib\socket.cpp(349): warning C4996: '_WSAPROTOCOL_INFOA::iAddressFamily': Use WSAPROTOCOL_INFOW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
C:\Users\Brend\Downloads\onemore\cppcoro\lib\socket.cpp(348): warning C4996: 'WSADuplicateSocketA': Use WSADuplicateSocketW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
C:\Users\Brend\Downloads\onemore\cppcoro\lib\socket.cpp(349): warning C4996: 'WSASocketA': Use WSASocketW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
[38/38] Linking CXX shared library lib\cppcoro.dll
C:\Users\Brend\Downloads\onemore\cppcoro\build>ninja test
[0/1] Running tests...Test project C:/Users/Brend/Downloads/onemore/cppcoro/build
No tests were found!!!
As you can see there is a ".dll" installed but not a ".lib"
When I try to use the library in a project I get this cmake error
-- Found nlohmann_json: C:/Users/Brend/vcpck/vcpkg/installed/x64-windows/share/nlohmann_json/nlohmann_jsonConfig.cmake (found version "3.11.3")
CMake Error at C:/Users/Brend/.local/lib/cmake/cppcoro/cppcoroTargets.cmake:86 (message):
The imported target "cppcoro::cppcoro" references the file
"C:/Users/Brend/.local/lib/cppcoro.lib"
but this file does not exist. Possible reasons include:
The file was deleted, renamed, or moved to another location.
An install or uninstall procedure did not complete successfully.
I was able to get this library to work once but now can not recreate how I did it.
Here is the full clone to install process in cmd
C:\Users\Brend>cd Downloads
C:\Users\Brend\Downloads>cd onemore
C:\Users\Brend\Downloads\onemore>git clone --recursive https://github.com/andreasbuhr/cppcoro.git
Cloning into 'cppcoro'...
remote: Enumerating objects: 3658, done.
remote: Counting objects: 100% (308/308), done.
remote: Compressing objects: 100% (131/131), done.
remote: Total 3658 (delta 165), reused 228 (delta 127), pack-reused 3350
Receiving objects: 100% (3658/3658), 1.42 MiB | 7.24 MiB/s, done.
Resolving deltas: 100% (2362/2362), done.
C:\Users\Brend\Downloads\onemore>cd cppcoro
C:\Users\Brend\Downloads\onemore\cppcoro>mkdir build
C:\Users\Brend\Downloads\onemore\cppcoro>cd build
C:\Users\Brend\Downloads\onemore\cppcoro\build>call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
** Visual Studio 2022 Developer Command Prompt v17.10.1
** Copyright (c) 2022 Microsoft Corporation
[vcvarsall.bat] Environment initialized for: 'x64'
C:\Users\Brend\Downloads\onemore\cppcoro\build>cmake .. -G "Ninja" -DCMAKE_INSTALL_PREFIX=C:\Users\Brend.local -DBUILD_SHARED_LIBS=ON -DCMAKE_CXX_COMPILER=cl.exe -DCMAKE_CXX_STANDARD=20
-- The CXX compiler identification is MSVC 19.40.33811.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test _CXX_COROUTINES_SUPPORTS_MS_FLAG
-- Performing Test _CXX_COROUTINES_SUPPORTS_MS_FLAG - Success
-- Performing Test _CXX_COROUTINES_SUPPORTS_MS_HEAPELIDE_FLAG
-- Performing Test _CXX_COROUTINES_SUPPORTS_MS_HEAPELIDE_FLAG - Success
-- Performing Test _CXX_COROUTINES_SUPPORTS_TS_FLAG
-- Performing Test _CXX_COROUTINES_SUPPORTS_TS_FLAG - Failed
-- Performing Test _CXX_COROUTINES_SUPPORTS_CORO_FLAG
-- Performing Test _CXX_COROUTINES_SUPPORTS_CORO_FLAG - Failed
-- Looking for C++ include coroutine
-- Looking for C++ include coroutine - found
-- Performing Test _CXX_COROUTINES_FINAL_HEADER_COMPILES
-- Performing Test _CXX_COROUTINES_FINAL_HEADER_COMPILES - Success
-- Performing Test CXX_COROUTINES_NO_AWAIT_NEEDED
-- Performing Test CXX_COROUTINES_NO_AWAIT_NEEDED - Success
-- Configuring done (4.6s)
-- Generating done (0.0s)
-- Build files have been written to: C:/Users/Brend/Downloads/onemore/cppcoro/build
C:\Users\Brend\Downloads\onemore\cppcoro\build>ninja
[34/38] Building CXX object lib\CMakeFiles\cppcoro.dir\socket.cpp.obj
C:\Users\Brend\Downloads\onemore\cppcoro\lib\socket.cpp(349): warning C4996: '_WSAPROTOCOL_INFOA::iAddressFamily': Use WSAPROTOCOL_INFOW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
C:\Users\Brend\Downloads\onemore\cppcoro\lib\socket.cpp(348): warning C4996: 'WSADuplicateSocketA': Use WSADuplicateSocketW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
C:\Users\Brend\Downloads\onemore\cppcoro\lib\socket.cpp(349): warning C4996: 'WSASocketA': Use WSASocketW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
[38/38] Linking CXX shared library lib\cppcoro.dll
C:\Users\Brend\Downloads\onemore\cppcoro\build>ninja test
[0/1] Running tests...Test project C:/Users/Brend/Downloads/onemore/cppcoro/build
No tests were found!!!
C:\Users\Brend\Downloads\onemore\cppcoro\build>ninja install
[1/2] Install the project...-- Install configuration: "Debug"
-- Installing: C:/Users/Brend/.local/include/cppcoro
-- Installing: C:/Users/Brend/.local/include/cppcoro/async_auto_reset_event.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/async_generator.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/async_latch.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/async_manual_reset_event.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/async_mutex.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/async_scope.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/awaitable_traits.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/broken_promise.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/cancellation_registration.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/cancellation_source.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/cancellation_token.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/config.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/coroutine.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/detail
-- Installing: C:/Users/Brend/.local/include/cppcoro/detail/any.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/detail/get_awaiter.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/detail/is_awaiter.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/detail/lightweight_manual_reset_event.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/detail/linux.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/detail/linux_async_operation.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/detail/manual_lifetime.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/detail/remove_rvalue_reference.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/detail/sync_wait_task.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/detail/unwrap_reference.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/detail/void_value.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/detail/when_all_counter.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/detail/when_all_ready_awaitable.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/detail/when_all_task.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/detail/win32.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/detail/win32_overlapped_operation.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/file.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/filesystem.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/file_buffering_mode.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/file_open_mode.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/file_read_operation.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/file_share_mode.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/file_write_operation.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/fmap.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/generator.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/inline_scheduler.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/io_service.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/is_awaitable.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/multi_producer_sequencer.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/net
-- Installing: C:/Users/Brend/.local/include/cppcoro/net/ipv4_address.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/net/ipv4_endpoint.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/net/ipv6_address.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/net/ipv6_endpoint.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/net/ip_address.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/net/ip_endpoint.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/net/socket.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/net/socket_accept_operation.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/net/socket_connect_operation.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/net/socket_disconnect_operation.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/net/socket_recv_from_operation.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/net/socket_recv_operation.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/net/socket_send_operation.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/net/socket_send_to_operation.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/on_scope_exit.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/operation_cancelled.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/readable_file.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/read_only_file.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/read_write_file.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/recursive_generator.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/resume_on.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/round_robin_scheduler.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/schedule_on.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/sequence_barrier.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/sequence_range.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/sequence_traits.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/shared_task.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/single_consumer_async_auto_reset_event.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/single_consumer_event.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/single_producer_sequencer.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/static_thread_pool.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/sync_wait.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/task.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/when_all.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/when_all_ready.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/writable_file.hpp
-- Installing: C:/Users/Brend/.local/include/cppcoro/write_only_file.hpp
-- Installing: C:/Users/Brend/.local/lib/cmake/cppcoro/FindCoroutines.cmake
-- Installing: C:/Users/Brend/.local/lib/cmake/cppcoro/cppcoroTargets.cmake
-- Installing: C:/Users/Brend/.local/lib/cmake/cppcoro/cppcoroTargets-debug.cmake
-- Installing: C:/Users/Brend/.local/lib/cmake/cppcoro/cppcoroConfig.cmake
-- Installing: C:/Users/Brend/.local/bin/cppcoro.dll
As you can see there is a ".dll" installed but not a ".lib"
When I try to use the library in a project I get this cmake error
-- Found nlohmann_json: C:/Users/Brend/vcpck/vcpkg/installed/x64-windows/share/nlohmann_json/nlohmann_jsonConfig.cmake (found version "3.11.3")
CMake Error at C:/Users/Brend/.local/lib/cmake/cppcoro/cppcoroTargets.cmake:86 (message):
The imported target "cppcoro::cppcoro" references the file
but this file does not exist. Possible reasons include:
The file was deleted, renamed, or moved to another location.
An install or uninstall procedure did not complete successfully.
The installation package was faulty and contained
"C:/Users/Brend/.local/lib/cmake/cppcoro/cppcoroTargets.cmake"
but not all the files it references.
Call Stack (most recent call first):
C:/Users/Brend/.local/lib/cmake/cppcoro/cppcoroConfig.cmake:6 (include)
C:/Users/Brend/vcpck/vcpkg/scripts/buildsystems/vcpkg.cmake:862 (_find_package)
CMakeLists.txt:66 (find_package)
-- Configuring incomplete, errors occurred!
The text was updated successfully, but these errors were encountered: