Changes

Jump to: navigation, search

Gramps for Windows with MSYS2

852 bytes added, 01:43, 24 August 2023
Run second update after core packages are updated
{{man warn|1=Warning|2=Do not open your existing databases with the master branch, it might destroy your data, and will make it impossible to use the data in the stable version {{stable_branch}}. To try it out, export your database to a gramps xml file, eg <code>test_master.gramps</code>, create a new family tree in the master branch, and import this xml file.<br>Alternatively you can [[Gramps_for_Windows_with_MSYS2#Keep_your_GRAMPSHOME_separate|Keep your GRAMPSHOME separate]] }}
How to use MSYS2 to run latest Gramps development version from source in 64bit Windows.
In similar way you can build the 32bit version([https://www.msys2.org/news/#2020-05-17-32-bit-msys2-no-longer-actively-supported 2020-05-17 - 32-bit MSYS2 no longer actively supported])
==Install MSYS2==
{{man note|Installation restrictions|MSYS2 can't be installed on [https://en.wikipedia.org/wiki/File_Allocation_Table FAT* formatted disk partitions].<br>Current MSYS2 can't be installed on Windows XP anymore.}}
From the MSYS2 home page httphttps://www.msys2.org / download the latest MSYS2 64bit installer( msys2-x86_64-YYYYMMDD.exe ) from [httphttps://repo.msys2.org/distrib/x86_64/https://repo.msys2-.org/distrib/x86_64-20180531.exe MSYS2 64bit/] installer and run it.
Install it in short path like <code>C:\msys64</code>
</pre>
If core packages are updated you must close the mingw64 shell (forcefully with close button, not just typing exit on it) and then restart the mingw64 shell from the shortcut. Following a core update, run the update command again to update non-core packages.
===Install Gramps dependencies===
</pre>
To handle the following warning '''No intltool or version < 0.25.0, build_intl is aborting''' during the build later, install: pacman -S perl-XML-Parser
pacman -S intltool
</pre>
To use the Graph reports follow the alternate instructions to install [[Gramps_for_Windows_with_MSYS2#Issue|Graphviz]] Install Git and Gcc.<pre>pacman -S msys/gitpacman -S msys/gcc</pre> The Genealogical Symbols preferences tab needs Python Fontconfig version 0.5 so we need to run the Graph View addon also install:build it.From a suitable build directory (I use ~/build)
<pre>
git clone https://github.com/Vayn/python-fontconfig.git
cd python-fontconfig/
git checkout e1b1751f52167184e0c
python3 setup.py install
</pre>
 
Install Graphviz. To run the Graph View addon also install goocanvas.
(If you run into a problem try the alternate instructions to install [[Gramps_for_Windows_with_MSYS2#Issue|Graphviz]])
<pre>
pacman -S mingw-w64-x86_64-graphviz
pacman -S mingw-w64-x86_64-goocanvas
</pre>
{{man warn|osmgpsmap not working|When [[Gramps_for_Windows_with_MSYS2#osmgpsmap_2|fixed]] you will be able to install Install osmgpsmap for the Geography Views with the following command:<br><code>pacman -S mingw-w64-x86_64-osmgpsmap-git</code>}} ===Install Git===
<pre>
pacman -S msys/gitmingw-w64-x86_64-osm-gps-map
</pre>
cd mingw-w64-db
MINGW_INSTALLS=mingw64 makepkg-mingw -sLf
pacman -U mingw-w64-x86_64-db-6.0.30-1-any.pkg.tar.xzzst
</pre>
'''The easy way doesn't work anymore! This is because the recent versions of Python have changed and we have to rebuild.'''
===graphviz===
 As of 2019.09.17 package mingw-w64-osm-gps-map is available so all you have to do is: <pre>pacman -S mingw-w64-x86_64-graphviz</pre> Previously Graphviz is was in MSYS2 MINGW-packages git repository but is was not build-able at this moment that time (2017-03-26) so it is not available via pacman.
We build latest version from Graphviz git repository by manually patching code in process so we can't yet provide PKGBUILD
* Easy way
* Hard way (TODO)
====pygraphviz====
Needed for NetworkChart report (3rd Third-party pluginaddon)
* Easy way:
<pre>
{{man warn|Warning it is not advised for users to mix various libraries like the following it is a direct way to dll hell.|This way Gramps will use graphviz libs instead of MSYS2 ones and they are older and in much way incompatible with rest of Gramps dependencies.<br> until Graphviz becomes available from MSYS2 directly this is an alternate method.}}
<i>Download the current GraphViz ZIP archive from httphttps://www.graphviz.org/download/ and extract it to C:\graphviz, so that it directly contains the directories bin, lib, share and so on.</i>
From the msys2 prompt type:
rm get-pip.py
==Keep your [[Gramps_{{man version}}_Wiki_Manual_-_Command_Line#GRAMPSHOME |GRAMPSHOME]] separate==
To keep your test family trees separate from your personal family trees you may want to use your MSYS2 home directory which you can set from mingw64 shell either:
echo 'export GRAMPSHOME=~' >> ~/.profile
source ~/.profile
==See also==
* [[Running a development version of Gramps]]
* [httphttps://sourceforge.net/p/gramps.1791082.n4.nabble.com/Gramps-on-WSL-Win10-Ubuntu-14-04-VcXsvr-td4676752.html mailman/message/35346200/ Gramps on WSL (Win10/Ubuntu 14.04/VcXsvr)]
[[Category:GEPS|M]]
[[Category:Developers/General]]
36
edits

Navigation menu