Giter Site home page Giter Site logo

Comments (8)

SeeFlowerX avatar SeeFlowerX commented on September 26, 2024 1

编译可能过于麻烦,建议参考这篇文章操作,adb传文件后手动解压即可

from eadb.

tiann avatar tiann commented on September 26, 2024

https://github.com/tiann/eadb/blob/main/src/build_image.rs#L68

这里直接把 uid = 0 试试

from eadb.

LiShuai1225 avatar LiShuai1225 commented on September 26, 2024

好的,我试试。语法问题怎么弄,前面说找不到,后面又说重定义,懵了

from eadb.

LiShuai1225 avatar LiShuai1225 commented on September 26, 2024

cargo build完成 ,cargo install eadb报错,具体如下:
cargo build
Compiling eadb v0.1.5 (E:\eadb)
Finished dev [unoptimized + debuginfo] target(s) in 35.64s

cargo install eadb
Compiling eadb v0.1.5
error[E0425]: cannot find function getuid in crate libc
--> C:\Users.cargo\registry\src\mirrors.ustc.edu.cn-12df342d903acd47\eadb-0.1.5\src\build_image.rs:68:30
|
68 | let uid = unsafe { libc::getuid() };
| ^^^^^^ help: a function with a similar name exists: getpid
|
::: C:\Users.cargo\registry\src\mirrors.ustc.edu.cn-12df342d903acd47\libc-0.2.132\src\windows\mod.rs:482:5
|
482 | pub fn getpid() -> ::c_int;
| --------------------------- similarly named function getpid defined here

For more information about this error, try rustc --explain E0425.
error: could not compile eadb due to previous error
error: failed to compile eadb v0.1.5, intermediate artifacts can be found at C:\Users\AppData\Local\Temp\cargo-install7xBCLI

from eadb.

tiann avatar tiann commented on September 26, 2024

build 完成你用自己 build 好的 eadb 就行了,不要再 cargo install

from eadb.

LiShuai1225 avatar LiShuai1225 commented on September 26, 2024

cargo buile完成后,在当前目录执行eadb提示
$ eadb
bash: eadb: command not found

from eadb.

LiShuai1225 avatar LiShuai1225 commented on September 26, 2024

生成的eadb.exe拷贝到与assets同级的目录
执行./eadb.exe prepare -a debianfs-arm64-full.tar.gz
报下面的问题:
Using archive at debianfs-arm64-full.tar.gz for filesystem preparation
Pushing filesystem to device..
debianfs-arm64-full.tar.gz: 1 file pushed. 31.6 MB/s (324371126 bytes in 9.790s)
Pushing addons to device..
adb: error: cannot stat 'C:\Users\AppData\Local\Temp.tmpT4Ez9t\assets/': No such file or directory
chmod: /data/eadb/device-
: No such file or directory
Unpacking filesystem in device..
/system/bin/sh: /data/eadb/device-unpack: inaccessible or not found
All done! Run "eadb shell" to get started.

from eadb.

tiann avatar tiann commented on September 26, 2024

建议用 ubuntu 虚拟机

from eadb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.