raziel2001au
2009-Sep-03 05:05 UTC
[Wine] MAC OS X compile -> 'OpenGL development headers not found'
Hey everyone, I want to compile and start using Wine on my Mac, but I'm getting the following message from ./configure: configure: WARNING: OpenGL development headers not found. OpenGL and Direct3D won't be supported. Since I want OpenGL and Direct3D working, this is a bit of a problem. My system is not configured funny or anything. It is a clean system running Mac OS X Snow Leopard with a freshly installed copy of XCode 3.2... I didn't fiddle with environment variables or anything else, so my setup is quite ordinary. Is it Snow Leopard or XCode 3.2 at fault? I checked the FAQ and various notes on the site, I also tried the google custom search on here, but no solutions :(. Does anyone know what might be causing this? Thanks, Raz.
ryan woodsmall
2009-Sep-03 05:13 UTC
[Wine] MAC OS X compile -> 'OpenGL development headers not found'
On Sep 3, 2009, at 12:05 AM, raziel2001au wrote:> I want to compile and start using Wine on my Mac, but I'm getting > the following message from ./configure: > configure: WARNING: OpenGL development headers not found. > OpenGL and Direct3D won't be supported. > > Since I want OpenGL and Direct3D working, this is a bit of a > problem. My system is not configured funny or anything. It is a > clean system running Mac OS X Snow Leopard with a freshly installed > copy of XCode 3.2... I didn't fiddle with environment variables or > anything else, so my setup is quite ordinary. > > Is it Snow Leopard or XCode 3.2 at fault? I checked the FAQ and > various notes on the site, I also tried the google custom search on > here, but no solutions :(. > > Does anyone know what might be causing this?There are a lot of prereqs to compiling on OS X. Snow Leopard is new enough that you probably won't have a ton of luck. I have 1.1.29 working on my MacBook with Snow Leopard, with OpenGL working. Direct3D is another matter - haven't had enough time to work that out yet. I have an Intel X3100 graphics card; the newer Nvidia-based machines might fare better. Are you setting any LDFLAGS, or explicitly setting CC/CXX? To force 32-bit, I'm using: gcc -arch i386 -m32 for my compiler flags; to set a few linker flags, I'm using: -framework CoreServices -lz -L/usr/X11/lib -lGL -lGLU YMMV, of course. OpenGL shouldn't be an issue, though. ryan woodsmall rwoodsmall at mac.com "Be well, do good work, and keep in touch." - Garrison Keillor
raziel2001au
2009-Sep-03 05:48 UTC
[Wine] Re: MAC OS X compile -> 'OpenGL development headers not found
No well, I haven't set anything since none of the instructions on the Mac page even mention anything about needing to set environment variables or altering compiler arguments...
doh123
2009-Sep-04 15:51 UTC
[Wine] Re: MAC OS X compile -> 'OpenGL development headers not found
ok... before i compile an app i want as 32 bit.. not 64.. like Freetype.. I did... export CXXFLAGS="-arch i386 -m32" and they compiled correctly as 32 bit and Wine could see them fine... still need to figure out how the OpenGL development headers are different
clone2727
2009-Sep-05 20:38 UTC
[Wine] Re: MAC OS X compile -> 'OpenGL development headers not found
It's not just a Snow Leopard problem; I'm having the same problem in Leopard 10.5.7 (the failing to load OpenGL). I didn't have a problem linking with OpenGL, however.
rwoodsmall
2009-Sep-05 21:12 UTC
[Wine] Re: MAC OS X compile -> 'OpenGL development headers not found
And the actual compiler stuff... -ryan Code: $ system_profiler | egrep "(Model|Processor) Name:" Model Name: MacBook Processor Name: Intel Core 2 Duo $ cat > hello.c << "EOF"> #include <stdio.h> > int main(void) > { > printf("hello.\n"); > return(0); > } > EOF$ gcc-4.2 hello.c -o hello $ file hello hello: Mach-O 64-bit executable x86_64 $ gcc-4.0 hello.c -o hello $ file hello hello: Mach-O executable i386 $ system_profiler | egrep "(Model|Processor) Name:" Model Name: Mac mini Processor Name: Intel Core 2 Duo $ cat > hello.c << "EOF"> #include <stdio.h> > int main(void) > { > printf("hello.\n"); > return(0); > } > EOF$ gcc-4.2 hello.c -o hello $ file hello hello: Mach-O 64-bit executable x86_64 $ gcc-4.0 hello.c -o hello $ file hello hello: Mach-O executable i386