From: caner <can...@gm...> - 2009-08-17 12:58:22
|
I am trying to compile linux-dri with USING_EGL=1 option. I've tried both the main branch and opengl-es branch. Both of them cannot compile radeon_egl.c with following error: Have any idea? /mesa-opengl-es/src/mesa/drivers/dri/r200# make USING_EGL=1 gcc -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver -I../../../../../include -I../../../../../src/mesa -I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri -I/usr/local/include -I/usr/local/include/drm -g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing -fPIC -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DRADEON_COMMON=1 -DRADEON_COMMON_FOR_R200 server/radeon_egl.c -o server/radeon_egl.o In file included from ../../../../../src/mesa/main/glheader.h:54, from ../../../../../src/mesa/drivers/dri/common/dri_util.h:54, from ../../../../../src/egl/drivers/dri/egldri.h:12, from server/radeon_egl.c:24: ../../../../../include/GL/glext.h:361:1: warning: "GL_SRC0_RGB" redefined In file included from ../../../../../src/egl/main/eglconfig.h:6, from server/radeon_egl.c:15: ../../../../../include/GLES/gl.h:568:1: warning: this is the location of the previous definition In file included from ../../../../../src/mesa/main/glheader.h:54, from ../../../../../src/mesa/drivers/dri/common/dri_util.h:54, from ../../../../../src/egl/drivers/dri/egldri.h:12, from server/radeon_egl.c:24: ../../../../../include/GL/glext.h:362:1: warning: "GL_SRC1_RGB" redefined In file included from ../../../../../src/egl/main/eglconfig.h:6, from server/radeon_egl.c:15: ../../../../../include/GLES/gl.h:569:1: warning: this is the location of the previous definition In file included from ../../../../../src/mesa/main/glheader.h:54, from ../../../../../src/mesa/drivers/dri/common/dri_util.h:54, from ../../../../../src/egl/drivers/dri/egldri.h:12, from server/radeon_egl.c:24: ../../../../../include/GL/glext.h:363:1: warning: "GL_SRC2_RGB" redefined In file included from ../../../../../src/egl/main/eglconfig.h:6, from server/radeon_egl.c:15: ../../../../../include/GLES/gl.h:570:1: warning: this is the location of the previous definition In file included from ../../../../../src/mesa/main/glheader.h:54, from ../../../../../src/mesa/drivers/dri/common/dri_util.h:54, from ../../../../../src/egl/drivers/dri/egldri.h:12, from server/radeon_egl.c:24: ../../../../../include/GL/glext.h:364:1: warning: "GL_SRC0_ALPHA" redefined In file included from ../../../../../src/egl/main/eglconfig.h:6, from server/radeon_egl.c:15: ../../../../../include/GLES/gl.h:571:1: warning: this is the location of the previous definition In file included from ../../../../../src/mesa/main/glheader.h:54, from ../../../../../src/mesa/drivers/dri/common/dri_util.h:54, from ../../../../../src/egl/drivers/dri/egldri.h:12, from server/radeon_egl.c:24: ../../../../../include/GL/glext.h:365:1: warning: "GL_SRC1_ALPHA" redefined In file included from ../../../../../src/egl/main/eglconfig.h:6, from server/radeon_egl.c:15: ../../../../../include/GLES/gl.h:572:1: warning: this is the location of the previous definition In file included from ../../../../../src/mesa/main/glheader.h:54, from ../../../../../src/mesa/drivers/dri/common/dri_util.h:54, from ../../../../../src/egl/drivers/dri/egldri.h:12, from server/radeon_egl.c:24: ../../../../../include/GL/glext.h:366:1: warning: "GL_SRC2_ALPHA" redefined In file included from ../../../../../src/egl/main/eglconfig.h:6, from server/radeon_egl.c:15: ../../../../../include/GLES/gl.h:573:1: warning: this is the location of the previous definition In file included from ../../../../../src/mesa/main/glheader.h:54, from ../../../../../src/mesa/drivers/dri/common/dri_util.h:54, from ../../../../../src/egl/drivers/dri/egldri.h:12, from server/radeon_egl.c:24: ../../../../../include/GL/glext.h:3976: error: redefinition of typedef ‘GLintptr’ ../../../../../include/GLES/gl.h:61: error: previous declaration of ‘GLintptr’ was here ../../../../../include/GL/glext.h:3977: error: redefinition of typedef ‘GLsizeiptr’ ../../../../../include/GLES/gl.h:62: error: previous declaration of ‘GLsizeiptr’ was here In file included from ../../../../../src/mesa/main/glheader.h:54, from ../../../../../src/mesa/drivers/dri/common/dri_util.h:54, from ../../../../../src/egl/drivers/dri/egldri.h:12, from server/radeon_egl.c:24: ../../../../../include/GL/glext.h:4130: error: expected declaration specifiers or ‘...’ before ‘GLdouble’ ../../../../../include/GL/glext.h:4131: warning: type defaults to ‘int’ in declaration of ‘GLdouble’ ../../../../../include/GL/glext.h:4131: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token ..................... ................Some other error messages from glext.h ../../../../../include/GL/glext.h:8476: error: expected declaration specifiers or ‘...’ before ‘GLdouble’ server/radeon_egl.c:26:20: error: mtypes.h: No such file or directory In file included from server/radeon_egl.c:27: ../../../../../src/mesa/drivers/dri/common/memops.h:7: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’ server/radeon_egl.c: In function ‘RADEONSetParam’: server/radeon_egl.c:56: warning: too many arguments for format server/radeon_egl.c: In function ‘RADEONDRIPciInit’: server/radeon_egl.c:169: warning: format ‘%08lx’ expects type ‘long unsigned int’, but argument 3 has type ‘drm_handle_t’ server/radeon_egl.c:179: warning: format ‘%08lx’ expects type ‘long unsigned int’, but argument 3 has type ‘drm_handle_t’ server/radeon_egl.c:189: warning: format ‘%08lx’ expects type ‘long unsigned int’, but argument 3 has type ‘drm_handle_t’ server/radeon_egl.c:199: warning: format ‘%08lx’ expects type ‘long unsigned int’, but argument 3 has type ‘drm_handle_t’ server/radeon_egl.c: In function ‘RADEONDRIAgpInit’: server/radeon_egl.c:293: warning: format ‘%08lx’ expects type ‘long unsigned int’, but argument 3 has type ‘drm_handle_t’ server/radeon_egl.c:305: warning: format ‘%08lx’ expects type ‘long unsigned int’, but argument 3 has type ‘drm_handle_t’ server/radeon_egl.c:315: warning: format ‘%08lx’ expects type ‘long unsigned int’, but argument 3 has type ‘drm_handle_t’ server/radeon_egl.c:325: warning: format ‘%08lx’ expects type ‘long unsigned int’, but argument 3 has type ‘drm_handle_t’ server/radeon_egl.c: In function ‘RADEONMemoryInit’: server/radeon_egl.c:414: warning: format ‘%x’ expects type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ server/radeon_egl.c:339: warning: unused variable ‘cpp’ server/radeon_egl.c: In function ‘RADEONScreenInit’: server/radeon_egl.c:700: warning: implicit declaration of function ‘drimemsetio’ server/radeon_egl.c: In function ‘radeonFillInConfigs’: server/radeon_egl.c:966: warning: implicit declaration of function ‘_eglFillInConfigs’ server/radeon_egl.c: At top level: server/radeon_egl.c:1072: error: conflicting types for ‘_eglMain’ ../../../../../src/egl/main/egldriver.h:47: error: previous declaration of ‘_eglMain’ was here make: *** [server/radeon_egl.o] Error 1 -- View this message in context: http://www.nabble.com/radeon_egl.c---incompatible-headers-tp25006299p25006299.html Sent from the mesa3d-users mailing list archive at Nabble.com. |
From: Chia-I Wu <ol...@gm...> - 2009-08-18 02:20:42
|
On Mon, Aug 17, 2009 at 05:58:11AM -0700, caner wrote: > I am trying to compile linux-dri with USING_EGL=1 option. I've tried both the > main branch and opengl-es branch. Both of them cannot compile radeon_egl.c > with following error: I think it fails to build for quite some time. I've been working on EGL with several other drivers. On X window, you can use egl_glx.so (src/egl/drivers/glx). It is a GLX wrapper to standard libGL.so. Or, egl_softpipe.so (src/gallium/winsys/egl_xlib/). It draws to a buffer which is uploaded to X as XImage. Both work well. I also have a patch pending to revive egl_xdri.so. In the console with intel KMS, you can try EGL_i915.so (src/gallium/winsys/drm/intel/egl/). It should work just fine too. There are some demos under progs/egl/. Under X, you can try those start with xegl. -- Regards, olv |
From: caner <can...@gm...> - 2009-08-18 05:50:55
|
Chia-I Wu-2 wrote: > > On Mon, Aug 17, 2009 at 05:58:11AM -0700, caner wrote: >> I am trying to compile linux-dri with USING_EGL=1 option. I've tried both >> the >> main branch and opengl-es branch. Both of them cannot compile >> radeon_egl.c >> with following error: > I think it fails to build for quite some time. > > I've been working on EGL with several other drivers. On X window, you > can use egl_glx.so (src/egl/drivers/glx). It is a GLX wrapper to > standard libGL.so. Or, egl_softpipe.so (src/gallium/winsys/egl_xlib/). > It draws to a buffer which is uploaded to X as XImage. Both work well. > I also have a patch pending to revive egl_xdri.so. > actually I am trying to build a xegl system(without x server) shown in the document experimentally: http://www.freedesktop.org/wiki/Xegl http://www.freedesktop.org/wiki/Xegl libEGL.so(library I want to use), libEGLdri.so(adapter driver), r200_dri.so(actual driver including radeon_egl.o) path is important for me. It also fails to build libEGLdri.so with several similar error messages, due to incompatible headers. Is it a dead end? Chia-I Wu-2 wrote: > > In the console with intel KMS, you can try EGL_i915.so > (src/gallium/winsys/drm/intel/egl/). It should work just fine too. > > There are some demos under progs/egl/. Under X, you can try those start > with xegl. > > -- > Regards, > olv > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Mesa3d-users mailing list > Mes...@li... > https://lists.sourceforge.net/lists/listinfo/mesa3d-users > > -- View this message in context: http://www.nabble.com/radeon_egl.c---incompatible-headers-tp25006299p25018913.html Sent from the mesa3d-users mailing list archive at Nabble.com. |
From: Chia-I Wu <ol...@gm...> - 2009-08-18 07:55:38
|
On Mon, Aug 17, 2009 at 10:50:49PM -0700, caner wrote: > actually I am trying to build a xegl system(without x server) shown in the > document experimentally: > http://www.freedesktop.org/wiki/Xegl http://www.freedesktop.org/wiki/Xegl > libEGL.so(library I want to use), libEGLdri.so(adapter driver), > r200_dri.so(actual driver including radeon_egl.o) path is important for me. > It also fails to build libEGLdri.so with several similar error messages, due > to incompatible headers. Is it a dead end? I don't know about the status of Xegl. If it is still alive, I am willing to help revive the drivers. -- Regards, olv |
From: Caner A. <can...@gm...> - 2009-08-19 07:27:53
|
Eagle EGL loader is the alternative way to use dri drivers with egl, am I right? It seems very similar, also it does not need the framebuffer interface... http://hoegsberg.blogspot.com/2009/07/eagle-egl-loader.html 2009/8/18 Chia-I Wu <ol...@gm...> > On Mon, Aug 17, 2009 at 10:50:49PM -0700, caner wrote: > > actually I am trying to build a xegl system(without x server) shown in > the > > document experimentally: > > http://www.freedesktop.org/wiki/Xegl > http://www.freedesktop.org/wiki/Xegl > > libEGL.so(library I want to use), libEGLdri.so(adapter driver), > > r200_dri.so(actual driver including radeon_egl.o) path is important for > me. > > It also fails to build libEGLdri.so with several similar error messages, > due > > to incompatible headers. Is it a dead end? > I don't know about the status of Xegl. If it is still alive, I am > willing to help revive the drivers. > > -- > Regards, > olv > |
From: Chia-I Wu <ol...@gm...> - 2009-08-20 01:51:58
|
On Wed, Aug 19, 2009 at 10:27:41AM +0300, Caner Altinbasak wrote: > Eagle EGL loader is the alternative way to use dri drivers with egl, am I > right? > It seems very similar, also it does not need the framebuffer interface... > http://hoegsberg.blogspot.com/2009/07/eagle-egl-loader.html Yup. It has an API similar to EGL, and it only depends on GEM. I also branched an older version of eagle here http://gitorious.org/android-eeepc/eagle It provides EGL API, and the native window system is Android. It is quite fun to work with eagle due to its simplicity. -- Regards, olv |