docs/fbdev-dri.html
section 2.1....
Copy it to the /mesa/include/GL/ directory
Then it gets farther on with the compilation but fails:
gcc -c -I. -I../../../include -I../../../include/GL/internal -I../../../src/mesa -I../../../src/mesa/glapi -I/usr/include/drm -I/usr/local/include -g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math -fvisibility=hidden -fno-strict-aliasing -fPIC -DUSE_X86_64_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DXF86VIDMODE -D_REENTRANT -UIN_DRI_DRIVER -DDEFAULT_DRIVER_DIR=\"/opt/xorg/lib/dri\" dri2_glx.c -o dri2_glx.o
dri2_glx.c: In function ‘dri2DrawableGetMSC’:
dri2_glx.c:208: warning: pointer targets in passing argument 3 of ‘DRI2GetMSC’ differ in signedness
dri2.h:93: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
dri2_glx.c:208: warning: pointer targets in passing argument 4 of ‘DRI2GetMSC’ differ in signedness
dri2.h:93: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
dri2_glx.c:208: warning: pointer targets in passing argument 5 of ‘DRI2GetMSC’ differ in signedness
dri2.h:93: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
dri2_glx.c: In function ‘dri2WaitForMSC’:
dri2_glx.c:216: warning: pointer targets in passing argument 6 of ‘DRI2WaitMSC’ differ in signedness
dri2.h:96: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
dri2_glx.c:216: warning: pointer targets in passing argument 7 of ‘DRI2WaitMSC’ differ in signedness
dri2.h:96: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
dri2_glx.c:216: warning: pointer targets in passing argument 8 of ‘DRI2WaitMSC’ differ in signedness
dri2.h:96: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
dri2_glx.c: In function ‘dri2WaitForSBC’:
dri2_glx.c:224: warning: pointer targets in passing argument 4 of ‘DRI2WaitSBC’ differ in signedness
dri2.h:100: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
dri2_glx.c:224: warning: pointer targets in passing argument 5 of ‘DRI2WaitSBC’ differ in signedness
dri2.h:100: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
dri2_glx.c:224: warning: pointer targets in passing argument 6 of ‘DRI2WaitSBC’ differ in signedness
dri2.h:100: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
dri2_glx.c: In function ‘dri2SwapBuffers’:
dri2_glx.c:385: warning: pointer targets in passing argument 6 of ‘DRI2SwapBuffers’ differ in signedness
dri2.h:89: note: expected ‘CARD64 *’ but argument is of type ‘int64_t *’
dri2_glx.c: In function ‘dri2CreateScreen’:
dri2_glx.c:583: warning: assignment from incompatible pointer type
gcc -c -I. -I../../../include -I../../../include/GL/internal -I../../../src/mesa -I../../../src/mesa/glapi -I/usr/include/drm -I/usr/local/include -g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math -fvisibility=hidden -fno-strict-aliasing -fPIC -DUSE_X86_64_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DXF86VIDMODE -D_REENTRANT -UIN_DRI_DRIVER -DDEFAULT_DRIVER_DIR=\"/opt/xorg/lib/dri\" dri2.c -o dri2.o
dri2.c: In function ‘DRI2WireToEvent’:
dri2.c:94: error: ‘DRI2_BufferSwapComplete’ undeclared (first use in this function)
dri2.c:94: error: (Each undeclared identifier is reported only once
dri2.c:94: error: for each function it appears in.)
dri2.c:97: error: ‘xDRI2BufferSwapComplete’ undeclared (first use in this function)
dri2.c:97: error: ‘awire’ undeclared (first use in this function)
dri2.c:97: error: expected expression before ‘)’ token
dri2.c:99: error: ‘DRI2_EXCHANGE_COMPLETE’ undeclared (first use in this function)
dri2.c:102: error: ‘DRI2_BLIT_COMPLETE’ undeclared (first use in this function)
dri2.c:105: error: ‘DRI2_FLIP_COMPLETE’ undeclared (first use in this function)
dri2.c: In function ‘load_swap_req’:
dri2.c:454: error: ‘xDRI2SwapBuffersReq’ has no member named ‘target_msc_hi’
dri2.c:455: error: ‘xDRI2SwapBuffersReq’ has no member named ‘target_msc_lo’
dri2.c:456: error: ‘xDRI2SwapBuffersReq’ has no member named ‘divisor_hi’
dri2.c:457: error: ‘xDRI2SwapBuffersReq’ has no member named ‘divisor_lo’
dri2.c:458: error: ‘xDRI2SwapBuffersReq’ has no member named ‘remainder_hi’
dri2.c:459: error: ‘xDRI2SwapBuffersReq’ has no member named ‘remainder_lo’
dri2.c: In function ‘DRI2SwapBuffers’:
dri2.c:473: error: ‘xDRI2SwapBuffersReply’ undeclared (first use in this function)
dri2.c:473: error: expected ‘;’ before ‘rep’
dri2.c:484: error: ‘rep’ undeclared (first use in this function)
dri2.c: In function ‘DRI2GetMSC’:
dri2.c:496: error: ‘xDRI2GetMSCReq’ undeclared (first use in this function)
dri2.c:496: error: ‘req’ undeclared (first use in this function)
dri2.c:497: error: ‘xDRI2MSCReply’ undeclared (first use in this function)
dri2.c:497: error: expected ‘;’ before ‘rep’
dri2.c:502: error: ‘sz_xDRI2GetMSCReq’ undeclared (first use in this function)
dri2.c:502: error: expected expression before ‘)’ token
dri2.c:502: error: ‘X_DRI2GetMSC’ undeclared (first use in this function)
dri2.c:507: error: ‘rep’ undeclared (first use in this function)
dri2.c: At top level:
dri2.c:524: error: expected ‘)’ before ‘*’ token
dri2.c: In function ‘DRI2WaitMSC’:
dri2.c:539: error: ‘xDRI2WaitMSCReq’ undeclared (first use in this function)
dri2.c:539: error: ‘req’ undeclared (first use in this function)
dri2.c:540: error: ‘xDRI2MSCReply’ undeclared (first use in this function)
dri2.c:540: error: expected ‘;’ before ‘rep’
dri2.c:545: error: ‘sz_xDRI2WaitMSCReq’ undeclared (first use in this function)
dri2.c:545: error: expected expression before ‘)’ token
dri2.c:545: error: ‘X_DRI2WaitMSC’ undeclared (first use in this function)
dri2.c:549: warning: implicit declaration of function ‘load_msc_req’
dri2.c:551: error: ‘rep’ undeclared (first use in this function)
dri2.c: At top level:
dri2.c:568: error: expected ‘)’ before ‘*’ token
dri2.c: In function ‘DRI2WaitSBC’:
dri2.c:578: error: ‘xDRI2WaitSBCReq’ undeclared (first use in this function)
dri2.c:578: error: ‘req’ undeclared (first use in this function)
dri2.c:579: error: ‘xDRI2MSCReply’ undeclared (first use in this function)
dri2.c:579: error: expected ‘;’ before ‘rep’
dri2.c:584: error: ‘sz_xDRI2WaitSBCReq’ undeclared (first use in this function)
dri2.c:584: error: expected expression before ‘)’ token
dri2.c:584: error: ‘X_DRI2WaitSBC’ undeclared (first use in this function)
dri2.c:588: warning: implicit declaration of function ‘load_sbc_req’
dri2.c:590: error: ‘rep’ undeclared (first use in this function)
dri2.c: In function ‘DRI2SwapInterval’:
dri2.c:609: error: ‘xDRI2SwapIntervalReq’ undeclared (first use in this function)
dri2.c:609: error: ‘req’ undeclared (first use in this function)
dri2.c:614: error: ‘sz_xDRI2SwapIntervalReq’ undeclared (first use in this function)
dri2.c:614: error: expected expression before ‘)’ token
dri2.c:614: error: ‘X_DRI2SwapInterval’ undeclared (first use in this function)
gmake[2]: *** [dri2.o] Error 1
gmake[2]: Leaving directory `/usr/src/mesa/src/glx/x11'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/usr/src/mesa/src'
make: *** [default] Error 1


Reply With Quote