交叉编译Android的Tquic库 #190
-
请教一下大家,https://tquic.net/docs/getting_started/installation 这个文档下描述的Android编译的方法,是在windows 系统下编译的,还是linux系统下编译的? 我在windows 系统下按照指引,安装了rust环境,VS环境, 然后在命令行窗口编译会报错: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
根据提供的信息和文档,https://tquic.net/docs/getting_started/installation 这个文档主要描述了在Linux、MacOS、FreeBSD、iOS和Android平台上编译TQUIC的方法,并没有直接提及Windows系统。TQUIC是基于Rust语言开发的,理论上它支持Rust支持的任何平台,但是官方文档中并没有特别指出对Windows的支持。 对于Android平台的编译,文档中提到了需要安装Rust工具链和cargo-ndk来简化Android库的构建过程。这些步骤通常在Linux或MacOS系统中进行,因为这些系统与Rust和Android NDK的兼容性较好。 如果你在Windows系统下遇到编译问题,可能是因为某些依赖或工具链在Windows上的配置与Linux或MacOS不同。虽然Rust和Android NDK都可以在Windows上使用,但可能需要额外的配置步骤或解决特定的兼容性问题。 建议查看官方GitHub仓库的issue或讨论区,看看是否有其他用户遇到类似问题以及如何解决。例如,可以查看是否有关于在Windows上编译TQUIC的讨论或指南。 此外,考虑使用Linux虚拟机或WSL(Windows Subsystem for Linux)在Windows上提供一个更兼容的环境进行编译。 最后,由于你提供的图片链接无法直接访问,无法直接查看具体的错误信息。如果问题仍然存在,建议将错误信息文本形式提供,以便更具体地分析问题。 |
Beta Was this translation helpful? Give feedback.
-
error: failed to run custom build command for Caused by: --- stderr
thread 'main' panicked at C:\Users\GW00346215.cargo\registry\src\index.crates.io-6f17d22bba15001f\cmake-0.1.50\src\lib.rs:1098:5: command did not execute successfully, got: exit code: 1 build script failed, must exit now |
Beta Was this translation helpful? Give feedback.
-
@stopandjoin 截图提示cmake可能没有安装 建议在MacOS或Linux平台编译Andorid移动端库。 |
Beta Was this translation helpful? Give feedback.
@stopandjoin 截图提示cmake可能没有安装
建议在MacOS或Linux平台编译Andorid移动端库。
Windows平台目前暂未正式支持。