mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 04:49:08 +08:00
3cd28420f1
This patch makes compile milvus under windows(MSYS), including: - some cpp adaptation for compile under msys/gcc-10.3 - install toolchain scripts for setup from MinGW/MSYS `scripts/install_deps_msys.sh` - adaptation for POSIX API use in golang * using gofrs/flock instead of syscall.Flock * using x/exp/mmap instead of syscall.Mmap - introducing github actions for build milvus.exe under windows/MSYS - rocksdb's patch for MSYS - adaptation for compile knowhere under windows - a windows package script for pack zip file, `scripts/package_windows.sh` issue #7706 Signed-off-by: Ji Bin <matrixji@live.com>
36 lines
804 B
Bash
36 lines
804 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
if [[ "${MSYSTEM}" != "MINGW64" ]] ; then
|
|
echo non MINGW64, exit.
|
|
exit 1
|
|
fi
|
|
|
|
pacman -Su --noconfirm --needed \
|
|
git make tar dos2unix zip unzip patch \
|
|
mingw-w64-x86_64-toolchain \
|
|
mingw-w64-x86_64-make \
|
|
mingw-w64-x86_64-ccache \
|
|
mingw-w64-x86_64-cmake \
|
|
mingw-w64-x86_64-go \
|
|
mingw-w64-x86_64-boost \
|
|
mingw-w64-x86_64-intel-tbb \
|
|
mingw-w64-x86_64-openblas \
|
|
mingw-w64-x86_64-clang \
|
|
mingw-w64-x86_64-clang-tools-extra \
|
|
mingw-w64-x86_64-python2 \
|
|
mingw-w64-x86_64-diffutils \
|
|
mingw-w64-x86_64-arrow \
|
|
mingw-w64-x86_64-rocksdb
|
|
|
|
|
|
# dummy empty dl, TODO: remove later
|
|
touch a.c && \
|
|
gcc -c a.c && \
|
|
ar rc libdl.a a.o && \
|
|
ranlib libdl.a && \
|
|
cp -fr libdl.a /mingw64/lib && \
|
|
rm -fr a.c a.o libdl.a
|
|
|