Problems with building Cairo for Windows CE

View: New views
7 Messages — Rating Filter:   Alert me  

Problems with building Cairo for Windows CE

by Mohit Sindhwani-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello!  So, I managed to get the latest pixman to build and I have
binaries for zlibce and libpngce.
I tried to follow the instructions at:
http://vividos.wordpress.com/2008/01/23/how-to-compile-cairo-for-pocketpc/ 
but I'm using Cairo 1.8.8

But, I do run into a few problems.  The main issues were with io.h,
errno.h and so on.  I stole seemingly relevant files from
https://ella.pragmaticomm.com/symbian-ruby/browser/trunk/wince which has
compatible files.

Next on, I'm stuck at an error in building win32-surface.c - there seem
to be some errors related to the function:
* _cairo_win32_save_initial_clip -> called from
_cairo_win32_surface_finish, _cairo_win32_surface_set_clip_region

Compilation errors/ warnings include:
1>..\..\..\cairo\src\cairo-win32-surface.c(1543) : warning C4013:
'ExtSelectClipRgn' undefined; assuming extern returning int
1>..\..\..\cairo\src\cairo-win32-surface.c(2050) : warning C4013:
'GetGraphicsMode' undefined; assuming extern returning int
1>..\..\..\cairo\src\cairo-win32-surface.c(2051) : error C2065:
'GM_ADVANCED' : undeclared identifier
1>..\..\..\cairo\src\cairo-win32-surface.c(2052) : warning C4013:
'GetWorldTransform' undefined; assuming extern returning int
1>..\..\..\cairo\src\cairo-win32-surface.c(2053) : warning C4013:
'ModifyWorldTransform' undefined; assuming extern returning int
1>..\..\..\cairo\src\cairo-win32-surface.c(2053) : error C2065:
'MWT_IDENTITY' : undeclared identifier
1>..\..\..\cairo\src\cairo-win32-surface.c(2059) : warning C4013:
'SetGraphicsMode' undefined; assuming extern returning int
1>..\..\..\cairo\src\cairo-win32-surface.c(2083) : warning C4013:
'SetWorldTransform' undefined; assuming extern returning int

These are new compared to 1.4.4 (the earlier build I had done), so I'm
wondering what to do.

There are other errors, but these I have no idea what to do with (yet).

Thanks,
Mohit.

_______________________________________________
cairo mailing list
cairo@...
http://lists.cairographics.org/mailman/listinfo/cairo

Re: Problems with building Cairo for Windows CE

by Mohit Sindhwani-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Mohit Sindhwani wrote:

> Hello!  So, I managed to get the latest pixman to build and I have
> binaries for zlibce and libpngce.
> I tried to follow the instructions at:
> http://vividos.wordpress.com/2008/01/23/how-to-compile-cairo-for-pocketpc/ 
> but I'm using Cairo 1.8.8
>
> But, I do run into a few problems.  The main issues were with io.h,
> errno.h and so on.  I stole seemingly relevant files from
> https://ella.pragmaticomm.com/symbian-ruby/browser/trunk/wince which has
> compatible files.
>
> Next on, I'm stuck at an error in building win32-surface.c - there seem
> to be some errors related to the function:
> * _cairo_win32_save_initial_clip -> called from
> _cairo_win32_surface_finish, _cairo_win32_surface_set_clip_region
>
> Compilation errors/ warnings include:
> 1>..\..\..\cairo\src\cairo-win32-surface.c(1543) : warning C4013:
> 'ExtSelectClipRgn' undefined; assuming extern returning int
> 1>..\..\..\cairo\src\cairo-win32-surface.c(2050) : warning C4013:
> 'GetGraphicsMode' undefined; assuming extern returning int
> 1>..\..\..\cairo\src\cairo-win32-surface.c(2051) : error C2065:
> 'GM_ADVANCED' : undeclared identifier
> 1>..\..\..\cairo\src\cairo-win32-surface.c(2052) : warning C4013:
> 'GetWorldTransform' undefined; assuming extern returning int
> 1>..\..\..\cairo\src\cairo-win32-surface.c(2053) : warning C4013:
> 'ModifyWorldTransform' undefined; assuming extern returning int
> 1>..\..\..\cairo\src\cairo-win32-surface.c(2053) : error C2065:
> 'MWT_IDENTITY' : undeclared identifier
> 1>..\..\..\cairo\src\cairo-win32-surface.c(2059) : warning C4013:
> 'SetGraphicsMode' undefined; assuming extern returning int
> 1>..\..\..\cairo\src\cairo-win32-surface.c(2083) : warning C4013:
> 'SetWorldTransform' undefined; assuming extern returning int
>
> These are new compared to 1.4.4 (the earlier build I had done), so I'm
> wondering what to do.
>
> There are other errors, but these I have no idea what to do with (yet).
>  

