Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
diana:windows:building:autotools [2009-11-25 14:32:03]
dages created
diana:windows:building:autotools [2022-05-31 09:29:31] (current)
Line 1: Line 1:
 ====== Installing the GNU autotools on Windows ====== ====== Installing the GNU autotools on Windows ======
 +
 +===== Perl =====
 +
 +The GNU autotools require Perl.  Download and install the MSYS version of Perl from http://sourceforge.net/projects/mingw/files/MSYS%20perl/ You will also need libcrypt from http://sourceforge.net/projects/mingw/files/MSYS%20crypt/.
 +
 +You //must// use the MSYS version.  You can //not// use ActiveState Perl or similar for this, because it interprets paths differently.
 +
 +===== autoconf, automake and libtool =====
  
 Download the correct versions of autoconf, automake and libtool: Download the correct versions of autoconf, automake and libtool:
Line 14: Line 22:
 Build them in the order in which they are listed in the table.  In each case, after extracting, run the following commands: Build them in the order in which they are listed in the table.  In each case, after extracting, run the following commands:
  
-  $ ./configure --prefix=/mingw +  $ ./configure --prefix=/usr 
-  $ make +  $ make all install
-  $ make install+
  
 Do //not// build and install GNU make; it will not work in conjunction with MSYS (though it may work if you install a native Windows shell, such as the Interix / SFU ''ksh'', and don't use MSYS at all) Do //not// build and install GNU make; it will not work in conjunction with MSYS (though it may work if you install a native Windows shell, such as the Interix / SFU ''ksh'', and don't use MSYS at all)
 +
 +Note that in MSYS, ''/usr'' is a symlink to ''/'', but ''make install'' will fail if you try to build with ''--prefix=/''.
 +
 +When you install a particular version automake, it will install ''aclocal'' and ''automake'' but also ''aclocal-X.Y'' and ''automake-X.Y'', so the last version you installed will be the default, but older versions are still available.  Existing configure scripts and Makefiles will use whichever version was the default when they were generated.
 +
 +===== pkg-config =====
 +
 +//pkg-config is not really part of the GNU autotools, but it might as well be...//
 +
 +There are no MinGW or MSYS binaries for pkg-config, and building it from source is non-trivial due to a circular dependency on glib (you need pkg-config to build glib).  However, the Gnome project distribute Windows binaries of both glib and pkg-config, which you can download from http://www.gtk.org/download-windows.html.  They come in zip files, so you can just double-click them in Windows Explorer and copy the contents to your MinGW root (''C:\MinGW'').
  
  • diana/windows/building/autotools.1259159523.txt.gz
  • Last modified: 2022-05-31 09:23:14
  • (external edit)