[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


The modified supplied gl.h is in xc/extras/Mesa/include/GL and the modification is as follows:
* Added from gl.h found in frameworks
#ifndef GL_TYPEDEFS_2_0
#define GL_TYPEDEFS_2_0
    typedef char GLchar;

This is a work around; however, I believe the actual correction would be to generate the makefile with frameworks as a lead source or update Mesa to a later version of OpenGL. The defined versions in gl.h are as follows:

#define GL_VERSION_1_1   1
#define GL_VERSION_1_2   1
#define GL_VERSION_1_3   1
#define GL_ARB_imaging   1

whereas the defined versions in Frameworks are as follows:

#define GL_VERSION_1_1                    1
#define GL_VERSION_1_2                    1
#define GL_VERSION_1_3                    1
#define GL_VERSION_1_4                    1
#define GL_VERSION_1_5                    1
#define GL_VERSION_2_0                    1

	I hope this helps.

On Feb 19, 2007, at 8:11 AM, Marc Aurele La France wrote:

On Fri, 16 Feb 2007, Frank J. R. Hanstick wrote:

	The build process advanced to the following:

In file included from /System/Library/Frameworks/OpenGL.framework/ Headers/CGLContext.h:9,
               from dri_driver.h:43,
               from dri_driver.c:69:
/System/Library/Frameworks/OpenGL.framework/Headers/gliDispatch.h: 681: error: parse error before 'GLchar' /System/Library/Frameworks/OpenGL.framework/Headers/gliDispatch.h: 682: error: parse error before 'GLchar' dri_driver.c:115: warning: type qualifiers ignored on function return type
make[5]: *** [dri_driver.o] Error 1
make[4]: *** [all] Error 1
make[3]: *** [all] Error 1
make[2]: *** [all] Error 1
make[1]: *** [World] Error 2
make: *** [World] Error 2

The last entry in world.txt (my output file because of the log size limitations) is:

/usr/bin/cc -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common - I. -I../../../programs/Xserver/hw/xfree86/os-support -I../../../ programs/Xserver/hw/xfree86/os-support/shared/drm/kernel - I../../../lib/GL/glx -I../../../programs/Xserver/GL/dri -I../../../ programs/Xserver/hw/darwin/quartz/xpr -I../../../extras/Mesa/ include -I../../../extras/Mesa/src/mesa/glapi -I../../../lib/GL/ include -F/System/Library/Frameworks/ApplicationServices.framework/ Frameworks -I../../../exports/include -D__powerpc__ - D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DXTHREADS -D_REENTRANT - DXUSE_MTSAFE_API -DXNO_MTSAFE_UNISTDAPI -DGLXEXT - DGLX_DIRECT_RENDERING -DGLX_USE_APPLEGL -fno-common - DXP_NO_X_HEADERS=1 -DOSVERSION=8*100+8 -Os dri_driver.c -o unshared/dri_driver.o

This one I might not be able to help you with (much), but the first thing I'd do is scour /System/Library/Frameworks/OpenGL.framework/ Headers/ for a definition of GLchar. If it's not there, this is likely an Apple problem. If it is there, I'd figure out why it isn't being included.


+---------------------------------- +----------------------------------+ | Marc Aurele La France | work: 1-780-492-9310 | | Academic Information and | fax: 1-780-492-1729 | | Communications Technologies | email: tsi@xxxxxxxxxxx | | 352 General Services Building +----------------------------------+ | University of Alberta | | | Edmonton, Alberta | Standard disclaimers apply | | T6G 2H1 | | | CANADA | | +---------------------------------- +----------------------------------+
XFree86 developer and VP.  ATI driver and X server internals.
XFree86 mailing list

XFree86 mailing list

[Index of Archives]     [X Forum]     [Xorg]     [XFree86 Newbie]     [IETF Announce]     [Security]     [Font Config]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux Kernel]

  Powered by Linux