Skip to content

Build Instructions for Windows

marky1954 edited this page Mar 10, 2023 · 11 revisions

Installing dependencies

Qt 5.5 mingw version: https://download.qt.io/new_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)

# 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.