From 99513f66e39dc408b329ea6db9418a8475bff8e8 Mon Sep 17 00:00:00 2001 From: Awin Huang Date: Wed, 10 Aug 2022 16:30:48 +0800 Subject: [PATCH] vault backup: 2022-08-10 16:30:48 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Affected files: .obsidian/workspace 02. PARA/03. Resources(資源)/sqlite.md --- .obsidian/workspace | 10 +++++----- 02. PARA/03. Resources(資源)/sqlite.md | 13 +++++++++++++ 2 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 02. PARA/03. Resources(資源)/sqlite.md diff --git a/.obsidian/workspace b/.obsidian/workspace index b219666..4a0fbd6 100644 --- a/.obsidian/workspace +++ b/.obsidian/workspace @@ -9,7 +9,7 @@ "state": { "type": "markdown", "state": { - "file": "02. PARA/02. Area(領域)/20150803 - Android/ADB 取得 APK 的 icon.md", + "file": "02. PARA/03. Resources(資源)/sqlite.md", "mode": "source", "source": true } @@ -69,7 +69,7 @@ "state": { "type": "backlink", "state": { - "file": "02. PARA/02. Area(領域)/20150803 - Android/ADB 取得 APK 的 icon.md", + "file": "02. PARA/03. Resources(資源)/sqlite.md", "collapseAll": false, "extraContext": false, "sortOrder": "alphabetical", @@ -86,7 +86,7 @@ "state": { "type": "outline", "state": { - "file": "02. PARA/02. Area(領域)/20150803 - Android/ADB 取得 APK 的 icon.md" + "file": "02. PARA/03. Resources(資源)/sqlite.md" } } } @@ -116,6 +116,7 @@ }, "active": "ec13ce58b15fa6d4", "lastOpenFiles": [ + "02. PARA/02. Area(領域)/20150803 - Android/ADB 取得 APK 的 icon.md", "02. PARA/03. Resources(資源)/QT/QVariant.md", "00. TOP/01. TODO.md", "02. PARA/01. Project(專案)/008. Sentinel.md", @@ -124,7 +125,6 @@ "02. PARA/03. Resources(資源)/C++17/for_each.md", "02. PARA/03. Resources(資源)/讀書筆記/20220619 - 精確的力量.md", "02. PARA/03. Resources(資源)/C++17/智慧指標.md", - "02. PARA/03. Resources(資源)/C++17/C++17.md", - "02. PARA/02. Area(領域)/20150803 - Android/ADB 取得 APK 的 icon.md" + "02. PARA/03. Resources(資源)/C++17/C++17.md" ] } \ No newline at end of file diff --git a/02. PARA/03. Resources(資源)/sqlite.md b/02. PARA/03. Resources(資源)/sqlite.md new file mode 100644 index 0000000..b803feb --- /dev/null +++ b/02. PARA/03. Resources(資源)/sqlite.md @@ -0,0 +1,13 @@ +## Build Sqlite3 +1. Navigate to [https://www.sqlite.org/download.html](https://www.sqlite.org/download.html) and download latest `amalgamation` source version of SQLite. +2. Extract all the files into your project directory, or your include path, or separate path that you will add/added as include path in your project properties. +3. Run `Developer Command Prompt for VS ****` which is usually available at `Start -> Programs -> Visual Studio **** -> Visual Studio Tools`. +4. Navigate with command prompt to that directory where we extracted our SQLite. +5. Run next command to compile: `cl /c /EHsc sqlite3.c` +6. Run next command to create static library: `lib sqlite3.obj` +7. Open properties of your project and add `sqlite3.lib` to `Linker -> Input -> Additional Dependencies`. + +Now you ready to include and use `sqlite3.h` in your project. + +### 參考 +- [How to add SQLite into your VS project as Static Library](https://gist.github.com/payalord/c87cbd1d12ea7712449657d1c6583e12) \ No newline at end of file