On Sun, 19 Aug 2007, Yves de Champlain wrote:
Le 07-08-19 à 19:41, Yves de Champlain a écrit :Congrats for the new release !
Thanks.
I am geting this problem
MacOS X 10.4.10 PPC with gcc 4.0.1
/usr/bin/cc -c -Wall -Wpointer-arith -no-cpp-precomp -fno-common -I. -I../../../extras/Mesa/include -I../../../lib/GL/glx -I../../../extras/Mesa/src/mesa/main -I../../../extras/Mesa/src/mesa/glapi -I../../../extras/Mesa/src/mesa/drivers/x11 -I../../../extras/Mesa/src/mesa/ -I../../../programs/Xserver/hw/xfree86/os-support/shared/drm/kernel -I../../../programs/Xserver/GL/dri -I../../../programs/Xserver/hw/xfree86/os-support -I../../../exports/include "-I/Users/Shared/MacPorts/build/_Users_Shared_MacPorts_dports_x11_XFree86/work/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 -DDEFAULT_DRIVER_DIR=\"/usr/X11R6/lib/modules/dri\" -DGLX_ALIAS_UNSUPPORTED -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -DXNO_MTSAFE_UNISTDAPI -Os -fno-strict-aliasing glxcmds.c -o unshared/glxcmds.o glxcmds.c:50:38: error: X11/extensions/xf86vmode.h: No such file or directory
This comes from this part of xc/lib/GL/glx/glxcmds.c
#ifdef GLX_DIRECT_RENDERING #include "indirect_init.h" #include <X11/extensions/xf86vmode.h> #endif
Cute. In my test builds, the header was found in /usr/include/X11 :-(
I've dug a little deeper and xf86vmode.h is not exported. This should happen here in xc/include/extensions/Imakefile :
#if BuildXF86VidModeExt || BuildXF86VidModeLibrary XF86VIDMODEHEADERS = xf86vmode.h xf86vmstr.h #endif
The first is disabled in darwin.cf :
/* no XFree86-VidMode extension */ #define BuildXF86VidModeExt NO
The second should be defined in xfree86.cf :
#ifndef BuildXF86VidModeLibrary #define BuildXF86VidModeLibrary YES #endif
This looks contradictory to me, so I don't know what is the best solution
No. That xfree86.cf snippet is protected by ... #if BuildXFree86ConfigTools && BuildLibrariesForConfigTools ... which is false on Darwin. Anyway, the attached seems to fix this. Marc. +----------------------------------+----------------------------------+ | 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.
Attachment:
GLX_VIDMODE.diff.gz
Description: Binary data