Skip to content

Instantly share code, notes, and snippets.

@345161974
Forked from zeljic/build_sqlite3_lib.md
Created March 19, 2023 13:39
Show Gist options
  • Save 345161974/7ee29a095778c45a03fa8b6e9aef6d3d to your computer and use it in GitHub Desktop.
Save 345161974/7ee29a095778c45a03fa8b6e9aef6d3d to your computer and use it in GitHub Desktop.
Build SQLite3 .lib file on windows

How to build SQLite3 .lib file on Windows 10

  1. Download source from source (https://www.sqlite.org/download.html)

    For example: source https://www.sqlite.org/2022/sqlite-amalgamation-3390300.zip

  2. Download binary from binary

    For example: binary https://www.sqlite.org/2022/sqlite-dll-win64-x64-3390300.zip

  3. Extract both archives to the same directory

  4. Open Developer Command Prompt for VS 2017 by typing Developer Command in Windows Search

  5. Go to directory where you've extracted source code and binary files (via opened cmd)

  6. Run lib /DEF:sqlite3.def /OUT:sqlite3.lib /MACHINE:x64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment