Opened 15 years ago

Closed 15 years ago

Last modified 12 years ago

#23210 closed defect (worksforme)

mesa fails to build due to external headers

Reported by: probono@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: puredarwin Cc: jeremyhu (Jeremy Huddleston Sequoia), aladin@…, cooljeanius (Eric Gallager)
Port: mesa

Description

mesa fails to build on a PureDarwin 9 system. Is there a way to change this port in a way that doesn't rely on headers that are outside of MacPorts?

make[2]: Nothing to be done for `default'.
make[4]: `../../../lib/libGLU.dylib' is up to date.
make[2]: Nothing to be done for `default'.
Making programs for darwin
DEBUG: Executing proc-post-org.macports.build-build-0
/usr/bin/gcc-4.0 -I. -Iinclude -Iinclude/internal -I/opt/local/include -I/opt/local/include -Wall -ggdb3 -Os -DPTHREADS -D_REENTRANT -DGLX_USE_APPLEGL -DGLX_ALIAS_UNSUPPORTED  -I/opt/local/include -I/opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/mesa/files/include -O2 -arch i386 -c glxext.c
In file included from include/GL/glx.h:45,
                 from glxclient.h:45,
                 from glxext.c:41:
include/GL/gl.h:53:68: error: /System/Library/Frameworks/OpenGL.framework/Headers/gl.h: No such file or directory
In file included from include/GL/gl.h:80,
                 from include/GL/glx.h:45,
                 from glxclient.h:45,
                 from glxext.c:41:
include/GL/glext.h:4491: error: syntax error before 'red'

Change History (3)

comment:1 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: worksforme
Status: newclosed

Yes, don't use the (on by default) hw_render variant.

sudo port -v install mesa -hw_render

comment:2 Changed 15 years ago by probono@…

Thanks jeremyhu, with -hw_render it works.

Is it possible to add a "puredarwin" variant that sets -hw_render automatically? (Unfortunately I couldn't figure out from the docs how to achieve this.)

comment:3 Changed 12 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.