Difference between revisions of "Dev:Mingw installation"
m (→MinGW: Atrus: "P.S. I think my articles need some fix of my terrible English. Sorry. :)". It isn't so terrible, but I've corrected it anyway.) |
|||
Line 4: | Line 4: | ||
* http://downloads.sourceforge.net/mingw/MinGW-5.1.3.exe?big_mirror=1 (136K) | * http://downloads.sourceforge.net/mingw/MinGW-5.1.3.exe?big_mirror=1 (136K) | ||
− | Run MinGW-5.1.3.exe. Select "Download and install". Choose "Candidate" package, because "Current" is too old. When installer | + | Run MinGW-5.1.3.exe. Select "Download and install". Choose "Candidate" package, because "Current" is too old. When the installer asks which packages to install, select: |
* MinGW base tools | * MinGW base tools | ||
Line 11: | Line 11: | ||
* MinGW Make | * MinGW Make | ||
− | + | Note: you really do need to install Fortran; even though Synfig does not require it, it is required by the autoconf configuration scripts. These are the minimal required package versions which are needed to successfully build win32 synfig: | |
* mingw-runtime-3.11.tar.gz (416 Kb) | * mingw-runtime-3.11.tar.gz (416 Kb) | ||
Line 29: | Line 29: | ||
* http://downloads.sourceforge.net/mingw/MSYS-1.0.10.exe?big_mirror=1 (2.8 Mb) | * http://downloads.sourceforge.net/mingw/MSYS-1.0.10.exe?big_mirror=1 (2.8 Mb) | ||
− | Run MSYS-1.0.10.exe, confirm default installation path <code>C:\msys\1.0</code>. Wait until installation | + | Run MSYS-1.0.10.exe, confirm default installation path <code>C:\msys\1.0</code>. Wait until installation completes. Then the installer opens a console and asks some questions. |
''This is a post install process that will try to normalize between''<br /> | ''This is a post install process that will try to normalize between''<br /> | ||
Line 47: | Line 47: | ||
Answer "<code>c:/mingw</code>". | Answer "<code>c:/mingw</code>". | ||
− | + | The installer script prints some text and finally writes: | |
''Oh joy, you do not have c:/mingw/bin/make.exe. Keep it that way.'' | ''Oh joy, you do not have c:/mingw/bin/make.exe. Keep it that way.'' | ||
− | It's | + | It's OK. The first phase of installation is completed. Press any key. |
===MSYS Developer Toolkit=== | ===MSYS Developer Toolkit=== | ||
Line 58: | Line 58: | ||
* http://downloads.sourceforge.net/mingw/msysDTK-1.0.1.exe?big_mirror=1 (10.29 Mb) | * http://downloads.sourceforge.net/mingw/msysDTK-1.0.1.exe?big_mirror=1 (10.29 Mb) | ||
− | Run msysDTK-1.0.1.exe. Confirm your MSYS installation path <code>C:\msys\1.0</code>. Nothing more. Installation will continue without additional questions. | + | Run msysDTK-1.0.1.exe. Confirm your MSYS installation path <code>C:\msys\1.0</code>. Nothing more. Installation will continue without any additional questions. |
===bash=== | ===bash=== | ||
− | + | The current bash version is not enough for Synfig building and neither is the new 2.05b version. It contains an error and you need to download 3.1 snapshot: | |
* http://downloads.sourceforge.net/mingw/bash-3.1-MSYS-1.0.11-snapshot.tar.bz2?big_mirror=1 (551K) | * http://downloads.sourceforge.net/mingw/bash-3.1-MSYS-1.0.11-snapshot.tar.bz2?big_mirror=1 (551K) | ||
− | Make sure | + | Make sure that all msys sessions are closed, then just decompress bash-3.1 directory from archive into <code>C:\msys\1.0</code>. |
− | Also, you may want to edit <code>C:\msys\1.0\msys.bat</code> file. You may find string which contain <code>if "x%MINGW32BGCOLOR%" == "x" set MINGW32BGCOLOR=</code> and set <code>Black</code> as color. Into <code>if "x%MINGW32FGCOLOR%" == "x" set MINGW32FGCOLOR=</code> you may set color <code>White</code>. In string <code>start rxvt -backspacekey</code> you may replace <code>-fn Courier-12</code> to <code>-fn Courier-16</code>. | + | Also, you may want to edit <code>C:\msys\1.0\msys.bat</code> file. You may find string which contain <code>if "x%MINGW32BGCOLOR%" == "x" set MINGW32BGCOLOR=</code> and set <code>Black</code> as color. Into <code>if "x%MINGW32FGCOLOR%" == "x" set MINGW32FGCOLOR=</code> you may set color <code>White</code>. In string <code>start rxvt -backspacekey</code> you may replace <code>-fn Courier-12</code> to <code>-fn Courier-16</code>. In my opinion this makes msys sessions look better. |
===[http://www.gnu.org/software/libtool/ libtool]=== | ===[http://www.gnu.org/software/libtool/ libtool]=== | ||
− | In Synfig Core bootstrap file we can find | + | In Synfig Core bootstrap file we can find that libtool prior to version 1.4.2 has an error in libltdl but msys has only 1.4e. I think - will be better to update it instead of patching. Download libtool 1.5 from: |
* http://downloads.sourceforge.net/mingw/msys-libtool-1.5.tar.bz2?big_mirror=1 (421 Kb) | * http://downloads.sourceforge.net/mingw/msys-libtool-1.5.tar.bz2?big_mirror=1 (421 Kb) | ||
Line 77: | Line 77: | ||
===[http://www.mktemp.org/ mktemp]=== | ===[http://www.mktemp.org/ mktemp]=== | ||
− | Synfig | + | Synfig requires mktemp for building, but for some unknown reason this tool is not installed by default in MinGW. Download the MinGW implementation of this tool from: |
* http://downloads.sourceforge.net/mingw/mktemp-1.5-MSYS.tar.bz2?big_mirror=1 (4 Kb) | * http://downloads.sourceforge.net/mingw/mktemp-1.5-MSYS.tar.bz2?big_mirror=1 (4 Kb) | ||
Line 84: | Line 84: | ||
===[http://darwinsys.com/file/ file]=== | ===[http://darwinsys.com/file/ file]=== | ||
− | libtool | + | libtool requires the "file" tool to check filetypes of libraries. So we need to download it: |
* http://downloads.sourceforge.net/mingw/file-4.16-MSYS-1.0.11-snapshot.tar.bz2?big_mirror=1 (241 Kb) | * http://downloads.sourceforge.net/mingw/file-4.16-MSYS-1.0.11-snapshot.tar.bz2?big_mirror=1 (241 Kb) | ||
− | and decompress content of directory file-4.16 | + | and decompress content of directory file-4.16 from the archive to <code>C:\msys\1.0</code>. |
===cygpath emulation=== | ===cygpath emulation=== | ||
− | As far as I | + | As far as I read, Cygwin only supports paths like /C/somedir/somefile. MinGW can use native windows paths also. Cygwin has a special tool for this (and some another features). MinGW has not. But several Synfig configure scripts require this tool so it will be better to make it. Just save the following text as <code>C:\msys\1.0\bin\cygpath</code>: |
<pre>#!/bin/sh | <pre>#!/bin/sh | ||
Line 105: | Line 105: | ||
===[http://www.winterdrache.de/freeware/png2ico/index.html png2ico]=== | ===[http://www.winterdrache.de/freeware/png2ico/index.html png2ico]=== | ||
− | Early version of Synfig | + | Early version of Synfig used [http://www.kernel.org/pub/software/graphics/pngtoico/ pngtoico] tool to produce icons from png files. Unfortunately is tool is now broken. You can see this for youeself by installing the official build of Synfig Studio 0.61.05. The latest versions of Synfig using another tool: png2ico. This tool is not perfect, but it works. Download it from: |
* http://www.winterdrache.de/freeware/png2ico/data/png2ico-win-2002-12-08.zip (92 Kb) | * http://www.winterdrache.de/freeware/png2ico/data/png2ico-win-2002-12-08.zip (92 Kb) |
Revision as of 18:22, 8 May 2007
Contents
MinGW
First - download MinGW installer. You may get version 5.1.3 or higher (recommended).
Run MinGW-5.1.3.exe. Select "Download and install". Choose "Candidate" package, because "Current" is too old. When the installer asks which packages to install, select:
- MinGW base tools
- g++ Compiler
- g77 Compiler
- MinGW Make
Note: you really do need to install Fortran; even though Synfig does not require it, it is required by the autoconf configuration scripts. These are the minimal required package versions which are needed to successfully build win32 synfig:
- mingw-runtime-3.11.tar.gz (416 Kb)
- w32api-3.8.tar.gz (1.54 Mb)
- binutils-2.17.50-20060824-1.tar.gz (8.9 Mb)
- gcc-core-3.4.5-20060117-1.tar.gz (3.3 Mb)
- gcc-g++-3.4.5-20060117-1.gz (4.5 Mb)
- gcc-g77-3.4.5-20060117-1.tar.gz (2.0 Mb)
- mingw32-make-3.81-1.tar.gz (237.5 Kb)
- mingw32-make-3.80.0-3.tar.gz (928 Kb)
Confirm default installation path C:\MinGW
. If you install MinGW into another directory, synfig compilation may fail.
MSYS
Now download and install MSYS - a shell and tools kit.
Run MSYS-1.0.10.exe, confirm default installation path C:\msys\1.0
. Wait until installation completes. Then the installer opens a console and asks some questions.
This is a post install process that will try to normalize between
your MinGW install if any as well as your previous MSYS installs
if any. I don't have any traps as aborts will not hurt anything.
Do you wish to continue with the post install? [yn ]
Answer "y" here.
Do you have MinGW installed? [yn ]
Answer "y" here.
Please answer following the in the form of c:/foo/bar.
Where is your MinGW installation?
Answer "c:/mingw
".
The installer script prints some text and finally writes:
Oh joy, you do not have c:/mingw/bin/make.exe. Keep it that way.
It's OK. The first phase of installation is completed. Press any key.
MSYS Developer Toolkit
Download MSYS Developer Toolkit, which contain such required tools as autoconf, automake, libtool, perl, pkg-tools, etc.
Run msysDTK-1.0.1.exe. Confirm your MSYS installation path C:\msys\1.0
. Nothing more. Installation will continue without any additional questions.
bash
The current bash version is not enough for Synfig building and neither is the new 2.05b version. It contains an error and you need to download 3.1 snapshot:
Make sure that all msys sessions are closed, then just decompress bash-3.1 directory from archive into C:\msys\1.0
.
Also, you may want to edit C:\msys\1.0\msys.bat
file. You may find string which contain if "x%MINGW32BGCOLOR%" == "x" set MINGW32BGCOLOR=
and set Black
as color. Into if "x%MINGW32FGCOLOR%" == "x" set MINGW32FGCOLOR=
you may set color White
. In string start rxvt -backspacekey
you may replace -fn Courier-12
to -fn Courier-16
. In my opinion this makes msys sessions look better.
libtool
In Synfig Core bootstrap file we can find that libtool prior to version 1.4.2 has an error in libltdl but msys has only 1.4e. I think - will be better to update it instead of patching. Download libtool 1.5 from:
Decompress content of archive to C:\msys\1.0
directory.
mktemp
Synfig requires mktemp for building, but for some unknown reason this tool is not installed by default in MinGW. Download the MinGW implementation of this tool from:
Decompress mktemp.exe from this archive to C:\msys\1.0\bin
directory.
file
libtool requires the "file" tool to check filetypes of libraries. So we need to download it:
and decompress content of directory file-4.16 from the archive to C:\msys\1.0
.
cygpath emulation
As far as I read, Cygwin only supports paths like /C/somedir/somefile. MinGW can use native windows paths also. Cygwin has a special tool for this (and some another features). MinGW has not. But several Synfig configure scripts require this tool so it will be better to make it. Just save the following text as C:\msys\1.0\bin\cygpath
:
#!/bin/sh # A simple cygpath replacement until [ -z "$1" ] do if [ "${1:0:1}" != "-" ]; then echo $1 | sed -e 's/\\/\//g' -e 's/^\([a-zA-Z]\):/\/\1/g' fi shift done
png2ico
Early version of Synfig used pngtoico tool to produce icons from png files. Unfortunately is tool is now broken. You can see this for youeself by installing the official build of Synfig Studio 0.61.05. The latest versions of Synfig using another tool: png2ico. This tool is not perfect, but it works. Download it from:
And decompress png2ico.exe file to C:\msys\1.0\bin
directory.
Non MinGW packages
Subversion
Synfig sources stored into subversion repository. You will need the svn client to get it. Also svn client is required to Synfig build scripts, to receive revision number of sources. You can download windows subversion package from this page:
When I write this the latest version was 1.4.3:
But it will better to get any of newer version.
NSIS
NSIS is a Null Soft Installer System, a free and opensource installer for WinAmp, a popular windows music player. When I write this the latest version was 2.27:
But you can get any of newer.
ImageMagick
When I write this the latest version was 6.3.4-0:
ImageMagick is required for build Studio, also Core has ImageMagick render target.
Gtk+/Gtkmm
GTK+
Go at this page and download latest GTK+ devel package for windows:
You need only next components to be installed:
- Gtk+ Runtime (required)
- Register Environment Variables
- Devel header/libraries
Confirm registration for environment: MSYS (C:\msys\1.0).
Install GTK+ to C:\GTK
.
GTKmm
Go at this page and download latest GTK+ devel package for windows:
You need only next components to be installed:
- libsigs++
- glibmm
- gtkmm
- libxml++
For each of selected component you may keep only
- Runtime
- Development
subcategories. Install GTKmm to C:\GTK
.