This repository was archived by the owner on Jun 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
build/test on Windows 10 with MinGW #64
Comments
That copied/pasted text above makes it appear as if there are newlines at the end. However, I'm thinking that may be due to some oddities in how MS redirects STDERR and STDOUT to a file via >> ? This screenshot shows what it looks like if I just run it in the shell without redirecting the output: |
Thanks to @xenu the following patch allows the tests to run as expected: diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4f13efc8..c739c1a1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -342,7 +342,7 @@ target_link_libraries(uv_a ${uv_libraries})
if(BUILD_TESTING)
include(CTest)
add_executable(uv_run_tests ${uv_test_sources})
- target_compile_definitions(uv_run_tests PRIVATE ${uv_defines})
+ target_compile_definitions(uv_run_tests PRIVATE ${uv_defines} USING_UV_SHARED=1)
target_compile_options(uv_run_tests PRIVATE ${uv_cflags})
target_include_directories(uv_run_tests PRIVATE include)
target_link_libraries(uv_run_tests uv ${uv_test_libraries}) However, the tests fail:
|
It looks like two tests are failing:
|
@genio can you try cjihrig/libuv@cf1e84a as a fix for the |
That does fix the Thanks! |
cjihrig
added a commit
to cjihrig/libuv
that referenced
this issue
Sep 26, 2018
Refs: nodejs/node#22817 Refs: libuv/help#64 PR-URL: libuv#2002 Reviewed-By: Bartosz Sosnowski <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When building LibUV for Perl 5 (not Perl 6), we have to make use of cmake with MinGW and gmake.
Strawberry Perl (even Portables work here) makes both MinGW and gmake available to you out of the box and throws them both into your
$env:PATH
. You can then runcpanm Alien::cmake3
to get the latest cmake.perl -MAlien::cmake3 -E "say Alien::cmake3->bin_dir"
will give you the path to the newly installed cmake bin directory. Add that to your path via:$env:PATH+="C:\Strawberry\ll_5.26.1.1_normal\lib\perl5\MSWin32-x64-multi-thread\auto\share\dist\Alien-cmake3\bin\"
.Now, you have cmake, MinGW, and gmake binaries available in your path. Here's the build attempt I'm trying:
Unzip libuv-v1.23.1.tar.gz to
C:\temp\libuv-v1.23.1
Now we have a directory in which we can store our build.
Now, compile the project:
PS C:\temp\out> gmake all test
This will compile fine, but fail when it tries to run the test suite:
Here's the entire output log
Is there something especially stupid that I'm doing wrong?
The text was updated successfully, but these errors were encountered: