Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用vcpkg::openssl的时候,在ios上报错”Invalid triplet: arm64-iphoneos" #4988

Closed
rechardchen opened this issue Apr 18, 2024 · 9 comments
Labels

Comments

@rechardchen
Copy link

Xmake 版本

2.8.8

操作系统版本和架构

macos Sonoma 14.2.1

描述问题

需要用openssl3.0以上版本,发现xrepo里没有,所以就用了vcpkg里的。
编译mac版本的时候很顺利,但是编译ios版本的时候vcpkg报错。

error: Invalid triplet: arm64-iphoneos

我发现用vcpkg install openssl --triplet=arm64-ios是可以的

期待的结果

能正常使用vcpkg::openssl

工程配置

add_requires("vcpkg::openssl")

附加信息和错误日志

xmake f -p iphoneos

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: When using vcpkg::openssl, an error "Invalid triplet: arm64-iphoneos" is reported on ios

@star-hengxing
Copy link
Contributor

openssl3 和 openssl 分开为两个包

@rechardchen
Copy link
Author

openssl3 和 openssl 分开为两个包

xrepo里自带的包不支持iphoneos/arm64

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


openssl3 and openssl are separated into two packages

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


openssl3 and openssl are separated into two packages

The package that comes with xrepo does not support iphoneos/arm64

@waruqi
Copy link
Member

waruqi commented Apr 18, 2024

不支持,就提个 pr 过来改进下包

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


If it is not supported, please submit a PR to improve the package.

waruqi added a commit that referenced this issue Apr 19, 2024
@waruqi
Copy link
Member

waruqi commented Apr 19, 2024

error: Invalid triplet: arm64-iphoneos
我发现用vcpkg install openssl --triplet=arm64-ios是可以的

这个修复了,xmake update -s dev

@rechardchen
Copy link
Author

xmake-io/xmake-repo#3828
官方包提了一个pr支持iphoneos

@waruqi waruqi closed this as completed Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants