This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

libIMGegl.so depends on wayland

Expert 1935 points

Hello,


the libIMGegl.so provided by omap5-sgx-ddk-um-linux depends on wayland.

Is there a libIGMegl,.so available that does not depend on wayland libs?

I still need DRM support (qt5->eglfs->egl/drm->driver)

Best regards,

Lo

  • Hi, 

    Lo2 said:
    Is there a libIGMegl,.so available that does not depend on wayland libs?

     

    I haven't heard of such libIMGegl.so. All devices that use the omap5-sgx-ddk-um-linux have wayland as their graphics environment. 

    Best Regards, 
    Yordan

  • Hi Yordan,

    It's for an embedded system which runs only one qt5 application, so I don't need a compositor (wayland) and would like to run on the eglfs api only.
    I do this for another project (kernel 3.12, old graphics sdk 5_01_01_02, qt5: qt->eglfs->egl/drm->driver) but the current processor SDK kernel moved to 4.1.3 which isn't usable with the old graphics sdk.
    libIMGegl.so is part of the binaries from the sgx ddk um.

    This is the output of qt5:
    warning: libwayland-server.so.0, needed by mysysroot/usr/lib/libIMGegl.so, not found (try using -rpath or -rpath-link)
    warning: libgbm.so.1, needed by mysysroot/usr/lib/libIMGegl.so, not found (try using -rpath or -rpath-link)
    mysysroot/usr/lib/libIMGegl.so: undefined reference to `wl_client_post_no_memory'
    mysysroot/usr/lib/libIMGegl.so: undefined reference to `wl_resource_post_error'
    mysysroot/usr/lib/libIMGegl.so: undefined reference to `wl_resource_destroy'
    mysysroot/usr/lib/libIMGegl.so: undefined reference to `wl_resource_get_user_data'
    mysysroot/usr/lib/libIMGegl.so: undefined reference to `wl_buffer_interface'
    mysysroot/usr/lib/libIMGegl.so: undefined reference to `wl_resource_set_implementation'
    mysysroot/usr/lib/libIMGegl.so: undefined reference to `wl_resource_instance_of'
    mysysroot/usr/lib/libIMGegl.so: undefined reference to `wl_resource_create'
    mysysroot/usr/lib/libIMGegl.so: undefined reference to `wl_global_destroy'
    mysysroot/usr/lib/libIMGegl.so: undefined reference to `wl_global_create'
    mysysroot/usr/lib/libIMGegl.so: undefined reference to `wl_resource_post_no_memory'
    mysysroot/usr/lib/libIMGegl.so: undefined reference to `wl_resource_post_event'

    the libgbm dependency is not an issue, the libwayland-server dependecy is what I'd like to remove from the binaries.

    Is there a sgx ddk release without wayland scheduled?

    Regards,
    Lo
  • I added libwayland (will remain unused) and libgbm, problem solved.

    Lo
  • Thanks for updating the thread.

    Best Regards,
    Yordan
  • Hi Lo2,

    Did you install on Ubunto Linux box?

    Could not install neither of them on my machine "Ubuntu 14.04.4 LTS":

    $ sudo apt-get install libwayland libgbmReading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package libwayland
    E: Unable to locate package libgbm

    Regards,
    George
  • Hi George,

    you'll need the libraries for the target system (in the sysroot), not for your host machine.

    You can get libgbm here: https://github.com/robclark/libgbm

    I do run ubuntu 14.04 LTS but on my host  machine there's no need for libgbm on the host side.

    It should be possible to run qt5 on eglfs without wayland but the SGX binaries don't support this mode of operation.

    Btw: the last time I checked rebuilding the SDK from source (the arago project/OE stuff) it failed at qt5 :-)

    I'd still be interested in running qt5 using the eglfs qpa without libwayland but that's a topic for a new thread.

    Regards,

    Lo2

  • Hi Lo2,


    That  make sense, installing libwayland on host is not necessary, and libgbm is already part of part of processor-sdk-02.00.02.11.

    Once added bitbake "-k' option, both wayland and libgbm were built after qt5, rerun the same bitbake command then qt5 is built and all "libIMGegl.so: undefined reference" error messages are gone. I suspect there is a dependency issue should be addressed by a new thread as well.

    Thanks,

    George

  • Hi George,

    Do you have the config line of qt5?

    I'm not sure how ti configured qt5 and why it should depend on libwayland (when used in eglfs kms/drm mode).

    Off topic: The kmscube demo is gone and does not run out of the box anymore - it was a nice example on how to use libdrm directly.

    Best regards,

    Lo2

  • Hi, Can you tell me ,Where can I download this libwayland-server.so? tks!

  • Hi user731153,

    libwayland-*.so is part of wayland, so if you build wayland the libs should be installed.

    Afaik the newer SDKs (03.xx.xx.xx) only support accelerated SGX graphics via wayland. Anyway wayland is mandatory to build the SGX kernel module / userspace combo. There are binary examples of the OGLES2*-demos that use the NullWS, they are installed adjacent to the wayland ones.

    I only use Qt5/EGLFS (directly, no wayland) based on what is shipped in SDK 02.xx.xx.xx.

    Best regards,

    Lo2

  • Okay, thanks!