# nspv windows build Clone ```bash git clone https://github.com/jl777/libnspv/ cd libnspv git checkout dev ``` Create a new file named `build.sh` and add the following contents to it. ```bash #!/bin/bash export HOST=x86_64-w64-mingw32 CXX=x86_64-w64-mingw32-g++-posix CC=x86_64-w64-mingw32-gcc-posix PREFIX="$(pwd)/depends/$HOST" set -eu -o pipefail set -x cd depends/ && make HOST=$HOST V=1 NO_QT=1 cd ../ ./autogen.sh CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site CXXFLAGS="-DPTW32_STATIC_LIB -DCURL_STATICLIB -DCURVE_ALT_BN128 -fopenmp -pthread" ./configure --prefix="${PREFIX}" --host=x86_64-w64-mingw32 --enable-static --disable-shared cd src/tools/cryptoconditions ./autogen.sh CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site CXXFLAGS="-DPTW32_STATIC_LIB -DCURL_STATICLIB -DCURVE_ALT_BN128 -fopenmp -pthread" ./configure --prefix="${PREFIX}" --host=x86_64-w64-mingw32 --enable-static --disable-shared CC="${CC} -g " CXX="${CXX} -g " make V=1 cd ../../.. CC="${CC} -g " CXX="${CXX} -g " make V=1 ``` Make the file executable and run it ```bash chmod +x build.sh ./build.sh ```