Difference between revisions of "Gramps for Windows with MSYS2"
(MSYS2) |
|||
Line 1: | Line 1: | ||
+ | This page will describe how to use MSYS2 to run last Gramps development version from source in 64bit Windows. | ||
+ | <br>In similar way you can built 32bit version | ||
==Install MSYS2== | ==Install MSYS2== | ||
− | Download [http://repo.msys2.org/distrib/x86_64/msys2-x86_64-20161025.exe MSYS2 64bit] installer | + | Download [http://repo.msys2.org/distrib/x86_64/msys2-x86_64-20161025.exe MSYS2 64bit] installer and run it. |
+ | <br>Install it in short path like C:\MSYS2 | ||
+ | <br>At the end of install select to run mingw64 shell | ||
===Update MSYS2=== | ===Update MSYS2=== | ||
+ | First update list of packages and update core packages | ||
<pre> | <pre> | ||
pacman -Syuu | pacman -Syuu | ||
</pre> | </pre> | ||
+ | If core packages are updated close the mingw64 shell | ||
===Install Gramps dependencies=== | ===Install Gramps dependencies=== | ||
+ | Start mingw64 shell and use '''pacman''' package menager to download and install Gramps dependencies | ||
<pre> | <pre> | ||
pacman -S mingw-w64-x86_64-python3-bsddb3 mingw-w64-x86_64-gexiv2 mingw-w64-x86_64-osmgpsmap-git mingw-w64-x86_64-ghostscript mingw-w64-x86_64-python3-cairo mingw-w64-x86_64-python3-gobject mingw-w64-x86_64-python3-icu mingw-w64-x86_64-iso-codes mingw-w64-x86_64-hunspell mingw-w64-x86_64-hunspell-en mingw-w64-x86_64-enchant | pacman -S mingw-w64-x86_64-python3-bsddb3 mingw-w64-x86_64-gexiv2 mingw-w64-x86_64-osmgpsmap-git mingw-w64-x86_64-ghostscript mingw-w64-x86_64-python3-cairo mingw-w64-x86_64-python3-gobject mingw-w64-x86_64-python3-icu mingw-w64-x86_64-iso-codes mingw-w64-x86_64-hunspell mingw-w64-x86_64-hunspell-en mingw-w64-x86_64-enchant | ||
Line 14: | Line 21: | ||
</pre> | </pre> | ||
==Install Gramps== | ==Install Gramps== | ||
+ | ===Prepare source=== | ||
Create directory when to store Gramps source and go to it | Create directory when to store Gramps source and go to it | ||
<pre> | <pre> | ||
Line 19: | Line 27: | ||
cd ~/grampsdev | cd ~/grampsdev | ||
</pre> | </pre> | ||
+ | ===Download source=== | ||
Download Gramps master branch from source repository | Download Gramps master branch from source repository | ||
<pre> | <pre> | ||
Line 29: | Line 38: | ||
git describe | git describe | ||
</pre> | </pre> | ||
− | it should return something like: v5.0.0-alpha1-1024-g0919763f1 | + | it should return something like: |
− | + | <blockquote> | |
− | + | v5.0.0-alpha1-1024-g0919763f1 | |
+ | </blockquote> | ||
+ | ===Setup source=== | ||
+ | Before using Gramps you must set-it up. | ||
+ | <br>You just use '''setup build''' command not '''install''' one | ||
+ | <pre> | ||
+ | python3 setup.py build | ||
+ | </pre> | ||
+ | ==Run Gramps== | ||
+ | Start mingw64 shell and go to directory where Gramps source reside | ||
+ | <pre> | ||
+ | cd ~/grampsdev | ||
+ | </pre> | ||
+ | Use python3 to start Gramps | ||
+ | <br>To check gramps version use "v" flag | ||
+ | <pre> | ||
+ | python3 Gramps.py -v | ||
+ | </pre> | ||
+ | It should return something like: | ||
+ | <pre> | ||
+ | Gramps Settings: | ||
+ | ---------------- | ||
+ | python : 3.5.3 | ||
+ | gramps : 5.0.0-alpha1-0919763f1 | ||
+ | gtk++ : 3.22.9 | ||
+ | pygobject : 3.22.0 | ||
+ | pango : 1.40.3 | ||
+ | cairo : 1.15.4 | ||
+ | pycairo : 1.1.10 | ||
+ | osmgpsmap : 1.0 | ||
+ | GExiv2 : 0.10 | ||
+ | ICU : 57.1 | ||
+ | PyICU : 1.9.3 | ||
+ | o.s. : win32 | ||
+ | Non-python dependencies: | ||
+ | ------------------------ | ||
+ | Graphviz : Graphviz not in system PATH | ||
+ | Ghostscr. : 9.20 | ||
+ | </pre> | ||
+ | Run Gramps | ||
+ | <pre> | ||
+ | python3 Gramps.py | ||
+ | </pre> | ||
[[Category:GEPS|M]] | [[Category:GEPS|M]] | ||
[[Category:Developers/General]] | [[Category:Developers/General]] |
Revision as of 22:03, 20 March 2017
This page will describe how to use MSYS2 to run last Gramps development version from source in 64bit Windows.
In similar way you can built 32bit version
Contents
Install MSYS2
Download MSYS2 64bit installer and run it.
Install it in short path like C:\MSYS2
At the end of install select to run mingw64 shell
Update MSYS2
First update list of packages and update core packages
pacman -Syuu
If core packages are updated close the mingw64 shell
Install Gramps dependencies
Start mingw64 shell and use pacman package menager to download and install Gramps dependencies
pacman -S mingw-w64-x86_64-python3-bsddb3 mingw-w64-x86_64-gexiv2 mingw-w64-x86_64-osmgpsmap-git mingw-w64-x86_64-ghostscript mingw-w64-x86_64-python3-cairo mingw-w64-x86_64-python3-gobject mingw-w64-x86_64-python3-icu mingw-w64-x86_64-iso-codes mingw-w64-x86_64-hunspell mingw-w64-x86_64-hunspell-en mingw-w64-x86_64-enchant
Install Git
pacman -S msys/git
Install Gramps
Prepare source
Create directory when to store Gramps source and go to it
mkdir ~/grampsdev cd ~/grampsdev
Download source
Download Gramps master branch from source repository
git init git remote add -t master -f origin https://github.com/gramps-project/gramps.git git checkout master
Check which Gramps version is used
git describe
it should return something like:
v5.0.0-alpha1-1024-g0919763f1
Setup source
Before using Gramps you must set-it up.
You just use setup build command not install one
python3 setup.py build
Run Gramps
Start mingw64 shell and go to directory where Gramps source reside
cd ~/grampsdev
Use python3 to start Gramps
To check gramps version use "v" flag
python3 Gramps.py -v
It should return something like:
Gramps Settings: ---------------- python : 3.5.3 gramps : 5.0.0-alpha1-0919763f1 gtk++ : 3.22.9 pygobject : 3.22.0 pango : 1.40.3 cairo : 1.15.4 pycairo : 1.1.10 osmgpsmap : 1.0 GExiv2 : 0.10 ICU : 57.1 PyICU : 1.9.3 o.s. : win32 Non-python dependencies: ------------------------ Graphviz : Graphviz not in system PATH Ghostscr. : 9.20
Run Gramps
python3 Gramps.py