dumbasPL / aero2solver

Solve Aero2 captchas automatically using the magic of machine learning and computer vision
MIT License
19 stars 6 forks source link

Question: How to build on Android? #7

Closed lopezloo closed 4 months ago

lopezloo commented 4 months ago

How to build this on Android device?

Tried to build this on Android 14 phone with Termux 0.118.1 without success:

cargo build --release

[...]
Compiling aero2solver v1.1.0 (/data/data/com.termux/files/home/aero2solver)
error: linking with `cc` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/data/data/com.termux/files/usr/lib/rustlib/aarch64-linux-android/bin:/data/data/com.termux/files/usr/bin" VSLANG="1033" "cc" "/data/data/com.termux/files/usr/tmp/rustcaIXTfe/symbols.o" "/data/data/com.termux/files/home/aero2solver/target/release/deps/aero2solver-0c8a614067274f76.aero2solver.5233d8672c4f88d4-cgu.00.rcgu.o" "/data/data/com.termux/files/home/aero2solver/target/release/deps/aero2solver-0c8a614067274f76.aero2solver.5233d8672c4f88d4-cgu.01.rcgu.o" "/data/data/com.termux/files/home/aero2solver/target/release/deps/aero2solver-0c8a614067274f76.aero2solver.5233d8672c4f88d4-cgu.02.rcgu.o" "/data/data/com.termux/files/home/aero2solver/target/release/deps/aero2solver-0c8a614067274f76.aero2solver.5233d8672c4f88d4-cgu.03.rcgu.o" "/data/data/com.termux/files/home/aero2solver/target/release/deps/aero2solver-0c8a614067274f76.aero2solver.5233d8672c4f88d4-cgu.04.rcgu.o" "/data/data/com.termux/files/home/aero2solver/target/release/deps/aero2solver-0c8a614067274f76.aero2solver.5233d8672c4f88d4-cgu.05.rcgu.o" "/data/data/com.termux/files/home/aero2solver/target/release/deps/aero2solver-0c8a614067274f76.aero2solver.5233d8672c4f88d4-cgu.06.rcgu.o" "/data/data/com.termux/files/home/aero2solver/target/release/deps/aero2solver-0c8a614067274f76.aero2solver.5233d8672c4f88d4-cgu.07.rcgu.o" "/data/data/com.termux/files/home/aero2solver/target/release/deps/aero2solver-0c8a614067274f76.aero2solver.5233d8672c4f88d4-cgu.08.rcgu.o" "/data/data/com.termux/files/home/aero2solver/target/release/deps/aero2solver-0c8a614067274f76.aero2solver.5233d8672c4f88d4-cgu.09.rcgu.o" "/data/data/com.termux/files/home/aero2solver/target/release/deps/aero2solver-0c8a614067274f76.aero2solver.5233d8672c4f88d4-cgu.10.rcgu.o" "/data/data/com.termux/files/home/aero2solver/target/release/deps/aero2solver-0c8a614067274f76.aero2solver.5233d8672c4f88d4-cgu.11.rcgu.o" "/data/data/com.termux/files/home/aero2solver/target/release/deps/aero2solver-0c8a614067274f76.aero2solver.5233d8672c4f88d4-cgu.12.rcgu.o" "/data/data/com.termux/files/home/aero2solver/target/release/deps/aero2solver-0c8a614067274f76.aero2solver.5233d8672c4f88d4-cgu.13.rcgu.o" "/data/data/com.termux/files/home/aero2solver/target/release/deps/aero2solver-0c8a614067274f76.aero2solver.5233d8672c4f88d4-cgu.14.rcgu.o" "/data/data/com.termux/files/home/aero2solver/target/release/deps/aero2solver-0c8a614067274f76.aero2solver.5233d8672c4f88d4-cgu.15.rcgu.o" "/data/data/com.termux/files/home/aero2solver/target/release/deps/aero2solver-0c8a614067274f76.12st9vstdx7bfupg.rcgu.o" "-Wl,--as-needed" "-L" "/data/data/com.termux/files/home/aero2solver/target/release/deps" "-L" "/data/data/com.termux/files/home/aero2solver/target/release/build/darknet-sys-a2111340efc6c5ca/out/build" "-L" "/data/data/com.termux/files/usr/lib/rustlib/aarch64-linux-android/lib" "-Wl,-Bstatic" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libclap-933d3dd0bf83a9f8.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libclap_builder-3ac8162bba4d40dd.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libstrsim-64576d4317a5626e.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libanstream-d6be53b2fbc352bb.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libanstyle_query-dc9bbf9e017c611a.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libcolorchoice-fb6716b8aaa0bb6f.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libanstyle_parse-6d5490122720ab28.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libutf8parse-56609d6ddb34a398.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libclap_lex-74723782d9a77dc4.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libanstyle-70fd207151c622bd.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libaero2solver-b1c0574848a354be.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libtl-7780378e7349a8fe.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet-61cea95eb3674803.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libthiserror-f92213af4910a60a.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libimage-143ca45d380164df.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libqoi-53d56d5949ced126.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libbytemuck-1dce721959999360.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libpng-213a3dfc9320dd19.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libfdeflate-ce2f084f91871112.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libbitflags-c41cba6fe6cdfa2f.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libexr-3b09b8f97b25498b.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libflume-1462c7e6b4522bb6.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libspin-1bb946694e3033e6.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/liblock_api-d75997a978bd738e.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libfutures_sink-3bdb7859b5e768b1.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libnanorand-13579c6b8077f48a.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libgetrandom-9170e0c793b9c33c.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libzune_inflate-3f900052c70f98ed.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libbit_field-ab3da4eb0ee574ea.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/liblebe-0d1cb2d6046de782.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libhalf-59c93874b0bf1824.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libnum_rational-59ccefc4fc538443.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libnum_integer-7147a7ff026a60d9.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libgif-f4d36e92a3844d1c.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libcolor_quant-cf64792d6d66d75e.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libbyteorder-a5cdaadfbdde06ea.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libnum_traits-cb9b64bf376eac68.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libtiff-d675a1ec63783e21.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libflate2-693f2d18cb726575.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libminiz_oxide-d6f675767ce839b4.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libsimd_adler32-f5a0a56926107bba.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libcrc32fast-fd559911f51649ab.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libweezl-ebc4967631611156.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libjpeg_decoder-7295eda5d2d298a7.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/librayon-a56da5eb3758f133.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/librayon_core-2e649aad9925da3e.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libnum_cpus-818d0c68c2d0fd66.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libcrossbeam_deque-6a30b7ebb68d1b64.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libcrossbeam_epoch-622677382be41f30.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libmemoffset-6de43e7c39f74448.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libscopeguard-23cbcefdb0ec7b74.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libcrossbeam_channel-28feafbf204d488b.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libcrossbeam_utils-a6c339e15c8d120d.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libeither-59b2be322fa88e94.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libanyhow-8a802af7514c6309.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libreqwest-7524e937d3689c01.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libserde_urlencoded-2ccd7fd5fc40b056.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libryu-e5751eab285a3eec.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libbase64-43ed2a350c94b372.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libipnet-9b1ba377ad055608.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libserde-2cdd892cea15e2f7.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libhyper_util-366ac089d4adf3aa.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libtower-34452fb92798a678.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libpin_project-9b47b2282064dc64.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libtower_layer-952c9067b7b9d65d.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libsocket2-adfea0dd8a742264.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libtower_service-21ffadf487124752.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libtracing-c991af7b0f311975.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libcfg_if-8ef3e60959b0efdb.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libtracing_core-5316c919b60cd16a.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libonce_cell-b99a89a68b6eaee3.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libhyper-0bbac2901fcebf09.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libwant-8b38499f8be3bd97.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libtry_lock-c230f15488ca79b2.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libsmallvec-0f0b3dcb487406eb.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libhttparse-90102ec7b0360351.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libfutures_channel-3ef774eb365a2a30.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libfutures_util-94dde551b9b12f9d.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libfutures_task-8516f0c7fca189b2.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libpin_utils-b4aff091f5712fad.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libtokio-273ca3794ad7bf10.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libsocket2-961a296d7b2db57f.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libmio-447768f245667b94.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/liblibc-921c47af75736c3f.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libhttp_body_util-deb2aa5895d9dc0a.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libpin_project_lite-d4ccb2715b377b54.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libhttp_body-4545eb349c651c98.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/liblog-5d46aba48976144c.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libfutures_core-22f5a2e75c999fbe.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/liburl-66c6d584109443ab.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libidna-0ecf36c2d4c86a5f.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libunicode_normalization-f6ee3b486d0f734e.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libtinyvec-6b681a465113526d.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libtinyvec_macros-e34923ef64392624.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libunicode_bidi-7ce158a1236e4606.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libform_urlencoded-89518b4ffea1a0fa.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libpercent_encoding-75f5bf433b1e2ee2.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libhttp-d75f07ade223574f.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libitoa-b0bdbb5986680ab5.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libbytes-8f8d1ac406cd7d77.rlib" "/data/data/com.termux/files/home/aero2solver/target/release/deps/libfnv-179fa3309302bc7c.rlib" "/data/data/com.termux/files/usr/lib/rustlib/aarch64-linux-android/lib/libstd-7a5597fb56609365.rlib" "/data/data/com.termux/files/usr/lib/rustlib/aarch64-linux-android/lib/libpanic_unwind-4860dec51a3c3201.rlib" "/data/data/com.termux/files/usr/lib/rustlib/aarch64-linux-android/lib/libobject-afeeb7af65dd4534.rlib" "/data/data/com.termux/files/usr/lib/rustlib/aarch64-linux-android/lib/libmemchr-a32761e76b59510f.rlib" "/data/data/com.termux/files/usr/lib/rustlib/aarch64-linux-android/lib/libaddr2line-5c51aac3521b9203.rlib" "/data/data/com.termux/files/usr/lib/rustlib/aarch64-linux-android/lib/libgimli-fae7ece5aa8d47c5.rlib" "/data/data/com.termux/files/usr/lib/rustlib/aarch64-linux-android/lib/librustc_demangle-e9ff5a8f636d9549.rlib" "/data/data/com.termux/files/usr/lib/rustlib/aarch64-linux-android/lib/libstd_detect-b715190de45dc458.rlib" "/data/data/com.termux/files/usr/lib/rustlib/aarch64-linux-android/lib/libhashbrown-d7a44cffeccbbaf8.rlib" "/data/data/com.termux/files/usr/lib/rustlib/aarch64-linux-android/lib/librustc_std_workspace_alloc-cfda63ac647b7440.rlib" "/data/data/com.termux/files/usr/lib/rustlib/aarch64-linux-android/lib/libminiz_oxide-1d1748811ad2b9e0.rlib" "/data/data/com.termux/files/usr/lib/rustlib/aarch64-linux-android/lib/libadler-b903e93d72c16974.rlib" "/data/data/com.termux/files/usr/lib/rustlib/aarch64-linux-android/lib/libunwind-ab97e3123faadd99.rlib" "/data/data/com.termux/files/usr/lib/rustlib/aarch64-linux-android/lib/libcfg_if-7835bc550fc7d46e.rlib" "/data/data/com.termux/files/usr/lib/rustlib/aarch64-linux-android/lib/liblibc-33189478420533e3.rlib" "/data/data/com.termux/files/usr/lib/rustlib/aarch64-linux-android/lib/liballoc-4a03f066dfc626c9.rlib" "/data/data/com.termux/files/usr/lib/rustlib/aarch64-linux-android/lib/librustc_std_workspace_core-fd38c62d610b7929.rlib" "/data/data/com.termux/files/usr/lib/rustlib/aarch64-linux-android/lib/libcore-043a3041fa834caf.rlib" "/data/data/com.termux/files/usr/lib/rustlib/aarch64-linux-android/lib/libcompiler_builtins-24de423525e86aa4.rlib" "-Wl,-Bdynamic" "-lstdc++" "-ldl" "-llog" "-lunwind" "-ldl" "-lm" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/data/data/com.termux/files/usr/lib/rustlib/aarch64-linux-android/lib" "-o" "/data/data/com.termux/files/home/aero2solver/target/release/deps/aero2solver-0c8a614067274f76" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-Wl,--strip-debug" "-nodefaultlibs"
= note: ld.lld: error: undefined symbol: std::__ndk1::cerr
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(JSON_sender::write(char const*)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(JSON_sender::write(char const*)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(JSON_sender::write(char const*)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib
>>> referenced 5 more times

ld.lld: error: undefined symbol: std::__ndk1::ctype<char>::id
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(JSON_sender::write(char const*)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(JSON_sender::write(char const*)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(JSON_sender::write(char const*)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib
>>> referenced 3 more times

ld.lld: error: undefined symbol: std::__ndk1::basic_ostream<char, std::__ndk1::char_traits<char>>::operator<<(int)
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(JSON_sender::write(char const*)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(JSON_sender::write(char const*)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(JSON_sender::write(char const*)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib
>>> referenced 4 more times

ld.lld: error: undefined symbol: std::__ndk1::ios_base::getloc() const
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(JSON_sender::write(char const*)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(JSON_sender::write(char const*)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(JSON_sender::write(char const*)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib
>>> referenced 1 more times

ld.lld: error: undefined symbol: std::__ndk1::locale::use_facet(std::__ndk1::locale::id&) const
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(JSON_sender::write(char const*)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(JSON_sender::write(char const*)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(JSON_sender::write(char const*)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib
>>> referenced 1 more times

ld.lld: error: undefined symbol: std::__ndk1::locale::~locale()
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(JSON_sender::write(char const*)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(JSON_sender::write(char const*)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(JSON_sender::write(char const*)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib
>>> referenced 5 more times

ld.lld: error: undefined symbol: std::__ndk1::basic_ostream<char, std::__ndk1::char_traits<char>>::put(char)
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(JSON_sender::write(char const*)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(JSON_sender::write(char const*)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(JSON_sender::write(char const*)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib

ld.lld: error: undefined symbol: std::__ndk1::basic_ostream<char, std::__ndk1::char_traits<char>>::flush()
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(JSON_sender::write(char const*)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(JSON_sender::write(char const*)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(JSON_sender::write(char const*)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib

ld.lld: error: undefined symbol: __cxa_begin_catch
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(__clang_call_terminate) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(std::__ndk1::basic_ostream<char, std::__ndk1::char_traits<char>>& std::__ndk1::__put_character_sequence[abi:v170000]<char, std::__ndk1::char_traits<char>>(std::__ndk1::basic_ostream<char, std::__ndk1::char_traits<char>>&, char const*, unsigned long)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib

ld.lld: error: undefined symbol: std::terminate()
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(__clang_call_terminate) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib

ld.lld: error: undefined symbol: std::__ndk1::basic_ostream<char, std::__ndk1::char_traits<char>>::sentry::sentry(std::__ndk1::basic_ostream<char, std::__ndk1::char_traits<char>>&)
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(std::__ndk1::basic_ostream<char, std::__ndk1::char_traits<char>>& std::__ndk1::__put_character_sequence[abi:v170000]<char, std::__ndk1::char_traits<char>>(std::__ndk1::basic_ostream<char, std::__ndk1::char_traits<char>>&, char const*, unsigned long)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib

ld.lld: error: undefined symbol: std::__ndk1::ios_base::clear(unsigned int)
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(std::__ndk1::basic_ostream<char, std::__ndk1::char_traits<char>>& std::__ndk1::__put_character_sequence[abi:v170000]<char, std::__ndk1::char_traits<char>>(std::__ndk1::basic_ostream<char, std::__ndk1::char_traits<char>>&, char const*, unsigned long)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib

ld.lld: error: undefined symbol: std::__ndk1::basic_ostream<char, std::__ndk1::char_traits<char>>::sentry::~sentry()
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(std::__ndk1::basic_ostream<char, std::__ndk1::char_traits<char>>& std::__ndk1::__put_character_sequence[abi:v170000]<char, std::__ndk1::char_traits<char>>(std::__ndk1::basic_ostream<char, std::__ndk1::char_traits<char>>&, char const*, unsigned long)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(std::__ndk1::basic_ostream<char, std::__ndk1::char_traits<char>>& std::__ndk1::__put_character_sequence[abi:v170000]<char, std::__ndk1::char_traits<char>>(std::__ndk1::basic_ostream<char, std::__ndk1::char_traits<char>>&, char const*, unsigned long)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib

ld.lld: error: undefined symbol: std::__ndk1::ios_base::__set_badbit_and_consider_rethrow()
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(std::__ndk1::basic_ostream<char, std::__ndk1::char_traits<char>>& std::__ndk1::__put_character_sequence[abi:v170000]<char, std::__ndk1::char_traits<char>>(std::__ndk1::basic_ostream<char, std::__ndk1::char_traits<char>>&, char const*, unsigned long)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib

ld.lld: error: undefined symbol: __cxa_end_catch
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(std::__ndk1::basic_ostream<char, std::__ndk1::char_traits<char>>& std::__ndk1::__put_character_sequence[abi:v170000]<char, std::__ndk1::char_traits<char>>(std::__ndk1::basic_ostream<char, std::__ndk1::char_traits<char>>&, char const*, unsigned long)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(std::__ndk1::basic_ostream<char, std::__ndk1::char_traits<char>>& std::__ndk1::__put_character_sequence[abi:v170000]<char, std::__ndk1::char_traits<char>>(std::__ndk1::basic_ostream<char, std::__ndk1::char_traits<char>>&, char const*, unsigned long)) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib

ld.lld: error: undefined symbol: std::__ndk1::mutex::~mutex()
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(_GLOBAL__sub_I_http_stream.cpp) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(_GLOBAL__sub_I_http_stream.cpp) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib

ld.lld: error: undefined symbol: __gxx_personality_v0
>>> referenced by http_stream.cpp
>>>               http_stream.cpp.o:(DW.ref.__gxx_personality_v0) in archive /data/data/com.termux/files/home/aero2solver/target/release/deps/libdarknet_sys-aced07ed00a2b48a.rlib
cc: error: linker command failed with exit code 1 (use -v to see invocation)

error: could not compile `aero2solver` (bin "aero2solver") due to 1 previous error
lopezloo commented 4 months ago

Managed to build it.

> ls /data/data/com.termux/files/usr/lib | grep libc++
libc++_shared.so

thus, you do:

export CXX=clang++
export CC=clang
export CXXFLAGS="-I/data/data/com.termux/files/usr/include/c++/v1"
export LDFLAGS="-L/data/data/com.termux/files/usr/lib -lc++_shared"
export RUSTFLAGS="-C link-arg=-L/data/data/com.termux/files/usr/lib -C link-arg=-lc++_shared"

Now figuring out how to run it.

lopezloo commented 4 months ago

To run, basically: ./target/release/aero2solver from project main directory.

dumbasPL commented 4 months ago

Termux people never fail to amaze me. An Android app wouldn't be a bad idea though. I believe there already is/was an app that helps you enter the codes manually, automating it is the natural next step. The only problem would be the fact that many phone manufacturers like killing apps in the background, see: dontkillmyapp.com. I wonder how hard would it be to build this against NDK