SQLite Forum

Error compiling Tcl binding with ICU
Login

Error compiling Tcl binding with ICU

(1.1) By Gerry Snyder (GSnyder) on 2021-03-19 22:58:30 edited from 1.0 [source]

After compiling the vanilla 3.35.2 Tcl binding, I modified the makefile.vc to include the new math functions, and that went well. Then I added ICU, and got an error:

....sqlite3.c(197501): fatal error C1083: Cannot open include file: 'unicode/utypes.h': No such file or directory

What am I doing wrong? I used magicsplat for the Tcl stubs.

Gerry Snyder

(2) By Keith Medcalf (kmedcalf) on 2021-03-19 23:01:42 in reply to 1.0 [link] [source]

The file 'unicode/utypes.c' does not exist.

This is part of ICU so this would indicate that you forgot to actually set up ICU or provide correct INCLUDE directives to whatever compiler you are using on whatever Operating System you are using.

(3) By Gerry Snyder (GSnyder) on 2021-03-19 23:05:38 in reply to 2 [link] [source]

I did not actually set up ICU (as far as I knew, the amalgamation included everything needed), and I just did the Visual Studio 2019 compile for Win 10 that worked without ICU.

(4) By Keith Medcalf (kmedcalf) on 2021-03-19 23:09:50 in reply to 3 [link] [source]

There is the problem. In order to use ICU you have to install ICU first. SQLite3 knows how to use ICU but does not include ICU.

The International Components for Unicode is a separate entity.

(5) By Gerry Snyder (GSnyder) on 2021-03-19 23:26:26 in reply to 4 [link] [source]

Thank you, Keith.

That certainly makes sense, but I had not realized it.