wenmhappy | 1 Oct 04:25 2011

error of building webkit with directfb

Hi everybody,
 
   I have successfully built (cross-compile) webkit-r59711 with --gtk (x11 default) on embed platform.  But now there are errors when i build it with --gtk --with-target=directfb.  In that case, webkit will depends on libgdk-x11-2.0.so and libgdk-directfb-2.0.so, they depend respectively on libcairo( with xlib) and libcairo( with directfb). Because of the same name, error is that undefined reference of cairo_xlib_surface_create in libgdk-x11-2.0.so when linking libcairo( with directfb) or undefined reference of cairo_directfb_surface_create in  libgdk-directfb-2.0.so when linking  libcairo( with xlib).  I don`t know why libgdk-x11-2.0.so is still dependency of webkit when building with --with-target=directfb?                  
 
 
 How do i resolve it?
 
Thanks for any help.  
Best regards.                                                                                      
 
 
 
 
 
 
 
 
 
 
 
 


<div>
<div>
<div>Hi everybody,</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp; I have successfully built (cross-compile) webkit-r59711 with --gtk (x11 default) on embed platform.&nbsp; But now there are errors when i build it with --gtk --with-target=directfb.&nbsp; In that case, webkit will depends on libgdk-x11-2.0.so and libgdk-directfb-2.0.so, they depend r<span title="&#20998;&#21035;">espectively on libcairo( with xlib) and libcairo( with directfb). Because of the same name, error is that undefined reference of cairo_xlib_surface_create in libgdk-x11-2.0.so when linking libcairo( with directfb) or undefined reference of cairo_directfb_surface_create in&nbsp; libgdk-directfb-2.0.so when linking&nbsp; libcairo( with xlib).&nbsp; I don`t know why libgdk-x11-2.0.so is still dependency of webkit when building with --with-target=directfb?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
</div>
<div>
<span title="&#20998;&#21035;"></span>&nbsp;</div>
<div><span title="&#20998;&#21035;">&nbsp;</span></div>
<div><span title="&#20998;&#21035;">&nbsp;How do i resolve it?</span></div>
<div>
<span title="&#20998;&#21035;"></span>&nbsp;</div>
<div><span title="&#20998;&#21035;">Thanks for&nbsp;any help.&nbsp;&nbsp;</span></div>
<div><span title="&#20998;&#21035;">Best regards.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></div>
<div>
<span title="&#20998;&#21035;"></span>&nbsp;</div>
<div>
<span title="&#20998;&#21035;"></span>&nbsp;</div>
<div>
<span title="&#20998;&#21035;"></span>&nbsp;</div>
<div>
<span title="&#20998;&#21035;"></span>&nbsp;</div>
<div>
<span title="&#20998;&#21035;"></span>&nbsp;</div>
<div>
<span title="&#20998;&#21035;"></span>&nbsp;</div>
<div>
<span title="&#20998;&#21035;"></span>&nbsp;</div>
<div>
<span title="&#20998;&#21035;"></span>&nbsp;</div>
<div>
<span title="&#20998;&#21035;"></span>&nbsp;</div>
<div>
<span title="&#20998;&#21035;"></span>&nbsp;</div>
<div>
<span title="&#20998;&#21035;"></span>&nbsp;</div>
<div>
<span title="&#20998;&#21035;"></span>&nbsp;</div>
</div>
<br><br><span title="neteasefooter"><span></span></span>
</div>
Julien Chaffraix | 2 Oct 20:44 2011
Picon

Re: error of building webkit with directfb

>    I have successfully built (cross-compile) webkit-r59711 with --gtk (x11
> default) on embed platform.  But now there are errors when i build it with
> --gtk --with-target=directfb.  In that case, webkit will depends on
> libgdk-x11-2.0.so and libgdk-directfb-2.0.so, they depend respectively on
> libcairo( with xlib) and libcairo( with directfb).

If you don't disable plugins (NPAPI) then WebKit has a dependency on X
on Linux. Have you tried compiling with --no-netscape-plugin? (I am
assuming that you are using build-webkit here if not you will need to
find the equivalent switch)

Hope it helps,
Julien

Gmane