diff --git a/android/lib/build-vosk.sh b/android/lib/build-vosk.sh index e455fa46..eea322a7 100755 --- a/android/lib/build-vosk.sh +++ b/android/lib/build-vosk.sh @@ -76,7 +76,6 @@ case $arch in esac mkdir -p $WORKDIR/local/lib - # openblas first cd $WORKDIR git clone -b v0.3.13 --single-branch https://github.com/xianyi/OpenBLAS @@ -123,7 +122,7 @@ make -j 8 online2 lm rnnlm # Vosk-api cd $WORKDIR mkdir -p $WORKDIR/vosk -make -j 8 -C ${WORKDIR_BASE}/../../../src OUTDIR=$WORKDIR/vosk KALDI_ROOT=${WORKDIR}/kaldi OPENFST_ROOT=${WORKDIR}/local OPENBLAS_ROOT=${WORKDIR}/local CXX=$CXX EXTRA_LDFLAGS="-llog -static-libstdc++" +make -j 8 -C ${WORKDIR_BASE}/../../../src OUTDIR=$WORKDIR/vosk KALDI_ROOT=${WORKDIR}/kaldi OPENFST_ROOT=${WORKDIR}/local OPENBLAS_ROOT=${WORKDIR}/local CXX=$CXX EXTRA_LDFLAGS="-llog -static-libstdc++ -Wl,-soname,libvosk.so" cp $WORKDIR/vosk/libvosk.so $WORKDIR/../../src/main/jniLibs/$arch/libvosk.so done