mirror of
https://github.com/zealdocs/zeal.git
synced 2024-11-22 21:53:03 +03:00
Copy the building progress from AppVeyor CI.
parent
bbc934c167
commit
48cdb99be2
36
Build-Instructions-for-Windows.md
Normal file
36
Build-Instructions-for-Windows.md
Normal file
@ -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.
|
Loading…
Reference in New Issue
Block a user