Installing Wine on Mac OS 10.6.2

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
TheAndyBob
Level 2
Level 2
Posts: 10
Joined: Tue Jan 12, 2010 5:25 pm

Installing Wine on Mac OS 10.6.2

Post by TheAndyBob »

Okay, so i'm new to installing wine, and i'm trying to get it to work on my Intel Macbook. I got all the way to the make command, but now i get this error message.

winegcc: ../../tools/winebuild/winebuild failed
make[2]: *** [krnl386.exe16.so] Error 2
make[1]: *** [krnl386.exe16] Error 2
make: *** [dlls] Error 2

I had problems with the C compiler earlier, so i reinstalled the newest version of X Code with everything included. I tried to do a sudo version of this code too, but that gave the same error.
How do I go about fixing this? Thanks in advanced.
ryan woodsmall

Installing Wine on Mac OS 10.6.2

Post by ryan woodsmall »

Okay, so i'm new to installing wine, and i'm trying to get it to work on my Intel Macbook. I got all the way to the make command, but now i get this error message.

winegcc: ../../tools/winebuild/winebuild failed
make[2]: *** [krnl386.exe16.so] Error 2
make[1]: *** [krnl386.exe16] Error 2
make: *** [dlls] Error 2

I had problems with the C compiler earlier, so i reinstalled the newest version of X Code with everything included. I tried to do a sudo version of this code too, but that gave the same error.
How do I go about fixing this? Thanks in advanced.
Use the "--disable-win16" argument for configure. This is a known issue on 10.5, and 16-bit changes appear to have broken on 10.4 and 10.6 where they previously worked. Was mentioned in a previous thread:

http://forum.winehq.org/viewtopic.php?t=7349

Trying to get to a point where I can even do a "git bisect" between 1.1.35/36 to see which commit caused this compilation problem to occur, but don't currently even have a spare moment.
TheAndyBob
Level 2
Level 2
Posts: 10
Joined: Tue Jan 12, 2010 5:25 pm

Post by TheAndyBob »

Sorry i must have missed it earlier. And that did the trick, thanks!
TheAndyBob
Level 2
Level 2
Posts: 10
Joined: Tue Jan 12, 2010 5:25 pm

Post by TheAndyBob »

So I'm still trying to get everything to work with Wine. My problem now is getting FreeType to work. But in order for that to work, i need AutoMake updated, and for automake to work, autoconf needs to be updated (what a circle huh?). Anyway, so autoconf is not quite updating.
I downloaded the new version, and did the ./configure; make; and sudo make install. But when i check the version, it's still an older version. How can i get this updated?
ryan woodsmall

Installing Wine on Mac OS 10.6.2

Post by ryan woodsmall »

So I'm still trying to get everything to work with Wine. My problem now is getting FreeType to work. But in order for that to work, i need AutoMake updated, and for automake to work, autoconf needs to be updated (what a circle huh?). Anyway, so autoconf is not quite updating.
I downloaded the new version, and did the ./configure; make; and sudo make install. But when i check the version, it's still an older version. How can i get this updated?
I have a script that handles prereqs and installs Wine into ~/wine/wine-X.X.X for me:

http://code.google.com/p/osxwinebuilder/

And Austin English wrote one too:

http://winezeug.googlecode.com/svn/trun ... sx-deps.sh

The reason you're still seeing the old version is probably because compiles from source generally go into /usr/local by default. Your include/library search paths likely aren't taking this into account, hence finding old versions elsewhere in the filesystem.
TheAndyBob
Level 2
Level 2
Posts: 10
Joined: Tue Jan 12, 2010 5:25 pm

Post by TheAndyBob »

So at the very end, it said this:

make[1]: update-desktop-database: No such file or directory
make[1]: [install] Error 1 (ignored)
/usr/bin/install -c ./winemaker /Users/AndyBob/wine/wine-1.1.36/bin/winemaker
/usr/bin/install -c -m 644 winemaker.man /Users/AndyBob/wine/wine-1.1.36/share/man/man1/winemaker.1
succesfully ran 'make install' in /Users/AndyBob/wine/build/wine-1.1.36'
Juliet:osxwinebuilder-read-only AndyBob$

I see it has an error, but it also says that it successfully ran the 'make install'. Did this completely do it's thing? And thank you so much for the help.
ryan woodsmall

Installing Wine on Mac OS 10.6.2

Post by ryan woodsmall »

So at the very end, it said this:

make[1]: update-desktop-database: No such file or directory
make[1]: [install] Error 1 (ignored)
/usr/bin/install -c ./winemaker /Users/AndyBob/wine/wine-1.1.36/bin/winemaker
/usr/bin/install -c -m 644 winemaker.man /Users/AndyBob/wine/wine-1.1.36/share/man/man1/winemaker.1
succesfully ran 'make install' in /Users/AndyBob/wine/build/wine-1.1.36'
Juliet:osxwinebuilder-read-only AndyBob$

I see it has an error, but it also says that it successfully ran the 'make install'. Did this completely do it's thing? And thank you so much for the help.
Indeed, it's done - the 'update-desktop-databse' error pops up since OS X doesn't ship with the package that provides the program:

http://www.freedesktop.org/software/desktop-file-utils

You should now be able to set some environment variables and startup Wine:

