Skip to content

[Feature Request] Termux support #195

@Bsd-us

Description

@Bsd-us

Hello, this issue follows the discussion someone created a few days ago here

As this gave me hope this could be a feature in future builds
All the following was found on Termux's discord and in a dedicated thread you can find here

So audio-file-to-fingerprint and audio-file-to-recognized-song commands ended up working by forcing the build with these obscure commands

pkg install openssh build-essential rust
pkg upgrade
pkg remove ndk-multilib # if you have this, it will somehow conflict
pkg install gettext
export GETTEXT_DIR="$PREFIX"
# this part is hard to explain but basically it compiles the libintl.h into a libintl.a that -lintl works on
sed -e 's/__inline__//g' -e 's/^static//g' $PREFIX/include/libintl.h | clang -O0 -x c -c -o libintl.o -
ar cru $PREFIX/lib/libintl.a libintl.o 
# force -lc++_static to link to libc++_shared.so instead (oboe-sys problem)
echo 'INPUT(-lc++_shared)' > $PREFIX/lib/libc++_static.so
cargo install songrec --no-default-features

As it seems they're mainly the ones which are able to avoid using the audio part of the program
I hope you can check all the details on discord as they're probably very valuable information
thank you for your time !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions