From c32099705f66fb632dfae6a20ca2e185bce542ed Mon Sep 17 00:00:00 2001 From: Nickolay Shmyrev Date: Fri, 7 Jan 2022 17:33:47 +0100 Subject: [PATCH] Fix branch name and add implib dump --- travis/Dockerfile.win | 2 +- travis/Dockerfile.win32 | 2 +- travis/build-wheels-win.sh | 4 ++-- travis/build-wheels-win32.sh | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/travis/Dockerfile.win b/travis/Dockerfile.win index 89081c2b..4f00bfcc 100644 --- a/travis/Dockerfile.win +++ b/travis/Dockerfile.win @@ -55,7 +55,7 @@ RUN cd /opt/kaldi \ && find . -name *.a -exec cp {} /opt/kaldi/local/lib \; RUN cd /opt/kaldi \ - && git clone -b android-mix --single-branch https://github.com/alphacep/kaldi \ + && git clone -b vosk-android --single-branch https://github.com/alphacep/kaldi \ && cd kaldi/src \ && CXX=x86_64-w64-mingw32-g++-posix CXXFLAGS="-O3 -ftree-vectorize -DFST_NO_DYNAMIC_LINKING" ./configure --shared --mingw=yes --use-cuda=no \ --mathlib=OPENBLAS_CLAPACK \ diff --git a/travis/Dockerfile.win32 b/travis/Dockerfile.win32 index 59198d9a..5a478e52 100644 --- a/travis/Dockerfile.win32 +++ b/travis/Dockerfile.win32 @@ -54,7 +54,7 @@ RUN cd /opt/kaldi \ && find . -name *.a -exec cp {} /opt/kaldi/local/lib \; RUN cd /opt/kaldi \ - && git clone -b android-mix --single-branch https://github.com/alphacep/kaldi \ + && git clone -b vosk-android --single-branch https://github.com/alphacep/kaldi \ && cd kaldi/src \ && CXX=i686-w64-mingw32-g++-posix CXXFLAGS="-O3 -ftree-vectorize -DFST_NO_DYNAMIC_LINKING" ./configure --shared --mingw=yes --use-cuda=no \ --mathlib=OPENBLAS_CLAPACK \ diff --git a/travis/build-wheels-win.sh b/travis/build-wheels-win.sh index 750b6dd7..02bf6efc 100755 --- a/travis/build-wheels-win.sh +++ b/travis/build-wheels-win.sh @@ -5,7 +5,7 @@ set -e -x cd /opt git clone https://github.com/alphacep/vosk-api cd vosk-api/src -CXX=x86_64-w64-mingw32-g++-posix EXT=dll KALDI_ROOT=/opt/kaldi/kaldi OPENFST_ROOT=/opt/kaldi/local OPENBLAS_ROOT=/opt/kaldi/local make -j $(nproc) +EXTRA_LDFLAGS=-Wl,--out-implib,libvosk.lib CXX=x86_64-w64-mingw32-g++-posix EXT=dll KALDI_ROOT=/opt/kaldi/kaldi OPENFST_ROOT=/opt/kaldi/local OPENBLAS_ROOT=/opt/kaldi/local make -j $(nproc) # Collect dependencies cp /usr/lib/gcc/x86_64-w64-mingw32/*-posix/libstdc++-6.dll /opt/vosk-api/src @@ -14,7 +14,7 @@ cp /usr/x86_64-w64-mingw32/lib/libwinpthread-1.dll /opt/vosk-api/src # Copy dlls to output folder mkdir -p /io/wheelhouse/win64 -cp /opt/vosk-api/src/*.dll /io/wheelhouse/win64 +cp /opt/vosk-api/src/*.{dll,lib} /io/wheelhouse/win64 # Build wheel and put to the output folder export VOSK_SOURCE=/opt/vosk-api diff --git a/travis/build-wheels-win32.sh b/travis/build-wheels-win32.sh index 2b934bd3..82af745e 100755 --- a/travis/build-wheels-win32.sh +++ b/travis/build-wheels-win32.sh @@ -5,7 +5,7 @@ set -e -x cd /opt git clone https://github.com/alphacep/vosk-api cd vosk-api/src -CXX=i686-w64-mingw32-g++-posix EXT=dll KALDI_ROOT=/opt/kaldi/kaldi OPENFST_ROOT=/opt/kaldi/local OPENBLAS_ROOT=/opt/kaldi/local make -j $(nproc) +EXTRA_LDFLAGS=-Wl,--out-implib,libvosk.lib CXX=i686-w64-mingw32-g++-posix EXT=dll KALDI_ROOT=/opt/kaldi/kaldi OPENFST_ROOT=/opt/kaldi/local OPENBLAS_ROOT=/opt/kaldi/local make -j $(nproc) # Copy dependencies cp /usr/lib/gcc/i686-w64-mingw32/*-posix/libstdc++-6.dll /opt/vosk-api/src @@ -14,7 +14,7 @@ cp /usr/i686-w64-mingw32/lib/libwinpthread-1.dll /opt/vosk-api/src # Copy dlls to output folder mkdir -p /io/wheelhouse/win32 -cp /opt/vosk-api/src/*.dll /io/wheelhouse/win32 +cp /opt/vosk-api/src/*.{dll,lib} /io/wheelhouse/win32 # Build wheel and put to the output folder export VOSK_SOURCE=/opt/vosk-api