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

关于maa-framework-rs的编译问题 #5

Open
ElysiaEgo opened this issue Apr 14, 2024 · 1 comment
Open

关于maa-framework-rs的编译问题 #5

ElysiaEgo opened this issue Apr 14, 2024 · 1 comment

Comments

@ElysiaEgo
Copy link

MaaXYZ/MaaFramework@3c73651 中,MaaAdbControllerType被更改为了使用掩码的int类型,而仓库中的代码还是更改之前的逻辑。但是makedeps.py中指定的v1.7.0-alpha.2却包括了这个commit,导致bindgen生成的类型对应不上,编译不通过。
是有部分文件没有更新吗?
编译错误示例

error[E0308]: mismatched types
   --> /home/.../.cargo/registry/src/index.crates.io-6f17d22bba15001f/maa-framework-0.3.2/src/toolkit.rs:103:21
    |
103 |                     adb_controller_type,
    |                     ^^^^^^^^^^^^^^^^^^^ expected `MaaAdbControllerType`, found `i32`
@KevinT3Hu
Copy link
Member

无法复现,我可以正常编译运行

尝试cargo clean之后重新编译

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants