From 48cdb99be25ef10c909cba8371775ab77e71980c Mon Sep 17 00:00:00 2001 From: Zhitao Chen Date: Thu, 5 Jan 2017 09:30:59 +0800 Subject: [PATCH] Copy the building progress from AppVeyor CI. --- Build-Instructions-for-Windows.md | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Build-Instructions-for-Windows.md diff --git a/Build-Instructions-for-Windows.md b/Build-Instructions-for-Windows.md new file mode 100644 index 0000000..f1d7c0e --- /dev/null +++ b/Build-Instructions-for-Windows.md @@ -0,0 +1,36 @@ +## Installing dependencies +Qt 5.5 mingw version: http://download.qt.io/archive/qt/5.5/5.5.1/qt-opensource-windows-x86-mingw492-5.5.1.exe + +libarchive: https://bintray.com/zealdocs/windows-ci/download_file?file_path=libarchive-3.2.1-win32-mingw492.7z + +sqlite3: http://sqlite.org/2016/sqlite-amalgamation-3140200.zip + + +## Building Zeal (Use the path setting above) +```powershell +# Set Qt Install dir +Set-Variable -Name "qt_dir" -Value "C:\Qt\Qt5.5.1" + +$env:Path = "${qt_dir}\5.5\mingw492_32\bin;${qt_dir}\Tools\mingw492_32\bin;C:\Program Files\7-Zip;$env:Path" + +# Put libarchive to mingw path +7z x libarchive-3.2.1-win32-mingw492.7z -o${qt_dir}\Tools\mingw492_32\i686-w64-mingw32 + +# Building sqlite and Put it to mingw path +7z x sqlite-amalgamation-3140200.zip +cd sqlite-amalgamation-3140200 +gcc -c sqlite3.c +ar rcs libsqlite3.a sqlite3.o +cp *.h ${qt_dir}\Tools\mingw492_32\i686-w64-mingw32\include +cp *.a ${qt_dir}\Tools\mingw492_32\i686-w64-mingw32\lib + +# Get and building zeal +git clone -q --branch=master https://github.com/zealdocs/zeal.git C:\projects\zeal +qmake -r -spec win32-g++ +mingw32-make +``` + +## Packaging +to be added + +You can use Qt Creator run and debug the program now. \ No newline at end of file