-
Notifications
You must be signed in to change notification settings - Fork 90
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
Is Android mobile phone supported? #66
Comments
It works in android using kali nethunter |
Did you ever succeed? I'm trying to build it in termux but getting some errors ... Logsbuild git:(master) ✗ make
[ 5%] Built target radiotap
[ 8%] Building C object src/CMakeFiles/awdl.dir/election.c.o
In file included from /data/data/com.termux/files/home/owl/src/election.c:23:
In file included from /data/data/com.termux/files/home/owl/src/election.h:23:
/data/data/com.termux/files/home/owl/src/ieee80211.h:142:20: error: field has incomplete type 'struct ether_addr'
142 | struct ether_addr addr1; /* dst */ | ^
/data/data/com.termux/files/usr/include/netinet/ether.h:63:8: note: forward declaration of 'struct ether_addr'
63 | struct ether_addr* _Nullable ether_aton(const char* _Nonnull __ascii);
| ^ In file included from /data/data/com.termux/files/home/owl/src/election.c:23: In file included from /data/data/com.termux/files/home/owl/src/election.h:23:
/data/data/com.termux/files/home/owl/src/ieee80211.h:143:20: error: field has incomplete type 'struct ether_addr'
143 | struct ether_addr addr2; /* src */ | ^
/data/data/com.termux/files/usr/include/netinet/ether.h:63:8: note: forward declaration of 'struct ether_addr'
63 | struct ether_addr* _Nullable ether_aton(const char* _Nonnull __ascii);
| ^
In file included from /data/data/com.termux/files/home/owl/src/election.c:23:
In file included from /data/data/com.termux/files/home/owl/src/election.h:23:
/data/data/com.termux/files/home/owl/src/ieee80211.h:144:20: error: field has incomplete type 'struct ether_addr'
144 | struct ether_addr addr3; /* bssid */
| ^
/data/data/com.termux/files/usr/include/netinet/ether.h:63:8: note: forward declaration of 'struct ether_addr'
63 | struct ether_addr* _Nullable ether_aton(const char* _Nonnull __ascii);
| ^
In file included from /data/data/com.termux/files/home/owl/src/election.c:23:
/data/data/com.termux/files/home/owl/src/election.h:33:20: error: field has incomplete type 'struct ether_addr'
33 | struct ether_addr master_addr;
| ^
/data/data/com.termux/files/usr/include/netinet/ether.h:63:8: note: forward declaration of 'struct ether_addr'
63 | struct ether_addr* _Nullable ether_aton(const char* _Nonnull __ascii);
| ^
In file included from /data/data/com.termux/files/home/owl/src/election.c:23:
/data/data/com.termux/files/home/owl/src/election.h:34:20: error: field has incomplete type 'struct ether_addr'
34 | struct ether_addr sync_addr;
| ^
/data/data/com.termux/files/usr/include/netinet/ether.h:63:8: note: forward declaration of 'struct ether_addr'
63 | struct ether_addr* _Nullable ether_aton(const char* _Nonnull __ascii);
| ^
In file included from /data/data/com.termux/files/home/owl/src/election.c:23:
/data/data/com.termux/files/home/owl/src/election.h:35:20: error: field has incomplete type 'struct ether_addr'
35 | struct ether_addr self_addr;
| ^
/data/data/com.termux/files/usr/include/netinet/ether.h:63:8: note: forward declaration of 'struct ether_addr'
63 | struct ether_addr* _Nullable ether_aton(const char* _Nonnull __ascii);
| ^
6 errors generated.
make[2]: *** [src/CMakeFiles/awdl.dir/build.make:104: src/CMakeFiles/awdl.dir/election.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:216: src/CMakeFiles/awdl.dir/all] Error 2
make: *** [Makefile:136: all] Error 2 |
Tried fork (#68) and it builds. |
Ah, running still fails: 13:17:22 ERROR: Error while receiving via netlink: Operation not supported
13:17:22 ERROR: Could not put device in monitor mode: wlan0
13:17:22 ERROR: could not initialize core (Even if I put device in monitor mode manually ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have cross compiled libpcap, libev, libnl-3 to armeabi using NDK and it went well. (While configuring libnl-3, I changed -lpthread to -pthread in the libnl-3 cmake files, because I read the docs and it shows that -lpthread is just similar as -pthread, and since the -lpthread is causing error, I changed -lpthread into -pthread directly.)
However, when I trying to cmake owl, something wrong happened.
Then I tried make directly, but error occurred.
It seems that NDK does not have a fully-implemented ether library? Or did I made something wrong?
The text was updated successfully, but these errors were encountered: