mxcl/homebrew — Issue #9264: Wine doesn't compile; issue with XQuartz?
Author: ynadji
Created: 2011-12-24 17:49:42+00:00
State: open

My wine fails to compile both normal and devel.

[BrewDoctor](https://gist.github.com/1517888): this stuff seems unrelated.

Running [brew install --use-gcc -v wine](https://gist.github.com/1517889) complains about OpenGL not existing, despite the fact it finds the headers and the libs appear to be in /usr/X11/lib:

```$ ls /usr/X11/lib/*GL*
/usr/X11/lib/libGL.1.dylib
/usr/X11/lib/libGL.dylib
/usr/X11/lib/libGLU.1.dylib
/usr/X11/lib/libGLU.dylib```

I noticed I also have an X11 folder in /opt from my install of XQuartz, so I temporarily moved /usr/X11 and symlinked /opt/X11 into /usr. wine's configure stopped complaining about missing OpenGL, but still failed [compiling vanilla](https://gist.github.com/1517891) and [compiling devel](https://gist.github.com/1517893).

Any ideas? How did my /usr/X11 get messed up?

Thanks!