Building WINE on OS X Snow Leopard

I have a mostly clean Snow Leopard Install (64 bit) I want to compile and install WINE on.

Since most everything else I compile is 64-bit(x86_64), but WINE needs to be 32-bit(i386), here's some of the flags I pass to make universal binaries of its dependancies. Most of these are verbatim copies of each other, but I'll still be verbose about their configurations in case it changes in the future.

jpeg-8a

CFLAGS="-O -g -arch i386 -arch x86_64" LDFLAGS="-arch i386 -arch x86_64" ./configure --enable-shared --disable-dependency-tracking
make
sudo make install

tiff

CFLAGS="-O -g -arch i386 -arch x86_64" LDFLAGS="-arch i386 -arch x86_64" ./configure --enable-shared --disable-dependency-tracking
make
sudo make install

libxml2

CFLAGS="-O -g -arch i386 -arch x86_64" LDFLAGS="-arch i386 -arch x86_64" ./configure --enable-shared --disable-dependency-tracking
make
sudo make install

libxslt

CFLAGS="-O -g -arch i386 -arch x86_64" LDFLAGS="-arch i386 -arch x86_64" ./configure --enable-shared --disable-dependency-tracking
make
sudo make install

libicns

Force libpng to pick up png12, not later versions (like png14 and png15)

CFLAGS="-O -g -arch i386 -arch x86_64" LDFLAGS="-arch i386 -arch x86_64 -lpng12" ./configure --disable-dependency-tracking --disable-debug
make

libgpg-error (for libgcrypt)

CFLAGS="-O -arch i386 -arch x86_64" LDFLAGS="-arch i386 -arch x86_64" ./configure --disable-dependency-tracking
make
sudo make install

libgcrypt (for gnutls)

CFLAGS="-O -g -arch i386 -arch x86_64" LDFLAGS="-arch i386 -arch x86_64" ./configure --disable-dependency-tracking --disable-asm --with-gpg-error-prefix=/usr/local

libgnutls

CFLAGS="-O -g -arch i386 -arch x86_64" LDFLAGS="-arch i386 -arch x86_64" ./configure --disable-debug --disable-dependency-tracking --disable-guile

And finally:

Wine from git

mkdir build; cd build
CFLAGS="-O -g -arch i386 -m32" CXXFLAGS="$CFLAGS" CPPFLAGS="-I/usr/X11/include" LDFLAGS="-arch i386 -L/usr/X11/lib" ../configure --verbose --disable-win16
make depend && make
sudo make install

When I updated my sources to Wine v1.3.12 (commit f0296a815e32ef954975b6c2a43951d4fff8ff09) from 1.3.10, it complains about GetText 32-bit being out of date, but I have GNU gettext-1.18.1.1 compiled and installed, so I'm not sure.

Somewhere around Wine v1.3.20, I quit receiving GNU gettext out of date errors.


CategoryNotes

BuildingWine (last edited 2011-11-17 23:32:29 by HowardLogsdon)