export PATH="${HOME}/wine/wine-1.1.36/bin:${PATH}"
export DYLD_FALLBACK_LIBRARY_PATH="${HOME}/wine/wine-1.1.36/lib:/usr/X11/lib:/usr/lib"
which wine # should return /Users/AndyBob/wine/wine-1.1.36/bin/wine
wine winecfg # should bring up the wine config app

Good luck, let me know how it goes and if you have any trouble, let me know:

http://code.google.com/p/osxwinebuilder/issues/list

Don't think anyone (besides me) is actually using this, so I'd love to have some feedback! -ryan
TheAndyBob
Level 2
Level 2
Posts: 10
Joined: Tue Jan 12, 2010 5:25 pm

Post by TheAndyBob »

Brilliant! Thanks. I'm new to wine (only fiddled with it on Linux Mint), so it'll be slow for me to get everything down on it for mac. I'll let you know how things go.

~Andrew
James McKenzie

Installing Wine on Mac OS 10.6.2

Post by James McKenzie »

TheAndyBob wrote:
Brilliant! Thanks. I'm new to wine (only fiddled with it on Linux Mint), so it'll be slow for me to get everything down on it for mac. I'll let you know how things go.

Andrew:

You will find some programs will not run on MacOSX. Not Wine's fault,
it is Apple's broken OpenGL and X11 implementation. This is less on
Snow Leopard.

However, please do update any program entries in the Application
Database so there will be current MacOSX or a MacOSX entry.

James McKenzie
TheAndyBob
Level 2
Level 2
Posts: 10
Joined: Tue Jan 12, 2010 5:25 pm

Post by TheAndyBob »

Can do. I'll do my best to contribute my experiences. I am having a bit of a Free Type issue though. It's saying I need a version greater than or equal to 2.0.5. Some apps aren't running because of this.
James McKenzie

Installing Wine on Mac OS 10.6.2

Post by James McKenzie »

TheAndyBob wrote:
Can do. I'll do my best to contribute my experiences. I am having a bit of a Free Type issue though. It's saying I need a version greater than or equal to 2.0.5. Some apps aren't running because of this.

I've found this as well. Freetype comes with MacOSX. Use terminal and
search for fonts.conf or font.conf (I cannot remember exactly which file
it has to be.) The file has to be copied so that Wine can 'see' it.
Maybe someone else has the location. I use Mike Kronenberg's Darwine
build system and it has to be in an exact location in it as well.

James McKenzie
TheAndyBob
Level 2
Level 2
Posts: 10
Joined: Tue Jan 12, 2010 5:25 pm

Re: Installing Wine on Mac OS 10.6.2

Post by TheAndyBob »

James McKenzie wrote:I've found this as well. Freetype comes with MacOSX. Use terminal and
search for fonts.conf or font.conf (I cannot remember exactly which file
it has to be.) The file has to be copied so that Wine can 'see' it.
Maybe someone else has the location. I use Mike Kronenberg's Darwine
build system and it has to be in an exact location in it as well.

James McKenzie
I searched for fonts.conf and found a few files. However they are already in the wine folder. One is in the wine->wine-1.1.36->lib->fontconfig->fonts.conf; and another is in wine -> build -> fontconfig-2.8.0 -> fonts.conf.
What can I do about this?
ryan woodsmall

Installing Wine on Mac OS 10.6.2

Post by ryan woodsmall »

I searched for fonts.conf and found a few files. However they are already in the wine folder. One is in the wine->wine-1.1.36->lib->fontconfig->fonts.conf; and another is in wine -> build -> fontconfig-2.8.0 -> fonts.conf.
What can I do about this?
Have you installed Freetype/Fontconfig into /usr/local (from source), /opt/local or /sw (MacPorts or Fink), etc.? The builder I use compiles its own Freetype and Fontconfig and drops them into the ~/wine/wine-X.X.X hierarchy. I've not run into any problems with fonts on my 4 test machines.
TheAndyBob
Level 2
Level 2
Posts: 10
Joined: Tue Jan 12, 2010 5:25 pm

Post by TheAndyBob »

Freetype is located buried deep into the opt/local folder (goes farther into other folders). It's also in the wine folder.
Dominus
Level 2
Level 2
Posts: 11
Joined: Sun Nov 15, 2009 4:19 pm

Post by Dominus »

You might need to point to the fonts file:
export FONTCONFIG_FILE='/opt/local/etc/fonts/fonts.conf'
is what I do, at least when using a git compile instead of the MacPorts one.
TheAndyBob
Level 2
Level 2
Posts: 10
Joined: Tue Jan 12, 2010 5:25 pm

Post by TheAndyBob »

Hmmm. I just did that and I have the same problem. Would perhaps re-installing everything do the trick?
James McKenzie

Installing Wine on Mac OS 10.6.2

Post by James McKenzie »

TheAndyBob wrote:
Hmmm. I just did that and I have the same problem. Would perhaps re-installing everything do the trick?

Let's see where this file resides on my Leopard install:

/usr/X11/lib/X11/fontconfig/fonts.conf

This will change for Snow Leopard.

James McKenzie
TheAndyBob
Level 2
Level 2
Posts: 10
Joined: Tue Jan 12, 2010 5:25 pm

Post by TheAndyBob »

I have that file in the exact same spot.
Locked