[yocto] how to deal with the dependency explosion caused by enabling x11vnc

Burton, Ross ross.burton at intel.com
Fri Dec 22 02:38:08 PST 2017


On 22 December 2017 at 02:53, Davis Roman <davis.roman84 at gmail.com> wrote:
>
> Hello,
>
>  I'd like to put a vnc server on my target.
>
> My embedded target has an onboard display and runs an application that
> drives the display directly via the framebuffer. ( no xorg onboard )
>
> I would like to use x11vnc ( with the --rawfb option ) however I'm
> having a hard time justifying the load of dependencies that it brings
> along with it. (Almost 100MB.)
>
> With the --rawfb option, x11vnc does not require a X server ( just
> libX11) to be onboard however I'm required to add x11 to
> DISTRO_FEATURES otherwise x11vnc won't compile.
>
> (x11vnc even drags gtk3 along with it which seems unnecessary.)
>
> My goal is to only add the minimum number of x11vnc depencies.
>
> Any advice on how to slim this down would be appreciated.


>From glancing at https://github.com/LibVNC/x11vnc/blob/master/configure.ac
it appears that you can tell it to build without X:

If you want to build x11vnc without X support (e.g. for -rawfb use only
> or for native Mac OS X), specify the --without-x configure option.


I'd use PACKAGECONFIG to respect the x11 DISTRO_FEATURE and enable/disable
building with X.

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20171222/2c927a66/attachment.html>


More information about the yocto mailing list