-
Download source from source
For example: source
https://www.sqlite.org/2023/sqlite-amalgamation-3430100.zip
-
Download binary from binary
For example: binary
https://www.sqlite.org/2023/sqlite-dll-win64-x64-3430100.zip
-
Extract both archives to the same directory
-
Open Developer Command Prompt for VS 2017 by typing Developer Command in Windows Search
-
Go to directory where you've extracted source code and binary files (via opened cmd)
-
Run
lib /DEF:sqlite3.def /OUT:sqlite3.lib /MACHINE:x64
Last active
May 20, 2024 18:23
-
-
Save zeljic/d8b542788b225b1bcb5fce169ee28c55 to your computer and use it in GitHub Desktop.
Build SQLite3 .lib file on windows
Thank you!
Updated to latest source
and binary
(version 3.43.1.)
SQLITE_VERSION=$(echo $(curl -s 'https://www.sqlite.org/download.html') | awk '{ sub(".*sqlite-autoconf-",""); sub("\\.tar.*",""); sub("/.*",""); print; }')
DLL_URL="https://www.sqlite.org/`date +"%Y"`/sqlite-dll-win64-x64-${SQLITE_VERSION}.zip"
SOURCE_URL="https://www.sqlite.org/`date +"%Y"`/sqlite-amalgamation-${SQLITE_VERSION}.zip"
You are in wrong directory, you are executing lib command in C:\Program Files\Microsoft Visual Studio\2022\Community
but you should first move to D:\sqlite-amalgamation-3430100
Issue solved ,thank you @zeljic
thank you, sir~
thank you
thank you!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nice, thank you!