Open kroggen opened 3 years ago
By the way, why is it so hard to get binaries for Windows?
You do not have an idea of how many hours (spanning many days!!!) we waste trying to just get a f**ing updated libuv DLL for Windows without those trash dependencies
OK, I was able to fix the dependencies using this block before the add_library
on CMakeLists.txt:
if(MSVC)
add_compile_options(
$<$<CONFIG:>:/MT>
$<$<CONFIG:Debug>:/MTd>
$<$<CONFIG:Release>:/MT>
)
endif()
Now just lacking a method to compile libuv for Windows 32-bit (not high priority though)
I am trying to build libuv for Windows using GItHub Actions, so it can be shared and anyone can use the workflow (and the binaries).
I was able to make it work but the DLL is depending on:
This can be avoided by compiling with
/MT
when using MSVC. I tried to do this with CMake but no much success. There are some notes here:https://stackoverflow.com/questions/14172856/compile-with-mt-instead-of-md-using-cmake
Also, the build for Windows 32-bit failed with:
If you have interest on this, the repo is here on branch
cmake
. There is also abuild
branch for a build attempt without cmake.