Advertisement
Guest User

Untitled

a guest
Jul 28th, 2018
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.69 KB | None | 0 0
  1. Download from the MSYS2 home page http://www.msys2.org the newest MSYS2 64bit installer and run it.
  2. Install it in short path like C:\msys64
  3.  
  4. Update MSYS2
  5. !!! Open or use the MSYS2 MinGW 64-bit shell
  6. pacman -Syu
  7.  
  8. If core packages are updated you must close the mingw64 shell forcefully with close button, not just typing exit on it.
  9. pacman -Su
  10.  
  11. Install Gramps dependencies
  12. Download and install Gramps dependencies
  13. pacman -S mingw-w64-x86_64-python3-bsddb3 mingw-w64-x86_64-gexiv2 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 mingw-w64-x86_64-python3-lxml mingw-w64-x86_64-python3-jsonschema mingw-w64-i686-gtkspell3 mingw-w64-i686-geocode-glib mingw-w64-i686-python3-pillow mingw-w64-x86_64-graphviz mingw-w64-x86_64-goocanvas mingw-w64-x86_64-osmgpsmap-git
  14.  
  15. If you get the following warning No intltool or version < 0.25.0, build_intl is aborting install:
  16. pacman -S intltool
  17.  
  18. Install Git
  19. pacman -S msys/git
  20.  
  21. Building and updating MSYS2/MinGW packages
  22. Install build tools
  23. pacman -S --needed --noconfirm base-devel mingw-w64-x86_64-toolchain
  24.  
  25. We need a place to download and build from source code so we will create folder called "build" inside our home folder
  26. mkdir ~/build
  27.  
  28. To prevent pacman to upgrade packages we rebuilt for our needs we can assign them to group gramps_fixed and add them to IgnoreGroup list. Open in text editor file etc/pacman.conf (C:\msys64\etc\pacman.conf) and add line IgnoreGroup = gramps_fixed to options section.
  29. [options]
  30. IgnoreGroup = gramps_fixed
  31.  
  32. In the following area we need some packages other than provided from MSYS2. You can do it in easy way by downloading prebuilt package or hard way by building it yourself. 
  33.  
  34. db
  35. !!! Open or use the MSYS2 MSYS shell
  36. 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. 
  37. 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. 
  38.  
  39. Easy way
  40. cd ~/build
  41. rm -f mingw-w64-x86_64-db-6.0.30-1-any.pkg.tar.xz
  42. wget https://github.com/bpisoj/MINGW-packages/releases/download/v5.0/mingw-w64-x86_64-db-6.0.30-1-any.pkg.tar.xz
  43. pacman -U mingw-w64-x86_64-db-6.0.30-1-any.pkg.tar.xz
  44.  
  45. bsddb3
  46. !!! Open or use the MSYS2 MSYS shell
  47. As db version is changed then we have to rebuild Python bindings for Oracle Berkeley DB 
  48.  
  49. Easy way
  50. cd ~/build
  51. wget https://github.com/bpisoj/MINGW-packages/releases/download/v5.0/mingw-w64-x86_64-python3-bsddb3-6.1.0-3.1-any.pkg.tar.xz
  52. pacman -U mingw-w64-x86_64-python3-bsddb3-6.1.0-3.1-any.pkg.tar.xz
  53.  
  54. gtk3
  55. !!! Open or use the MSYS2 MSYS shell
  56. GTK+ since version 3.20 drag-and-drop code has been rearchitected to move the drag cancel animation and most input handling into GDK, thereby dropping most of the platform-dependent code out of GTK (MSYS2 version of GTK is currently 3.22.10). This change is not yet present in Windows port of code so we have to use older GTK version 3.18 where it still works. 
  57. Latest in gtk-3.18 branch is gtk-3.18.9 (previous versions of this branch have working dnd but have other bugs) so we build that.
  58.  
  59. Easy way
  60. cd ~/build
  61. rm -f mingw-w64-x86_64-gtk3-3.18.9-1-any.pkg.tar.xz
  62. wget https://github.com/bpisoj/MINGW-packages/releases/download/v5.0/mingw-w64-x86_64-gtk3-3.18.9-1-any.pkg.tar.xz
  63. pacman -U mingw-w64-x86_64-gtk3-3.18.9-1-any.pkg.tar.xz
  64.  
  65. Install Gramps
  66. !!! Open or use the MSYS2 MinGW 64-bit shell
  67. Prepare source
  68. Create directory to store Gramps source in and go to it
  69. mkdir ~/grampsdev
  70. cd ~/grampsdev
  71.  
  72. Download source
  73. Download Gramps master branch from source repository
  74. git init
  75. git remote add -t master -f origin https://github.com/gramps-project/gramps.git
  76. git fetch --all --tags --prune
  77. git checkout tags/v5.0.0 -b v5.0.0
  78.  
  79. Setup source
  80. Before using Gramps you must set-it up. 
  81. You just use setup build command not install one
  82. python3 setup.py build
  83.  
  84. Run Gramps
  85. cd ~/grampsdev
  86. python3 Gramps.py -v
  87.  
  88. It should return something like:
  89. Gramps Settings:
  90. ----------------
  91. python  : 3.5.3
  92. gramps  : 5.0.0-alpha1-0919763f1
  93. gtk++  : 3.22.9
  94. pygobject : 3.22.0
  95. pango  : 1.40.3
  96. cairo  : 1.15.4
  97. pycairo  : 1.1.10
  98. osmgpsmap : 1.0
  99. GExiv2  : 0.10
  100. ICU  : 57.1
  101. PyICU  : 1.9.3
  102. o.s.  : win32
  103. Non-python dependencies:
  104. ------------------------
  105. Graphviz  : Graphviz not in system PATH
  106. Ghostscr. : 9.20
  107.  
  108. Run Gramps
  109. Keep your GRAMPSHOME separate
  110. echo 'export GRAMPSHOME=~' >> ~/.profile
  111. source ~/.profile
  112. python3 Gramps.py
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement