when I use vcpk to install libuv on Ubuntu16.04 64bit, it failed.
the log in buildtrees/libuv/install-x64-linux-dbg-out.log is
‘vcpkg/buildtrees/libuv/src/v1.20.0-7de17b6267/src/win/winapi.h:25:21: fatal error: windows.h: No such file or directory’
I add a pull request for linux https://github.com/Microsoft/vcpkg/pull/3437
I was not able to fully test it, so if you have time to check every thing work with this build you're welcome.
Thank you very much. It's works for me.
May be
There is android and osx file in unix folder :(
so we can't use unix/*.c
The issue looks solved and libuv installed successfully.
linux001@linuxtest01:~/vcpkg$ ./vcpkg install libuv
Your feedback is important to improve Vcpkg! Please take 3 minutes to complete our survey by running: vcpkg contact --survey
The following packages will be built and installed:
libuv[core]:x64-linux
Starting package 1/1: libuv:x64-linux
Building package libuv[core]:x64-linux...
-- Downloading https://github.com/libuv/libuv/archive/v1.25.0.tar.gz...
-- Extracting source /home/linux001/vcpkg/downloads/libuv-libuv-v1.25.0.tar.gz
-- Using source at /home/linux001/vcpkg/buildtrees/libuv/src/v1.25.0-b119df65cf
-- Configuring x64-linux-dbg
-- Configuring x64-linux-rel
-- Building x64-linux-dbg
-- Building x64-linux-rel
-- Performing post-build validation
-- Performing post-build validation done
Building package libuv[core]:x64-linux... done
Installing package libuv[core]:x64-linux...
Installing package libuv[core]:x64-linux... done
Elapsed time for package libuv:x64-linux: 4.038 s
Total elapsed time: 4.038 s
The package libuv:x64-linux provides CMake targets:
find_package(unofficial-libuv CONFIG REQUIRED)
target_link_libraries(main PRIVATE unofficial::libuv::libuv)
linux001@linuxtest01:~/vcpkg$ ./vcpkg version
Vcpkg package management program version 2018.11.23-unknownhash
Most helpful comment
There is android and osx file in unix folder :(
so we can't use unix/*.c