[98dd5b]: / wine / README  Maximize  Restore  History

Download this file

102 lines (68 with data), 3.1 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101

  COMPILATION INSTRUCTIONS

** Getting sources **

First get required sources and extract them in a build directory. We use
separated compilers environments for 32 and 64-bit builds (multiarch is
not supported), so these instructions use out-of-tree builds. Note that
we use mingw-w64 project headers and libraries (SVN version) for both
32 and 64-bit builds. It's also important to use binutils version (at
least) 2.23.1.

$ wget http://ftp.gnu.org/gnu/binutils/binutils-2.23.2.tar.bz2
$ tar -jxf binutils-2.23.2.tar.bz2
$ wget http://gcc.fyxm.net/releases/gcc-4.8.1/gcc-4.8.1.tar.bz2
$ tar -jxf gcc-4.8.1.tar.bz2

SVN version of mingw-w64 is required:
$ svn co svn://svn.code.sf.net/p/mingw-w64/code/trunk mingw-w64-svn


** 32-bit environment **

* binutils

$ mkdir binutils-2.23.2-mingw32 && cd binutils-2.23.2-mingw32
$ ../binutils-2.23.2/configure --prefix=/usr/local/ --target=i686-w64-mingw32
$ make
# make install

* mingw-w64 headers

$ mkdir mingw-w64-headers32 && cd mingw-w64-headers32
$ ../mingw-w64-svn/mingw-w64-headers/configure --host=i686-w64-mingw32 --prefix=/usr/local/i686-w64-mingw32/ --enable-sdk=all --enable-secure-api --enable-idl
# make install

* GCC compiler

$ mkdir gcc-4.8.1-mingw32 && cd gcc-4.8.1-mingw32
$ ../gcc-4.8.1/configure --prefix=/usr/local/ --target=i686-w64-mingw32 --with-gnu-ld --with-gnu-as --enable-languages=c,c++ --disable-multilib
$ make all-gcc
# make install-gcc

* mingw-w64 crt

$ mkdir mingw-w64-lib32 && cd mingw-w64-lib32
$ ../mingw-w64-svn/mingw-w64-crt/configure --host=i686-w64-mingw32 --prefix=/usr/local/i686-w64-mingw32/
$ make
# make install

* Finnishing GCC

$ cd gcc-4.8.1-mingw32
$ make
# make install


** 64-bit environment **

* binutils

$ mkdir binutils-2.23.2-mingw64 && cd binutils-2.23.2-mingw64
$ ../binutils-2.23.2/configure --prefix=/usr/local/ --target=x86_64-w64-mingw32 --disable-multilib
$ make
# make install

* mingw-w64 headers

$ mkdir mingw-w64-headers64 && cd mingw-w64-headers64
$ ../mingw-w64-svn/mingw-w64-headers/configure --host=x86_64-w64-mingw32 --prefix=/usr/local/x86_64-w64-mingw32 --enable-sdk=all --enable-secure-api --enable-idl
# make install

* GCC compiler

$ mkdir gcc-4.8.1-mingw64 && cd gcc-4.8.1-mingw64
$ ../gcc-4.8.1/configure --target=x86_64-w64-mingw32 --disable-multilib --prefix=/usr/local/ --enable-languages=c,c++ --with-gnu-ld --with-gnu-as
$ make all-gcc
# make install-gcc

* mingw-w64 crt

$ mkdir mingw-w64-lib64 && cd mingw-w64-lib64
$ ../mingw-w64-svn/mingw-w64-crt/configure --host=x86_64-w64-mingw32 --prefix=/usr/local/x86_64-w64-mingw32/
$ make
# make install

* Finishing GCC

$ cd gcc-4.8.1-mingw64
$ make
# make install

** Compiling wine_gecko **

To compile Wine Gecko package simply run wine/make_package script. See 'wine/make_package --help'
for available options. Also if you want to use parallel build, set MAKEOPTS environment variable to
something like -j4. You may also change default build dir by setting BUILD_DIR environment variable.

$ wine/make_package

If all goes well, you should have a complete package in ../wine_gecko-$TARGET$DEBUG-$VERSION/dist/wine_gecko