| INSTALL-Windows.txt | INSTALL-Windows.txt | |||
|---|---|---|---|---|
| skipping to change at line 27 | skipping to change at line 27 | |||
| who may want to package XZ Utils for MinGW or MSYS distributions. | who may want to package XZ Utils for MinGW or MSYS distributions. | |||
| You know who you are, and will probably use quite different configure | You know who you are, and will probably use quite different configure | |||
| options etc. than what is described here. | options etc. than what is described here. | |||
| Installing the toolchain(s) | Installing the toolchain(s) | |||
| --------------------------- | --------------------------- | |||
| Some of the following is needed: | Some of the following is needed: | |||
| - MSYS is always needed to use the GNU Autotools based build system. | - MSYS is always needed to use the GNU Autotools based build system. | |||
| - MinGW builds 32-bit x86 binaries. | - MinGW builds 32-bit x86 binaries. | |||
| - MingW-w32 builds 32-bit x86 executables too. | - 32-bit MinGW-w64 (I call it MingW-w32 here) builds 32-bit x86 | |||
| executables too. | ||||
| - MinGW-w64 builds 64-bit x86-64 binaries. | - MinGW-w64 builds 64-bit x86-64 binaries. | |||
| So you need to pick between MinGW and MinGW-w32 when building | So you need to pick between MinGW and MinGW-w32 when building | |||
| 32-bit version. You don't need both. | 32-bit version. You don't need both. | |||
| You might find 7-Zip <http://7-zip.org/> handy when extracting | You might find 7-Zip <http://7-zip.org/> handy when extracting | |||
| some files (especially the .tar.lzma files). The ready-made | some files. The ready-made build script build.bash will also use | |||
| build script will also use 7-Zip to create the distributable | 7-Zip to create the distributable .zip and .7z files. | |||
| .zip and .7z files. | ||||
| I used the following directory structure but you can use whatever | I used the following directory structure but you can use whatever | |||
| you want. Just note that I will use these in my examples. Each of | you want. Just note that I will use these in my examples. Each of | |||
| these should have a subdirectory "bin": | these should have a subdirectory "bin": | |||
| C:\devel\tools\msys | C:\devel\tools\msys | |||
| C:\devel\tools\mingw | C:\devel\tools\mingw | |||
| C:\devel\tools\mingw-w32 | C:\devel\tools\mingw-w32 | |||
| C:\devel\tools\mingw-w64 | C:\devel\tools\mingw-w64 | |||
| Installing MSYS | Installing MSYS | |||
| You can download MSYS from MinGW's Sourceforge page: | You can download MSYS from MinGW's Sourceforge page: | |||
| http://sourceforge.net/projects/mingw/files/ | http://sourceforge.net/projects/mingw/files/MSYS/Base/msys-core/ | |||
| It's under "MSYS Base System". I recommend using MSYS 1.0.11 | I recommend using MSYS 1.0.11 (MSYS-1.0.11.exe or | |||
| (MSYS-1.0.11.exe or msysCORE-1.0.11-bin.tar.gz) because that | msysCORE-1.0.11-bin.tar.gz) because that package includes all the | |||
| package includes all the required tools. At least some of the | required tools. At least some of the later versions include only | |||
| later versions include only a subset and thus you would need to | a subset and thus you would need to download the rest separately. | |||
| download the rest separately. The old version will work fine for | The old version will work fine for building XZ Utils. | |||
| building XZ Utils. | ||||
| You can use either the .exe or .tar.gz package. I prefer .tar.gz, | You can use either the .exe or .tar.gz package. I prefer .tar.gz, | |||
| because it can be extracted into any directory and later removed | because it can be extracted into any directory and later removed | |||
| without worrying about uninstallers. | without worrying about uninstallers. | |||
| Installing MinGW | Installing MinGW | |||
| NOTE: This section may be outdated. I haven't tried MinGW recently. | ||||
| You can download the required packages from MinGW's Sourceforge page: | You can download the required packages from MinGW's Sourceforge page: | |||
| http://sourceforge.net/projects/mingw/files/ | http://sourceforge.net/projects/mingw/files/ | |||
| These version numbers were the latest when I wrote this document, but | These version numbers were the latest when I wrote this document, but | |||
| you probably should pick the latest versions: | you probably should pick the latest versions: | |||
| MinGW Runtime -> mingwrt-3.17-mingw32-dev.tar.gz | MinGW Runtime -> mingwrt-3.17-mingw32-dev.tar.gz | |||
| MinGW API for MS-Windows -> w32api-3.14-mingw32-dev.tar.gz | MinGW API for MS-Windows -> w32api-3.14-mingw32-dev.tar.gz | |||
| GNU Binutils -> binutils-2.20-1-bin.tar.gz | GNU Binutils -> binutils-2.20-1-bin.tar.gz | |||
| skipping to change at line 87 | skipping to change at line 88 | |||
| The full GCC package is quite big, but if you want a smaller | The full GCC package is quite big, but if you want a smaller | |||
| download, you will need to download more than one file, so I'm | download, you will need to download more than one file, so I'm | |||
| using the full package in this document for simplicity. | using the full package in this document for simplicity. | |||
| Extract the packages in the above order, possibly overwriting files | Extract the packages in the above order, possibly overwriting files | |||
| from packages that were extracted earlier. | from packages that were extracted earlier. | |||
| Installing MinGW-w32 or MinGW-w64 | Installing MinGW-w32 or MinGW-w64 | |||
| You can find the latest MinGW-w32 and MinGW-w64 builds here: | I used the packages from Mingw-builds project. With that it is | |||
| enough to pick one .7z file for 32-bit and another for 64-bit | ||||
| http://sourceforge.net/projects/mingw-w64/files/ | toolchain. For XZ Utils 5.2.0 I used the packages from these | |||
| directories: | ||||
| Locate the appropriate files: | ||||
| http://sourceforge.net/projects/mingw-w64/files/Toolchains%20target | ||||
| Toolchains targeting Win32 -> mingw-w32-*-mingw*.zip | ting%20Win32/Personal%20Builds/mingw-builds/4.9.2/threads-win32/sjlj/ | |||
| Toolchains targeting Win64 -> mingw-w64-*-mingw*.zip | ||||
| http://sourceforge.net/projects/mingw-w64/files/Toolchains%20target | ||||
| I don't know what is the most recommended one. I used sezero's | ting%20Win64/Personal%20Builds/mingw-builds/4.9.2/threads-win32/sjlj/ | |||
| versions from "Personal Builds", since they seemed to have | ||||
| a stable GCC (judging from the GCC version number only). | If you install both MinGW-w32 and MinGW-w64, remember to extract | |||
| them into different directories. build.bash looks at | ||||
| If you will install both MinGW-w32 and MinGW-w64, remember to | C:\devel\tools\mingw-w32 and C:\devel\tools\mingw-w64 by default. | |||
| extract them into different directories. | ||||
| Building XZ Utils | Building XZ Utils | |||
| ----------------- | ----------------- | |||
| Start MSYS by going to the directory C:\devel\tools\msys and running | Start MSYS by going to the directory C:\devel\tools\msys and running | |||
| msys.bat there (double-click or use command prompt). It will start | msys.bat there (double-click or use command prompt). It will start | |||
| at "home" directory, which is C:\devel\tools\msys\home\YourUserName. | at "home" directory, which is C:\devel\tools\msys\home\YourUserName. | |||
| If you have xz-5.x.x.tar.gz in C:\devel, you should be able to build | If you have xz-5.x.x.tar.gz in C:\devel, you should be able to build | |||
| it now with the following commands: | it now with the following commands: | |||
| End of changes. 6 change blocks. | ||||
| 26 lines changed or deleted | 26 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ | ||||