Changes

Jump to: navigation, search

Gramps for Windows with MSYS2

7 bytes added, 02:01, 3 November 2020
Keep your GRAMPSHOME separate
{{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-20161025.exe MSYS2 64bit/] installer and run it.
Install it in short path like <code>C:\msys64</code>
To handle the following warning '''No intltool or version < 0.25.0, build_intl is aborting''' install:
pacman -S perl-XML-Parser
pacman -S intltool
Some additional (optional) items needed for certain addons.
<pre>
pacman -S mingw-w64-i686x86_64-gtkspell3pacman -S mingw-w64-i686x86_64-geocode-glibpacman -S mingw-w64-i686x86_64-python3-pillow</pre> The Genealogical Symbols preferences tab needs Python Fontconfig version 0.5 so we need to build it.From a suitble build directory (I use ~/build)<pre>git clone git://github.com/Vayn/python-fontconfig.gitcd python-fontconfig/git checkout e1b1751f52167184e0cpython3 setup.py install
</pre>
</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><codepre>pacman -S mingw-w64-x86_64-osmgpsmaposm-gps-gitmap</codepre>}}
===Install Git===
GrampsAIO uses Oracle Berkeley DB version 6.0.30 but MSYS2 have it at version 6.0.19 and most probably never update it to a newer version.
<br>Gramps will ask permission to downgrade database version at import of any family tree created with GrampsAIO bundle. To prevent that build right version of DB.
<br>You can do it in easy way by downloading prebuilt package or hard way by building it yourself.<br>Start ''msys2 shellHard way'' and type (easy wayit can take some time to finish):
<pre>
cd ~/build
wget svn checkout https://github.com/bpisoj/MINGW-packages/releasesbranches/download/v5.0gramps5/mingw-w64-x86_64dbcd mingw-w64-dbMINGW_INSTALLS=mingw64 makepkg-6.0.30-1mingw -any.pkg.tar.xzsLf
pacman -U mingw-w64-x86_64-db-6.0.30-1-any.pkg.tar.xz
</pre>
Hard '''The easy way doesn't work anymore! This is because the recent versions of Python have changed and we have to rebuild.'''<br>Start ''msys2 shell'' and type (it can take some time to finisheasy way):
<pre>
cd ~/build
svn checkout wget https://github.com/bpisoj/MINGW-packages/branchesreleases/gramps5download/v5.0/mingw-w64-x86_64-dbcd mingw-w646.0.30-dbMINGW_INSTALLS=mingw64 makepkg1-mingw -sLfany.pkg.tar.xz
pacman -U mingw-w64-x86_64-db-6.0.30-1-any.pkg.tar.xz
</pre>
===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
cd ~/build/pygraphviz-1.4rc1
MINGW_INSTALLS=mingw64 makepkg-mingw -sLf
pacman -U mingw-w64-i686x86_64-python3-pygraphviz-1.4rc1-0.0-any.pkg.tar.xz
</pre>
For NetworkChart report to work install also networkx package
===osmgpsmap===
As of 20172019.0302.21 08 package mingw-w64-osmgpsmaposm-git (r443.c24d08dgps-1) map is outdated due to changes in MINGW-packages repository available so Gramps GeoView will fail all you have to work.<br>We will rebuild him!<br>Start '''msys2 shell''' (always build package recipes from msys2 shell)<br>Easy way:do is
<pre>
cd ~/buildwget https://github.com/bpisoj/MINGW-packages/releases/download/v5.0/mingw-w64-x86_64-osmgpsmap-git-r483.d275a5d-1-any.pkg.tar.xzpacman -U S mingw-w64-x86_64-osmgpsmap-git-r483.d275a5dosm-1gps-any.pkg.tar.xzmap
</pre>
<br>Start '''msys2 shell''' (always build package recipes from msys2 shell)
Hard way:
<pre>
cd ~/build
svn checkout https://github.com/Alexpux/MINGW-packages/trunk/mingw-w64-osmgpsmaposm-gitgps-mapcd mingw-w64-osmgpsmap-gitsed -i 's/patch -p1 -i/#patch osm-p1 gps-i/' PKGBUILDmap
MINGW_INSTALLS=mingw64 makepkg-mingw -sLf
pacman -U mingw-w64-x86_64-osmgpsmaposm-gitgps-r483map-1.d275a5d1.0-12-any.pkg.tar.xz
</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_windows.php 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:
Graphviz : 2.38
</pre>
 
===osmgpsmap===
The MSYS2 version of osmgpsmap has issues eg:
(python3.exe:348): WARNING **: Failed to load shared library 'libosmgpsmap-1.0-0.dll' referenced by the typelib: 'libosmgpsmap-1.0-0.dll': The specified procedure could not be found.
 
You can uninstall osmgpsmap package with:
 
pacman -R mingw-w64-x86_64-osmgpsmap-git
==Install Python pip==
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]]
301
edits

Navigation menu