build windows with tags slqite_icu failed
Opened this issue · 0 comments
labulakalia commented
github.com/mattn/go-sqlite3
sqlite3-binding.c:216662:10: fatal error: unicode/utypes.h: No such file or directory
216662 | #include <unicode/utypes.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
step:
1.download it and uncompress https://github.com/unicode-org/icu/releases/download/release-76-1/icu4c-76_1-Win64-MSVC2022.zip
2.set CGO_CFLAGS='-Iicu4c_win\include'
3.set CGO_LDFLAGS='-Licu4c_win\lib64'
4.go build -tags "sqlite_icu" -x -buildmode=c-shared -o main.dll main.go