Sorry guys to be a bit pushy, but any advice for me?

Thanks,
Mohit.

_______________________________________________
cairo mailing list
cairo@...
http://lists.cairographics.org/mailman/listinfo/cairo

Re: Problems with building Cairo for Windows CE

by Mohit Sindhwani-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Mohit Sindhwani wrote:
> Mohit Sindhwani wrote:
>
> Next on, I'm stuck at an error in building win32-surface.c - there seem
> to be some errors related to the function:
> * _cairo_win32_save_initial_clip -> called from
> _cairo_win32_surface_finish, _cairo_win32_surface_set_clip_region
>  

Can anyone explain the function of the methods:
* cairo_int_status_t _cairo_win32_save_initial_clip (HDC hdc,
cairo_win32_surface_t *surface)
* cairo_int_status_t _cairo_win32_restore_initial_clip
(cairo_win32_surface_t *surface)

These throw up warning/ errors when compiling and eventually results in
missing symbols when on Windows CE.  On the other hand, these were not
there in 1.4.4.  These functions are called from:
1>_cairo_win32_restore_initial_clip referenced in function
_cairo_win32_surface_finish
1>_cairo_win32_save_initial_clip referenced in function
cairo_win32_surface_create

What do these two functions provide?  Can I remove them and replace them
with an older version.  Any advice?

Cheers,
Mohit.
10/12/2009 | 10:38 PM.








_______________________________________________
cairo mailing list
cairo@...
http://lists.cairographics.org/mailman/listinfo/cairo

Re: Problems with building Cairo for Windows CE

by Gerdus van Zyl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You might be interested in this patch in the mozilla source code for cairo:
http://hg.mozilla.org/mozilla-central/file/3205228e9838/gfx/cairo/wince-fixes.patch

If you don't get a reply on the ML you might try asking on the cairo IRC channel, people are sometimes more talkative on there.

~G

On Mon, Oct 12, 2009 at 4:38 PM, Mohit Sindhwani <ml3p@...> wrote:
Mohit Sindhwani wrote:
> Mohit Sindhwani wrote:
>
> Next on, I'm stuck at an error in building win32-surface.c - there seem
> to be some errors related to the function:
> * _cairo_win32_save_initial_clip -> called from
> _cairo_win32_surface_finish, _cairo_win32_surface_set_clip_region
>

Can anyone explain the function of the methods:
* cairo_int_status_t _cairo_win32_save_initial_clip (HDC hdc,
cairo_win32_surface_t *surface)
* cairo_int_status_t _cairo_win32_restore_initial_clip
(cairo_win32_surface_t *surface)

These throw up warning/ errors when compiling and eventually results in
missing symbols when on Windows CE.  On the other hand, these were not
there in 1.4.4.  These functions are called from:
1>_cairo_win32_restore_initial_clip referenced in function
_cairo_win32_surface_finish
1>_cairo_win32_save_initial_clip referenced in function
cairo_win32_surface_create

What do these two functions provide?  Can I remove them and replace them
with an older version.  Any advice?

Cheers,
Mohit.
10/12/2009 | 10:38 PM.








_______________________________________________
cairo mailing list
cairo@...
http://lists.cairographics.org/mailman/listinfo/cairo


_______________________________________________
cairo mailing list
cairo@...
http://lists.cairographics.org/mailman/listinfo/cairo

Re: Problems with building Cairo for Windows CE

by Mohit Sindhwani-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Gerdus van Zyl wrote:
> You might be interested in this patch in the mozilla source code for
> cairo:
> http://hg.mozilla.org/mozilla-central/file/3205228e9838/gfx/cairo/wince-fixes.patch
>
> If you don't get a reply on the ML you might try asking on the cairo
> IRC channel, people are sometimes more talkative on there.
Thanks Gerdus,

You're right - the list has been quiet on these issues, but I guess
there are not that many people using it on Windows CE then... all the
same, I do like Cairo and if it works on Windows CE, it'll be great for
what I'm planning.  But I need it to work so that I can do a meaningful
benchmark.

Cheers,
Mohit.
10/13/2009 | 9:46 AM.

_______________________________________________
cairo mailing list
cairo@...
http://lists.cairographics.org/mailman/listinfo/cairo

Re: Problems with building Cairo for Windows CE

by Vladimir Vukicevic-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 10/12/2009 6:46 PM, Mohit Sindhwani wrote:

> Gerdus van Zyl wrote:
>    
>> You might be interested in this patch in the mozilla source code for
>> cairo:
>> http://hg.mozilla.org/mozilla-central/file/3205228e9838/gfx/cairo/wince-fixes.patch
>>
>> If you don't get a reply on the ML you might try asking on the cairo
>> IRC channel, people are sometimes more talkative on there.
>>      
> Thanks Gerdus,
>
> You're right - the list has been quiet on these issues, but I guess
> there are not that many people using it on Windows CE then... all the
> same, I do like Cairo and if it works on Windows CE, it'll be great for
> what I'm planning.  But I need it to work so that I can do a meaningful
> benchmark.
>    

We've actually moved away from using the Win32 surface on CE -- it
provides very little benefit compared to just using a straight image
surface and doing a final blit, especially for anything moderately
complex.  Additionally, CE can't support text rendering using the win32
fonts API (it has no way to render glyphs), so Freetype has to be used.  
We just render everything to a 24bpp image surface so that we don't pay
any extra composite cost, and do a final 24->16 blit at the end.

     - Vlad

_______________________________________________
cairo mailing list
cairo@...
http://lists.cairographics.org/mailman/listinfo/cairo

Re: Problems with building Cairo for Windows CE

by Mohit Sindhwani-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Vladimir Vukicevic wrote:

> On 10/12/2009 6:46 PM, Mohit Sindhwani wrote:
>> Gerdus van Zyl wrote:
>>  
>>> You might be interested in this patch in the mozilla source code for
>>> cairo:
>>> http://hg.mozilla.org/mozilla-central/file/3205228e9838/gfx/cairo/wince-fixes.patch 
>>>
>>>
>>> If you don't get a reply on the ML you might try asking on the cairo
>>> IRC channel, people are sometimes more talkative on there.
>>>      
>> Thanks Gerdus,
>>
>> You're right - the list has been quiet on these issues, but I guess
>> there are not that many people using it on Windows CE then... all the
>> same, I do like Cairo and if it works on Windows CE, it'll be great for
>> what I'm planning.  But I need it to work so that I can do a meaningful
>> benchmark.
>>    
>
> We've actually moved away from using the Win32 surface on CE -- it
> provides very little benefit compared to just using a straight image
> surface and doing a final blit, especially for anything moderately
> complex.  Additionally, CE can't support text rendering using the
> win32 fonts API (it has no way to render glyphs), so Freetype has to
> be used.  We just render everything to a 24bpp image surface so that
> we don't pay any extra composite cost, and do a final 24->16 blit at
> the end.
>
Thanks Vlad,

Is there a guide/ blog post/ repository that I could use?  Or, just use
an image surface and that's it?

Cheers,
Mohit.
10/29/2009 | 3:06 AM.


_______________________________________________
cairo mailing list
cairo@...
http://lists.cairographics.org/mailman/listinfo/cairo