zerotier / ZeroTierOne

A Smart Ethernet Switch for Earth
https://zerotier.com
Other
14.3k stars 1.67k forks source link

Compile with termux on android fail #2350

Open ashesofdream opened 1 month ago

ashesofdream commented 1 month ago

After running make,error:

Compiling zeroidc v0.1.0 (/data/data/com.termux/files/home/ZeroTierOne-1.14.0/rustybits/zeroidc) error[E0432]: unresolved import crate::ZeroIDC --> zeroidc/src/ext.rs:17:5 17 use crate::ZeroIDC; ^^^^^^^^^^^^^^ no ZeroIDC in the root

note: found an item that was configured out --> zeroidc/src/lib.rs:49:12 | 49 | pub struct ZeroIDC { | ^^^^^^^

error[E0412]: cannot find type Inner in this scope --> zeroidc/src/lib.rs:77:6 | 77 | impl Inner { | ^^^^^ not found in this scope

error[E0412]: cannot find type Inner in this scope --> zeroidc/src/lib.rs:79:41 79 fn as_opt(&mut self) -> Option<&mut Inner> { ^^^^^ not found in this scope

help: you might be missing a type parameter | 77 | impl Inner { | +++++++

warning: unused import: crate::error::* --> zeroidc/src/lib.rs:22:5 | 22 | use crate::error::*;

how to fix this