SQLite Forum

Compile for Apple Silicon
Login
So, in the "feel very silly" stage, it's failing because it was trying to build an executable not a lib. Should have figured that out from the error about main.

clang -arch arm64 -arch x86_64 -dynamiclib -o sqlite3 sqlite3.c

Works, at least insofar as it builds cleanly and generates a lib. Crazy fast as well, cool.

I just tried the autoconf tarball and that also worked. Generated the following, so now I get to research exactly which file/lib is which. :)

Thanks to everyone for the help, much appreciated.

```
sqlite-autoconf-3370000 % diff start.txt end.txt
1a2
> Makefile
10a12,13
> config.log
> config.status
14a18
> end.txt
15a20,21
> libsqlite3.la
> libtool
18a25,27
> sqlite3
> sqlite3-shell.o
> sqlite3-sqlite3.o
21a31,33
> sqlite3.lo
> sqlite3.o
> sqlite3.pc
```