Advertisement
Guest User

Gimp Build for Win

a guest
May 9th, 2016
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.54 KB | None | 0 0
  1. Follow the instructions
  2. https://msys2.github.io/
  3.  
  4. Get some libraries script.
  5. ---------------------------------------------------------------------------------------
  6. #!/bin/sh
  7. # Installs runtime dependencies.
  8. # User-oriented convenience script for MSYS2 installations.
  9. # This shouldn't be used as part of anybody's build scripting.
  10.  
  11. case "$MSYSTEM" in
  12. MINGW64)
  13. ARCH=$ARCH
  14. ;;
  15. MINGW32)
  16. ARCH=i686
  17. ;;
  18. *)
  19. echo >&2 "ERROR: unsupported system."
  20. echo >&2 "This script must be run from either the MINGW32 or the MINGW64 "
  21. echo >&2 "environment of an MSYS2 installation on Windows."
  22. exit 2
  23. ;;
  24.  
  25. esac# Update packages caches
  26.  
  27. pacman -Sy --noconfirm
  28.  
  29. # Build and runtime deps, all in one go
  30. pacman -S --needed --noconfirm \
  31. base-devel \
  32. git \
  33. scons \
  34. gtk-doc \
  35. mingw-w64-$ARCH-toolchain \
  36. mingw-w64-$ARCH-gtk2 \
  37. mingw-w64-$ARCH-json-c \
  38. mingw-w64-$ARCH-json-glib \
  39. mingw-w64-$ARCH-gexiv2 \
  40. mingw-w64-$ARCH-lcms2
  41.  
  42. pacman -S mingw-w64-$ARCH-ffmpeg # support for various formats
  43.  
  44. pacman -S mingw-w64-$ARCH-ghostscript # support for Ghostscript
  45.  
  46. pacman -S mingw-w64-$ARCH-libmng # support for MNG format
  47.  
  48. pacman -S mingw-w64-$ARCH-libwmf # support for WMF format
  49.  
  50. pacman -S mingw-w64-$ARCH-xpm-nox # support for XPM format
  51.  
  52. pacman -S mingw-w64-$ARCH-openexr # support for EXR format
  53.  
  54. pacman -S mingw-w64-$ARCH-libraw # support for RAW format
  55.  
  56. pacman -S mingw-w64-$ARCH-vala
  57.  
  58. pacman -S mingw-w64-$ARCH-python2 # for Python support
  59.  
  60. pacman -S mingw-w64-$ARCH-python2-pygtk # needed by python support
  61.  
  62. pacman -S mingw-w64-$ARCH-poppler
  63.  
  64. pacman -S mingw-w64-$ARCH-webkitgtk2 # for Webpage and html help support
  65.  
  66. --------------------------------------------------------------------------------------
  67. edit your .bash-console -file and add lines
  68.  
  69. case "$MSYSTEM" in
  70. MINGW64)
  71. ARCH=x86_64 ; BASE=64
  72. ;;
  73. MINGW32)
  74. ARCH=i686 ; BASE=32
  75. ;;
  76. *)
  77. ;;
  78. esac
  79.  
  80. export PREFIX=/opt/gimp$BASE # or the path you like to use..
  81. export PATH=$PREFIX/bin:$PATH
  82. export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH
  83. export MAKEFLAGS=-j4 # multicore support
  84. export CPPFLAGS='-I'$PREFIX'/include -I/mingw'$BASE'/'$ARCH'-w64-mingw32/include -I/mingw'$BASE'/include/python2.7'
  85.  
  86. export CPATH="$PREFIX'/include:/mingw'$BASE'/'$ARCH'-w64-mingw32/include:/mingw'$BASE'/include/python2.7"
  87. export ACLOCAL_AMFLAGS=-I/mingw'$BASE'/share/aclocal
  88.  
  89. --------------------------------------------------------------------------------------
  90.  
  91. Updating core libraries is best done with Msys2 shell and building projects must be done with launching mingw32_shell.bat or mingw64_shell.bat.
  92. Remember to launch those shells with 'run as administrator', otherwise there might be insufficient privileges at some point of build processes.
  93.  
  94. So open your mingw32 or mingw64 shell as administrator and copy paste these lines
  95.  
  96. (building babl from git)
  97.  
  98. git clone https://git.gnome.org/browse/babl
  99. cd babl
  100. ./autogen.sh --prefix=$PREFIX
  101. make
  102. make install
  103. cd ..
  104.  
  105. (building gegl from git)
  106.  
  107. git clone https://git.gnome.org/browse/gegl
  108. cd gegl
  109. ./autogen.sh --prefix=$PREFIX
  110. make
  111. make install
  112. cd ..
  113.  
  114. (next we need libmypaint for the new brush engines. It doesnt have autogen.sh bust uses SCons as build tool)
  115. git clone https://github.com/mypaint/libmypaint.git
  116. cd libmypaint
  117. scons prefix=$PREFIX
  118. scons prefix=$PREFIX install
  119. cd ..
  120.  
  121.  
  122. (and lastly building gimp)
  123. git clone https://git.gnome.org/browse/gimp
  124. cd gimp
  125. ./autogen.sh --prefix=$PREFIX
  126. make
  127. make install
  128. cd ..
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement