[cairo] Cairo with OpenGLES

Benjamin Franzke benjaminfranzke at googlemail.com
Mon Jul 25 01:41:06 PDT 2011


2011/7/25 Singh Khurdiya Vijay (CM-AI/EAR) <Vijay.SinghKhurdiya at de.bosch.com>:
> Hello,
> While building Cairo for GLES2 I am getting below error. Can any one let me know the reason.
> ---------------------------------------------------------------------------------------------------------------------------------
>  CCLD   libcairo.la
> .libs/cairo-gl-composite.o: In function `_cairo_gl_operand_get_filter':
> /home/cairo-1.11.3/src/cairo-gl-composite.c:316: multiple definition of `_cairo_gl_operand_get_filter'
> .libs/cairo-gl-composite.o:/home/build-target/cairo-1.11.3/src/cairo-gl-composite.c:316: first defined here
> .libs/cairo-gl-composite.o: In function `_cairo_gl_operand_get_filter':
> /home/cairo-1.11.3/src/cairo-gl-composite.c:316: multiple definition of `_cairo_gl_operand_get_gl_filter'
> .libs/cairo-gl-composite.o:/home/cairo-1.11.3/src/cairo-gl-composite.c:316: first defined here
> .libs/cairo-gl-composite.o: In function `_cairo_gl_operand_get_extend':
> ---------------------------------------------------------------------------------------------------------------------------------
>
> In configure option I have enabled gl(--enable-gl) , gles2 (--enable-glesv2) & egl (--enable-egl).

You need to enable either gl or gles2 but not both.
>
> It would be really helpful if some of the below query also answered.
>
> Thanks....
>
> -----Original Message-----
> From: cairo-bounces+vijay.singhkhurdiya=de.bosch.com at cairographics.org [mailto:cairo-bounces+vijay.singhkhurdiya=de.bosch.com at cairographics.org] On Behalf Of Singh Khurdiya Vijay (CM-AI/EAR)
> Sent: Freitag, 22. Juli 2011 17:08
> To: Alexandros Frantzis
> Cc: cairo at cairographics.org
> Subject: Re: [cairo] Cairo with OpenGLES
>
>  On Fri, Jul 22, 2011 at 12:14:14PM +0200, Singh Khurdiya Vijay (CM-AI/EAR) wrote:
>> Hello,
>> Thanks....
>>
>> Currently I am trying to test some high level graphic toolkit like clutter (Currently testing),gtk...which will use cairo-pango for font rendering.
>> I have working clutter  with GLES2 flavor (eglx),but test which used Cairo for font rendering are not working properly.(Not getting H/W acceleration..)
>>
>> What I found up to know is clutter uses Cairo image surface backed for this purpose  but I wanted to try using other surface backed & preferring gles as my test is working.
>> I would like to know for this purpose can I use your work for testing & latter for extension based on need.
>>
>
> You can use cairo-gl surfaces for rendering fonts onto textures. Keep in
> mind, though, that:
>
> 1. Dependening on your use case you may not get any performance benefits.
>   Be sure to benchmark your changes.
>
> Do you have any test case available which can give idea about performance or any test to test gles2-cairo part will be really helpful.
>
> 2. Setting up and using a cairo-gl(es2) device and surface is more
>   complicated than using an image surface and requires interfacing with
>   EGL, ensuring you don't mess up clutter/cogl state etc.
>
> If you have come across any specific problem then please share the same.
>
> Is their any specific GL(ES2) extension required to test your changes.
> One more point currently I am not able to test ARGB 8888 from my GLES2 library but RGB 565 is working. I think so their might be some change required for the same in cairo-gl & egl source.
>
> Thanks,
> Singh
> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
>


More information about the cairo mailing list