bab2min / Kiwi

Kiwi(지능형 한국어 형태소 분석기)
https://lab.bab2min.pe.kr/kiwi
Other
396 stars 46 forks source link

Issue compiling version 0.15.0 to arm64 on VS2022 windows #168

Open valdirSalgueiro opened 1 month ago

valdirSalgueiro commented 1 month ago

Getting this error 3>C:\Projects\Kiwi0.15.0\Kiwi\src\search.cpp(908,57): error C2146: syntax error: missing ';' before identifier 'mask' seems to come from this line static const uint8x16_t __attribute__((aligned(16))) mask = { 1, 2, 4, 8, 16, 32, 64, 128, 1, 2, 4, 8, 16, 32, 64, 128 };

Any idea how to fix it? thanks! image

bab2min commented 1 month ago

Hi @valdirSalgueiro Unfortunately, Kiwi does not support Windows ARM64 yet now. I will add Windows ARM64 to the next update.

bab2min commented 1 month ago

Hey @valdirSalgueiro I've modified few lines for Windows ARM64 compiling. It seems to compile well, but I cannot test whether it runs well on Windows ARM64. You can see the updated code at dev_win_arm64 branch.

valdirSalgueiro commented 3 weeks ago

thanks for the prompt version. I downloaded the branch you mentioned but still was unable to compile. Maybe is a problem with VS 2022? image

bab2min commented 2 weeks ago

@valdirSalgueiro Hmmm, it seems cpuinfo doesn't support ARM64 on Windows maybe. You can disable cpuinfo by undefining KIWI_USE_CPUINFO and exclude them from the build.