microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.14k stars 6.38k forks source link

openssl:arm-windows status? #2971

Closed janisozaur closed 5 years ago

janisozaur commented 6 years ago

I'm looking for some clarification about OpenSSL's status for arm-windows triplet.

Trying to build it locally, I get the error:

[00:12:31] Starting package 7/10: openssl:arm-windows
[00:12:31] Building package openssl[core]:arm-windows... 
[00:12:32] -- CURRENT_INSTALLED_DIR=C:/projects/dependencies/vcpkg/installed/arm-windows
[00:12:32] -- DOWNLOADS=C:/projects/dependencies/vcpkg/downloads
[00:12:32] -- CURRENT_PACKAGES_DIR=C:/projects/dependencies/vcpkg/packages/openssl_arm-windows
[00:12:32] -- CURRENT_BUILDTREES_DIR=C:/projects/dependencies/vcpkg/buildtrees/openssl
[00:12:32] -- CURRENT_PORT_DIR=C:/projects/dependencies/vcpkg/ports/openssl/.
[00:12:32] -- Downloading http://strawberryperl.com/download/5.24.1.1/strawberry-perl-5.24.1.1-32bit-portable.zip...
[00:13:16] -- Downloading http://strawberryperl.com/download/5.24.1.1/strawberry-perl-5.24.1.1-32bit-portable.zip... OK
[00:13:16] -- Testing integrity of downloaded file...
[00:13:18] -- Testing integrity of downloaded file... OK
[00:13:25] -- Downloading http://www.nasm.us/pub/nasm/releasebuilds/2.12.02/win32/nasm-2.12.02-win32.zip...
[00:13:25] -- Downloading http://www.nasm.us/pub/nasm/releasebuilds/2.12.02/win32/nasm-2.12.02-win32.zip... OK
[00:13:25] -- Testing integrity of downloaded file...
[00:13:25] -- Testing integrity of downloaded file... OK
[00:13:26] -- Downloading http://download.qt.io/official_releases/jom/jom_1_1_2.zip...
[00:13:26] -- Downloading http://download.qt.io/official_releases/jom/jom_1_1_2.zip... OK
[00:13:26] -- Testing integrity of downloaded file...
[00:13:26] -- Testing integrity of downloaded file... OK
[00:13:26] -- Downloading https://www.openssl.org/source/openssl-1.0.2n.tar.gz...
[00:13:27] -- Downloading https://www.openssl.org/source/openssl-1.0.2n.tar.gz... OK
[00:13:27] -- Testing integrity of downloaded file...
[00:13:27] -- Testing integrity of downloaded file... OK
[00:13:27] -- Extracting source C:/projects/dependencies/vcpkg/downloads/openssl-1.0.2n.tar.gz
[00:13:29] -- Extracting done
[00:13:29] -- Applying patch C:/projects/dependencies/vcpkg/ports/openssl/ConfigureIncludeQuotesFix.patch
[00:13:30] -- Applying patch C:/projects/dependencies/vcpkg/ports/openssl/ConfigureIncludeQuotesFix.patch done
[00:13:30] -- Applying patch C:/projects/dependencies/vcpkg/ports/openssl/STRINGIFYPatch.patch
[00:13:30] -- Applying patch C:/projects/dependencies/vcpkg/ports/openssl/STRINGIFYPatch.patch done
[00:13:30] -- Applying patch C:/projects/dependencies/vcpkg/ports/openssl/EmbedSymbolsInStaticLibsZ7.patch
[00:13:30] -- Applying patch C:/projects/dependencies/vcpkg/ports/openssl/EmbedSymbolsInStaticLibsZ7.patch done
[00:13:30] -- Applying patch C:/projects/dependencies/vcpkg/ports/openssl/RemoveNonASCIIChar.patch
[00:13:30] -- Applying patch C:/projects/dependencies/vcpkg/ports/openssl/RemoveNonASCIIChar.patch done
[00:13:30] CMake Error at ports/openssl/portfile.cmake:48 (message):
[00:13:30]   Unsupported target architecture: arm

https://github.com/Microsoft/vcpkg/blob/a477fd6b6eb5a4053770e50423c6f1144c338c4d/ports/openssl/portfile.cmake#L48

However:

[00:14:02] Starting package 7/10: openssl:arm-uwp
[00:14:02] Building package openssl[core]:arm-uwp... 
[00:14:02] -- CURRENT_INSTALLED_DIR=C:/projects/dependencies/vcpkg/installed/arm-uwp
[00:14:02] -- DOWNLOADS=C:/projects/dependencies/vcpkg/downloads
[00:14:02] -- CURRENT_PACKAGES_DIR=C:/projects/dependencies/vcpkg/packages/openssl_arm-uwp
[00:14:02] -- CURRENT_BUILDTREES_DIR=C:/projects/dependencies/vcpkg/buildtrees/openssl
[00:14:02] -- CURRENT_PORT_DIR=C:/projects/dependencies/vcpkg/ports/openssl/.
[00:14:02] -- Downloading http://strawberryperl.com/download/5.24.1.1/strawberry-perl-5.24.1.1-32bit-portable.zip...
[00:14:24] -- Downloading http://strawberryperl.com/download/5.24.1.1/strawberry-perl-5.24.1.1-32bit-portable.zip... OK
[00:14:24] -- Testing integrity of downloaded file...
[00:14:26] -- Testing integrity of downloaded file... OK
[00:14:32] -- Downloading http://download.qt.io/official_releases/jom/jom_1_1_2.zip...
[00:14:33] -- Downloading http://download.qt.io/official_releases/jom/jom_1_1_2.zip... OK
[00:14:33] -- Testing integrity of downloaded file...
[00:14:33] -- Testing integrity of downloaded file... OK
[00:14:33] -- Downloading https://github.com/Microsoft/openssl/archive/OpenSSL_1_0_2l_WinRT.zip...
[00:14:35] -- Downloading https://github.com/Microsoft/openssl/archive/OpenSSL_1_0_2l_WinRT.zip... OK
[00:14:35] -- Testing integrity of downloaded file...
[00:14:35] -- Testing integrity of downloaded file... OK
[00:14:35] -- Extracting source C:/projects/dependencies/vcpkg/downloads/openssl-microsoft-1.0.2l_WinRT.zip
[00:14:36] -- Extracting done
[00:14:36] -- Build arm-uwp
[00:16:23] -- Build arm-uwp done
[00:16:23] -- Installing: C:/projects/dependencies/vcpkg/packages/openssl_arm-uwp/bin/libeay32.dll
[00:16:23] -- Installing: C:/projects/dependencies/vcpkg/packages/openssl_arm-uwp/bin/libeay32.pdb
[00:16:23] -- Installing: C:/projects/dependencies/vcpkg/packages/openssl_arm-uwp/bin/ssleay32.dll
[00:16:23] -- Installing: C:/projects/dependencies/vcpkg/packages/openssl_arm-uwp/bin/ssleay32.pdb
[00:16:23] -- Installing: C:/projects/dependencies/vcpkg/packages/openssl_arm-uwp/lib/libeay32.lib
[00:16:23] -- Installing: C:/projects/dependencies/vcpkg/packages/openssl_arm-uwp/lib/ssleay32.lib
[00:16:23] -- Installing: C:/projects/dependencies/vcpkg/packages/openssl_arm-uwp/debug/bin/libeay32.dll
[00:16:23] -- Installing: C:/projects/dependencies/vcpkg/packages/openssl_arm-uwp/debug/bin/libeay32.pdb
[00:16:23] -- Installing: C:/projects/dependencies/vcpkg/packages/openssl_arm-uwp/debug/bin/ssleay32.dll
[00:16:23] -- Installing: C:/projects/dependencies/vcpkg/packages/openssl_arm-uwp/debug/bin/ssleay32.pdb
[00:16:23] -- Installing: C:/projects/dependencies/vcpkg/packages/openssl_arm-uwp/debug/lib/libeay32.lib
[00:16:23] -- Installing: C:/projects/dependencies/vcpkg/packages/openssl_arm-uwp/debug/lib/ssleay32.lib
[00:16:23] -- Installing: C:/projects/dependencies/vcpkg/packages/openssl_arm-uwp/share/openssl/copyright
[00:16:23] -- Performing post-build validation
[00:16:24] -- Performing post-build validation done
[00:16:24] Building package openssl[core]:arm-uwp... done
[00:16:24] Installing package openssl[core]:arm-uwp... 
[00:16:24] Installing package openssl[core]:arm-uwp... done
[00:16:24] Elapsed time for package openssl:arm-uwp: 2.364 min
PhoebeHui commented 5 years ago

@janisozaur, vcpkg currently support openssl:arm-windows, you can have a try.

Test with vcpkg latest source and visual studio 2017 15.9.7. PS F:\VCPKG\src> ./vcpkg version Vcpkg package management program version 2018.11.23-nohash

PS F:\VCPKG\src> ./vcpkg install openssl:arm-windows The following packages will be built and installed: openssl[core]:arm-windows

Total elapsed time: 3.998 min

The package openssl is compatible with built-in CMake targets: find_package(OpenSSL REQUIRED) target_link_libraries(main PRIVATE OpenSSL::SSL OpenSSL::Crypto)