Skip to content

Notes for compiling on Windows

Justin Clift edited this page Apr 28, 2016 · 25 revisions

These are initial rough notes for compiling on Windows

Managed to get it working, but haven't written down the process (yet), which I'll start on tomorrow.

In the meantime, these are my initial notes below. 😄

Software being used

✔ Compiling SQLite

Initially followed the official SQLite instructions here, underneath the "Building A Windows DLL" heading:

    https://sqlite.org/howtocompile.html

The command line given needs to be launched through the "VS2013 x64 Native Tools Command Prompt". That's accessed through the "Visual Studio Tools" launcher found in the Win 8.1 menu structure.

Although the command generates the .dll (as per the heading)... it turns out MSVC needs a .lib file generated as well to do any useful compiling/development with it. (That REALLY should be mentioned on the SQLite compiling page 😦)

The correct command to run instead, which created both the .dll file and other supporting files (such as the .lib), is this:

cl sqlite3.c -DSQLITE_API=__declspec(dllexport) -link -dll -out:sqlite3.dll

That's copied from here.

✔ Trying with CMake now instead

  1. Installed the above SQLite + OpenSSL to a directory off C:\
  2. Change the paths in the CMakeLists.txt file to match the correct locations
  • QT5_PATH
  • SQLITE3_PATH
  • OPENSSL_PATH
  1. Run "cmake" (the command line version, not the gui) from the main sqlitebrowser git repo directory

...

Managed to get it working, with the assistance of @drescherjm (seriously, thanks! 😄).

Tomorrow I'll go back through it, get it working from scratch, and document the process so everyone else with an interest can make it happen too.

Related Issue(s) in our repo

Other notes

Clone this wiki locally