Closed rwalworth closed 5 months ago
It builds in CI, with NDK r25.
`.../Configure android- enable-static-engine ...
android-
- so there is an empty VCPKG_DETECTED_CMAKE_ANDROID_ARCH
. Maybe you have an outdated vcpkg-cmake-get-vars
package? Try vcpkg upgrade
(with --no-dry-run
).
It builds in CI, with NDK r25.
`.../Configure android- enable-static-engine ...
android-
- so there is an emptyVCPKG_DETECTED_CMAKE_ANDROID_ARCH
. Maybe you have an outdatedvcpkg-cmake-get-vars
package? Tryvcpkg upgrade
(with--no-dry-run
).
It doesn't look like I can run that in manifest mode:
% ./vcpkg upgrade --no-dry-run
error: The upgrade command does not currently support manifest mode. Instead, modify your vcpkg.json and run install.
I tried adding it to my manifest file however:
"dependencies": [
{
"name": "vcpkg-cmake-get-vars",
"version>=": "2023-12-31"
},
...
and I'm seeing the same thing:
root@356ddba84b92:/hedera-sdk-cpp# cat vcpkg/buildtrees/openssl/config-arm64-android-dbg-err.log
+ /usr/bin/perl /hedera-sdk-cpp/vcpkg/buildtrees/openssl/src/nssl-3.2.1-8707343470.clean/Configure android- enable-static-engine enable-capieng no-tests no-docs no-shared no-module no-apps --openssldir=/etc/ssl --libdir=lib --debug --prefix=/hedera-sdk-cpp/build/android-arm64-release/vcpkg_installed/arm64-android/debug
Usage: Configure [no-<feature> ...] [enable-<feature> ...] [-Dxxx] [-lxxx] [-Lxxx] [-fxxx] [-Kxxx] [no-hw-xxx|no-hw] [[no-]threads] [[no-]thread-pool] [[no-]default-thread-pool] [[no-]shared] [[no-]zlib|zlib-dynamic] [no-asm] [no-egd] [sctp] [386] [--prefix=DIR] [--openssldir=OPENSSLDIR] [--with-xxx[=vvv]] [--config=FILE] os/compiler[:flags]
pick os/compiler from:
BC-32 BS2000-OSD BSD-aarch64 BSD-armv4 BSD-generic32 BSD-generic64 BSD-ia64
...
Is there a more recent version of vcpkg-cmake-get-vars
that I'm missing?
Found the solution.
My builtin-baseline
was out of date for android builds by about a year, so I updated it to the 2023.06.20
release commit hash and it's building now.
/hedera-sdk-cpp/vcpkg/buildtrees/openssl/config-arm64-android-dbg-out.log
/hedera-sdk-cpp/vcpkg/buildtrees/openssl/config-arm64-android-dbg-err.log
Check both the files, I found the error here, It was unable to find the XCode.
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.
Package: openssl:arm64-android@3.2.1
Host Environment
To Reproduce
vcpkg install
Failure logs/hedera-sdk-cpp/vcpkg/buildtrees/openssl/config-arm64-android-dbg-out.log
``` Configuring OpenSSL version 3.2.1 for target android- Using os-specific seed configuration ```/hedera-sdk-cpp/vcpkg/buildtrees/openssl/config-arm64-android-dbg-err.log
``` + /usr/bin/perl /hedera-sdk-cpp/vcpkg/buildtrees/openssl/src/nssl-3.2.1-8707343470.clean/Configure android- enable-static-engine enable-capieng no-tests no-docs no-shared no-module no-apps --openssldir=/etc/ssl --libdir=lib --debug --prefix=/hedera-sdk-cpp/build/android-arm64-release/vcpkg_installed/arm64-android/debug Usage: Configure [no-Additional context
vcpkg.json
``` { "name": "hedera-sdk-cpp", "version-string": "0.1.0", "builtin-baseline": "680071397677bb123b2f2b0ebe73905feae4a955", "dependencies": [ { "name": "openssl", "version>=": "3.2.1" }, { "name": "pthreads", "version>=": "3.0.0#11" }, { "name": "zlib", "version>=": "1.2.12" }, { "name": "protobuf", "version>=": "3.21.6" }, { "name": "grpc", "version>=": "1.49.0" }, { "name": "upb", "version>=": "2022-06-21" }, { "name": "nlohmann-json" }, { "name": "curl", "version>=": "7.84.0" }, { "name": "spdlog", "version>=": "1.13.0" }, { "name": "cpp-httplib", "version>=": "0.14.1" } ] } ```