﻿Compilation de grisbi

1) Installer Msys2 64 bits :
	http://www.msys2.org/
	version au 04/05/2017 :
	http://repo.msys2.org/distrib/x86_64/msys2-x86_64-20161025.exe

	msys2 se lance automatiquement a la fermeture de l'installateur.

2) Mise à jour de msys2
	- dans la console lancer la commande :
		pacman -Syu
	- fermer la console

3) Ouvrir la console en utilisant le raccourci MSYS2 MinGW32 ou MinGW64 suivant l'architecture retenue
	- lancer la commande :
		pacman -Suuu
	-	installer git, base-devel, gcc, glib2, gtk3, libgsf
		pacman -S git
		pacman -S base-devel

	3.1) Pour architecture 32 bits
		pacman -S mingw32/mingw-w64-i686-gcc
		pacman -S mingw32/mingw-w64-i686-glib2
		pacman -S msys/glib2-devel
		pacman -S mingw32/mingw-w64-i686-gtk3
			nota : le programme s'arrête pour la configuration de fontconfig. Attendre ou ouvrir le fichier README
		pacman -S mingw32/mingw-w64-i686-libgsf

	3.2) Pour architecture 64 Bits
		pacman -S mingw64/mingw-w64-x86_64-gcc
		pacman -S mingw64/mingw-w64-x86_64-glib2
		pacman -S msys/glib2-devel
		pacman -S mingw64/mingw-w64-x86_64-gtk3
			nota : le programme s'arrête pour la configuration de fontconfig. Attendre ou ouvrir le fichier README
		pacman -S mingw64/mingw-w64-x86_64-libgsf

4) Installer Grisbi
	- git clone https://github.com/pierre-biava/grisbi.git
	- entrer dans le répertoire grisbi
		cd grisbi

5) Compiler Grisbi
	Si première compilation
	- lancer autogen.sh
		./autogen.sh
	- si tout va bien lancer ./configure
		./configure
	- si OK -> Build win32: = msys2 ou mingw32
		make -j xx	(xx représente le nombre de processus lancés en parallèle : je mets 15)

	- compilation globale
		./autogen.sh && ./configure --enable-werror && make -j 15 && make install

	Nouvelle compilation
	- sequence de réinitialisation
		make clean && make distclean
	- compilation classique
		./autogen.sh
		./configure --enable-werror
		make -j 15
		make install

	Nettoyage et compilation globale
		make clean && make distclean && ./autogen.sh && ./configure --enable-werror && make -j 15 && make install

6) Utilitaires optionnels
	- devhelp
		pacman -S mingw64/mingw-w64-x86_64-devhelp

	- glib2 doc
		pacman -S msys/glib2-docs

