Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build windows with tags slqite_icu failed #1297

Open
labulakalia opened this issue Nov 15, 2024 · 0 comments
Open

build windows with tags slqite_icu failed #1297

labulakalia opened this issue Nov 15, 2024 · 0 comments

Comments

@labulakalia
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant