[Glamor] Error when I compile current glamor
Zhigang Gong
zhigang.gong at linux.intel.com
Thu Jul 12 02:49:54 PDT 2012
I guess you are using the latest git master xserver right?
The latest xserver change breaks glamor. At this time point, I suggest your switch back to
a previous version of xserver, for example the following verison:
commit a615b90cab7569fae9d123e4da1d3373c871d84b
Author: Keith Packard <keithp at keithp.com>
Date: Wed Mar 14 11:32:36 2012 -0700
Bump version number to 1.12.99.0
Now that 1.12 has branched, reset the version on master to a
development number.
Signed-off-by: Keith Packard <keithp at keithp.com>
If you want to play a bit with glamor.
We will fix it with the latest xserver latter. Thx.
> -----Original Message-----
> From:
> glamor-bounces+zhigang.gong=linux.intel.com at lists.freedesktop.org
> [mailto:glamor-bounces+zhigang.gong=linux.intel.com at lists.freedesktop.o
> rg] On Behalf Of son_of_the_osiris at interia.pl
> Sent: Thursday, July 12, 2012 4:28 PM
> To: glamor at lists.freedesktop.org
> Subject: [Glamor] Error when I compile current glamor
>
> Hi. I cannot compile glamor (git master), I have got following error:
> In file included from glamor.c:36:0:
> glamor_priv.h:551:11: warning: redundant redeclaration of
> 'glamor_create_pixmap' [-Wredundant-decls] In file included from
> glamor_priv.h:40:0,
> from glamor.c:36:
> glamor.h:144:28: note: previous declaration of 'glamor_create_pixmap'
> was here
> In file included from glamor.c:36:0:
> glamor_priv.h:570:6: warning: redundant redeclaration of
> 'glamor_init_pixmap_fbo' [-Wredundant-decls]
> glamor_priv.h:566:6: note: previous declaration of
> 'glamor_init_pixmap_fbo' was here
> glamor_priv.h:571:6: warning: redundant redeclaration of
> 'glamor_fini_pixmap_fbo' [-Wredundant-decls]
> glamor_priv.h:567:6: note: previous declaration of
> 'glamor_fini_pixmap_fbo' was here
> glamor_priv.h:605:6: warning: redundant redeclaration of
> 'glamor_create_gc' [-Wredundant-decls] In file included from
> glamor_priv.h:40:0,
> from glamor.c:36:
> glamor.h:233:22: note: previous declaration of 'glamor_create_gc' was
> here In file included from glamor.c:36:0:
> glamor_priv.h:685:6: warning: redundant redeclaration of
> 'glamor_glyph_unrealize' [-Wredundant-decls] In file included from
> glamor_priv.h:40:0,
> from glamor.c:36:
> glamor.h:300:23: note: previous declaration of 'glamor_glyph_unrealize'
> was here
> In file included from glamor.c:36:0:
> glamor_priv.h:950:2: warning: redundant redeclaration of
> 'glamor_upload_picture_to_texture' [-Wredundant-decls]
> glamor_priv.h:924:2: note: previous declaration of
> 'glamor_upload_picture_to_texture' was here
> glamor_priv.h:954:1: warning: redundant redeclaration of
> 'glamor_fixup_pixmap_priv' [-Wredundant-decls]
> glamor_priv.h:578:6: note: previous declaration of
> 'glamor_fixup_pixmap_priv' was here In file included from
> glamor_priv.h:1007:0,
> from glamor.c:36:
> glamor_utils.h:801:0: warning: "ARRAY_SIZE" redefined [enabled by
> default] In file included from /usr/include/xorg/privates.h:152:0,
> from /usr/include/xorg/cursor.h:53,
> from /usr/include/xorg/scrnintstr.h:53,
> from glamor.h:32,
> from glamor_priv.h:40,
> from glamor.c:36:
> /usr/include/xorg/dix.h:67:0: note: this is the location of the previous
> definition
> glamor.c: In function 'glamor_init':
> glamor.c:321:2: warning: passing argument 1 of
> 'glamor_gl_has_extension'
> discards 'const' qualifier from pointer target type [enabled by default] In
> file included from glamor.c:36:0:
> glamor_priv.h:638:6: note: expected 'char *' but argument is of type
> 'const char *'
> glamor.c:328:6: warning: passing argument 1 of
> 'glamor_gl_has_extension'
> discards 'const' qualifier from pointer target type [enabled by default] In
> file included from glamor.c:36:0:
> glamor_priv.h:638:6: note: expected 'char *' but argument is of type
> 'const char *'
> glamor.c:330:6: warning: passing argument 1 of
> 'glamor_gl_has_extension'
> discards 'const' qualifier from pointer target type [enabled by default] In
> file included from glamor.c:36:0:
> glamor_priv.h:638:6: note: expected 'char *' but argument is of type
> 'const char *'
> glamor.c:350:22: warning: assignment from incompatible pointer type
> [enabled by default]
> glamor.c: In function 'glamor_close_screen':
> glamor.c:536:2: warning: passing argument 1 of 'screen->CloseScreen'
> makes pointer from integer without a cast [enabled by default]
> glamor.c:536:2: note: expected 'ScreenPtr' but argument is of type 'int'
> glamor.c:536:2: error: too many arguments to function
> 'screen->CloseScreen'
> make[2]: *** [glamor.lo] Błąd 1
>
> I use mesa from git with these options:
> ./autogen.sh --prefix=/usr --with-dri-driverdir=/usr/lib/xorg/modules/dri \
> --with-dri-drivers= \
> --with-gallium-drivers=r300,swrast \
> --with-egl-platforms=x11,drm \
> --enable-gallium-llvm \
> --enable-gallium-egl \
> --disable-gallium-gbm \
> --enable-gallium-g3dvl \
> --enable-egl \
> --enable-gbm \
> --enable-xvmc \
> --enable-vdpau \
> --disable-debug \
> --enable-gles1 \
> --enable-gles2 \
> --enable-openvg \
> --enable-glx-tls \
> --enable-texture-float \
> --enable-shared-glapi \
> --disable-d3d1x
>
> What is going on?
> _______________________________________________
> Glamor mailing list
> Glamor at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/glamor
More information about the Glamor
mailing list