@@ -67,7 +67,7 @@ BUILD_DATE_STRING?=$(shell date +%s)
6767
6868LINKER_FLAGS?=-X=github.com/xaionaro-go/buildvars.GitCommit =$(GIT_COMMIT ) -X=github.com/xaionaro-go/buildvars.Version=$(VERSION_STRING ) -X=github.com/xaionaro-go/buildvars.BuildDateString=$(BUILD_DATE_STRING )
6969
70- WINDOWS_EXTLINKER_FLAGS? =-L$(PWD ) /thirdparty/windows/portaudio-binaries/ -L$(PWD ) /thirdparty/windows/amd64/ffmpeg-n7.0-21-gfb8f0ea7b3-win64-gpl-shared-7.0/lib
70+ WINDOWS_EXTLINKER_FLAGS? =-L$(PWD ) /thirdparty/windows/portaudio-binaries/ -L$(PWD ) /thirdparty/windows/amd64/ffmpeg-n7.0-21-gfb8f0ea7b3-win64-gpl-shared-7.0/lib -L $( PWD ) /thirdparty/windows/amd64/cuda_12.2/libcublas/cublas_dev/lib/x64/ -L $( PWD ) /thirdparty/windows/amd64/cuda_12.2/cuda_cudart/cudart/lib/x64/ -L $( PWD ) /thirdparty/windows/amd64/whisper/ -lwhisper
7171
7272LINKER_FLAGS_ANDROID? =$(LINKER_FLAGS )
7373LINKER_FLAGS_DARWIN? =$(LINKER_FLAGS )
@@ -111,7 +111,9 @@ thirdparty/portaudio/include/portaudio.h:
111111
112112thirdparty/windows/amd64/ready :
113113 mkdir -p thirdparty/windows/amd64
114- sh -c ' cd thirdparty/windows/amd64 && wget https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2024-04-30-12-51/ffmpeg-n7.0-21-gfb8f0ea7b3-win64-gpl-shared-7.0.zip && unzip -o ffmpeg-n7.0-21-gfb8f0ea7b3-win64-gpl-shared-7.0.zip && rm -f ffmpeg-n7.0-21-gfb8f0ea7b3-win64-gpl-shared-7.0.zip'
114+ sh -c ' cd thirdparty/windows/amd64 && wget -nc -q --show-progress https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2024-04-30-12-51/ffmpeg-n7.0-21-gfb8f0ea7b3-win64-gpl-shared-7.0.zip && unzip -o ffmpeg-n7.0-21-gfb8f0ea7b3-win64-gpl-shared-7.0.zip && rm -f ffmpeg-n7.0-21-gfb8f0ea7b3-win64-gpl-shared-7.0.zip'
115+ sh -c ' cd thirdparty/windows/amd64 && wget -nc -q --show-progress https://developer.download.nvidia.com/compute/cuda/12.2.0/local_installers/cuda_12.2.0_536.25_windows.exe && 7z x -y -ocuda_12.2 cuda_12.2.0_536.25_windows.exe && rm -f cuda_12.2.0_536.25_windows.exe'
116+ sh -c ' cd thirdparty/windows/amd64 && wget -nc -q --show-progress https://github.com/xaionaro/whisper-prebuilds/releases/download/99b011a9f5e63f71/whisper-cublas-12.2.0-bin-x64.zip && mkdir whisper && cd whisper && unzip ../whisper-cublas-12.2.0-bin-x64.zip && rm -f ../whisper-cublas-12.2.0-bin-x64.zip'
115117 touch thirdparty/windows/amd64/ready
116118
117119pkg/speech/speechtotext/implementations/whisper/pkgconfig/libwhisper.pc :
@@ -147,7 +149,7 @@ subtitleswindow-linux-amd64: build deps
147149
148150subtitleswindow-windows-amd64 : build deps windows-deps
149151 $(eval INSTALL_DEST?=build/subtitleswindow-windows-amd64.exe)
150- PKG_CONFIG_PATH=$(PKG_CONFIG_PATH ) CGO_ENABLED=1 CGO_LDFLAGS=" -static " CGO_CFLAGS=" $( WINDOWS_CGO_FLAGS) " CC=x86_64-w64-mingw32-gcc GOOS=windows go build $(GOBUILD_FLAGS ) -ldflags " $( LINKER_FLAGS_WINDOWS) " -o " $( INSTALL_DEST) " ./cmd/subtitleswindow
152+ PKG_CONFIG_PATH=$(PKG_CONFIG_PATH ) CGO_ENABLED=1 CGO_LDFLAGS=" " CGO_CFLAGS=" $( WINDOWS_CGO_FLAGS) " CC=x86_64-w64-mingw32-gcc GOOS=windows go build $(GOBUILD_FLAGS ) -ldflags " $( LINKER_FLAGS_WINDOWS) " -o " $( INSTALL_DEST) " ./cmd/subtitleswindow
151153 $(eval undefine INSTALL_DEST)
152154
153155example-stt : stt-$(shell go env GOOS) -$(shell go env GOARCH)
0 commit comments