[meta-intel] [PATCH] emgd-driver-bin: add pkgconfig files

Kamble, Nitin A nitin.a.kamble at intel.com
Mon Apr 1 20:48:00 PDT 2013


Today I tested the libva & libva-intel-driver update commits with other BSPs. And they are failing for non-EMGD based BSPs too.

For example here is a  failure for sugarbay BSP.
| va_display_wayland.c:61:18: warning: assignment makes pointer from integer without a cast [enabled by default]
| va_display_wayland.c: In function 'va_open_display_wayland':
| va_display_wayland.c:95:9: error: too many arguments to function 'wl_display_get_fd'
| In file included from ../../va/wayland/va_wayland.h:31:0,
|                  from va_display_wayland.c:28:
| /srv/home/nitin/build-test-bsps/build-sugarbay/tmp/sysroots/sugarbay/usr/include/wayland-client.h:142:5: note: declared here
| make[3]: *** [libva_display_la-va_display_wayland.lo] Error 1
| make[3]: *** Waiting for unfinished jobs....
| make[3]: Leaving directory `/srv/home/nitin/build-test-bsps/build-sugarbay/tmp/work/x86_64-poky-linux/libva/1.1.0-r1.0/libva-1.1.0/test/common'
| make[2]: *** [all-recursive] Error 1
| make[2]: Leaving directory `/srv/home/nitin/build-test-bsps/build-sugarbay/tmp/work/x86_64-poky-linux/libva/1.1.0-r1.0/libva-1.1.0/test'
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory `/srv/home/nitin/build-test-bsps/build-sugarbay/tmp/work/x86_64-poky-linux/libva/1.1.0-r1.0/libva-1.1.0'
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (see /srv/home/nitin/build-test-bsps/build-sugarbay/tmp/work/x86_64-poky-linux/libva/1.1.0-r1.0/temp/log.do_compile.42581 for further information)
ERROR: Task 2352 (/srv/home/nitin/build-test-bsps/poky.git/../meta-intel.git/common/recipes-multimedia/libva/libva_1.1.0.bb, do_compile) failed with exit code '1'

I tried to keep the old libva recipe for the EMGD based BSPs, that solves the issue for EMGD based BSPs, but it still leaves outstanding issue with libva as seen above.

Thanks,
Nitin


> -----Original Message-----
> From: Palcu, Laurentiu
> Sent: Wednesday, March 27, 2013 3:57 AM
> To: Kamble, Nitin A
> Cc: Zanussi, Tom; meta-intel at yoctoproject.org
> Subject: Re: [meta-intel] [PATCH] emgd-driver-bin: add pkgconfig files
> 
> Hi Nitin,
> 
> I'll work on this as soon as I'll find a free time slot. But, did you see Ross
> reply? The issue happens because glesv2.pc file was added to emgd package
> and, now, mesa-demos assumes that it has gles and tries to link against the
> emgd libraries witch are missing some symbols. So, IMO, mesa-demos should
> be made dependent on mesa.
> 
> Thanks,
> Laurentiu
> 
> On 03/26/2013 06:15 PM, Kamble, Nitin A wrote:
> > Hi Laurentiu,
> >   Do you have any update on this? We need to close this in order to finalize
> for the v1.4 release.
> >
> > Thanks,
> > Nitin
> >
> >
> >> -----Original Message-----
> >> From: meta-intel-bounces at yoctoproject.org [mailto:meta-intel-
> >> bounces at yoctoproject.org] On Behalf Of Kamble, Nitin A
> >> Sent: Monday, March 18, 2013 3:54 PM
> >> To: Zanussi, Tom
> >> Cc: meta-intel at yoctoproject.org
> >> Subject: Re: [meta-intel] [PATCH] emgd-driver-bin: add pkgconfig
> >> files
> >>
> >> I am also seeing build errors:
> >>
> >> | eglut.c: In function '_eglutDestroyWindow':eglut.c: In function
> >> '_eglutDestroyWindow':
> >> |
> >> | eglut.c:55:32: error: 'EGL_SCREEN_BIT_MESA' undeclared (first use
> >> | in this function)eglut.c:55:32: error: 'EGL_SCREEN_BIT_MESA'
> >> | undeclared (first use in this function)
> >> |
> >> | eglut.c:55:32: note: each undeclared identifier is reported only
> >> | once for each function it appears ineglut.c:55:32: note: each
> >> | undeclared identifier is reported only once for each function it
> >> | appears in
> >> |
> >> | eglut.c: In function '_eglutCreateWindow':
> >> | eglut.c:153:9: error: 'EGL_SCREEN_BIT_MESA' undeclared (first use
> >> | in this function)
> >> | eglut.c: In function '_eglutCreateWindow':
> >> | eglut.c:153:9: error: 'EGL_SCREEN_BIT_MESA' undeclared (first use
> >> | in this function)
> >> | eglut_screen.c:13:1: error: unknown type name 'EGLScreenMESA'
> >> | eglut_screen.c:14:1: error: unknown type name 'EGLModeMESA'
> >> | eglut_screen.c: In function '_eglutNativeInitDisplay':
> >> | eglut_screen.c:21:27: error: 'EGL_SCREEN_BIT_MESA' undeclared
> >> | (first use in this function)
> >> | eglut_screen.c:21:27: note: each undeclared identifier is reported
> >> | only once for each function it appears in
> >> | eglut_screen.c: In function 'init_kms':
> >> | eglut_screen.c:36:4: error: unknown type name 'EGLModeMESA'
> >> | eglut_screen.c: In function '_eglutNativeInitWindow':
> >> | eglut_screen.c:95:26: warning: assignment makes pointer from
> >> | integer without a cast [enabled by default]
> >> | eglut.c: In function 'eglutDestroyWindow':
> >> | eglut.c: In function 'eglutDestroyWindow':eglut.c:268:33: error:
> >> | 'EGL_SCREEN_BIT_MESA' undeclared (first use in this function)
> >> |
> >> | eglut.c:268:33: error: 'EGL_SCREEN_BIT_MESA' undeclared (first use
> >> | in this function)
> >> | make[3]: *** [eglut_screen.lo] Error 1
> >> | make[3]: *** Waiting for unfinished jobs....
> >> | make[3]: *** [libeglut_x11_la-eglut.lo] Error 1
> >> | make[3]: *** [eglut.lo] Error 1
> >> | make[3]: Leaving directory `/srv/ssd/nitin_builds/build-
> >> emenlow/tmp/work/core2-poky-linux/mesa-demos/8.0.1-r4/mesa-
> demos-
> >> 8.0.1/src/egl/eglut'
> >> | make[2]: *** [all-recursive] Error 1
> >> | make[2]: Leaving directory `/srv/ssd/nitin_builds/build-
> >> emenlow/tmp/work/core2-poky-linux/mesa-demos/8.0.1-r4/mesa-
> demos-
> >> 8.0.1/src/egl'
> >> | make[1]: *** [all-recursive] Error 1
> >> | make[1]: Leaving directory `/srv/ssd/nitin_builds/build-
> >> emenlow/tmp/work/core2-poky-linux/mesa-demos/8.0.1-r4/mesa-
> demos-
> >> 8.0.1/src'
> >> | make: *** [all-recursive] Error 1
> >> | ERROR: oe_runmake failed
> >> | ERROR: Function failed: do_compile (see
> >> | /srv/ssd/nitin_builds/build-emenlow/tmp/work/core2-poky-
> linux/mesa-
> >> dem
> >> | os/8.0.1-r4/temp/log.do_compile.40596 for further information)
> >> ERROR: Task 2105 (/srv/home/nitin/prj/poky.git/meta/recipes-
> >> graphics/mesa/mesa-demos_8.0.1.bb, do_compile) failed with exit code
> '1'
> >> NOTE: Tasks Summary: Attempted 5656 tasks of which 5600 didn't need
> >> to be rerun and 1 failed.
> >> Waiting for 0 running tasks to finish:
> >>
> >> Summary: 1 task failed:
> >>   /srv/home/nitin/prj/poky.git/meta/recipes-graphics/mesa/mesa-
> >> demos_8.0.1.bb, do_compile
> >>
> >>
> >>
> >>> -----Original Message-----
> >>> From: Zanussi, Tom
> >>> Sent: Monday, March 18, 2013 10:39 AM
> >>> To: Kamble, Nitin A
> >>> Cc: Palcu, Laurentiu; meta-intel at yoctoproject.org
> >>> Subject: Re: [meta-intel] [PATCH] emgd-driver-bin: add pkgconfig
> >>> files
> >>>
> >>> On Mon, 2013-03-18 at 12:16 -0500, Tom Zanussi wrote:
> >>>> On Wed, 2013-03-13 at 15:51 +0000, Kamble, Nitin A wrote:
> >>>>> Laurentiu,
> >>>>>   Can you push your patchset to contrib, so that I can git-fetch
> >>>>> it locally to
> >>> test them out?
> >>>>>
> >>>>
> >>>> Did you test them out?  Please ack them if they can be pulled in,
> >>>> but anyway, I see the following when building:
> >>>>
> >>>> WARNING: The recipe mesa-dri is trying to install files into a
> >>>> shared area when those files already exist. Those files and their
> >>>> manifest location are:
> >>>>    /usr/local/dev/yocto/nitin-
> >>> test/build/tmp/sysroots/crownbay/usr/lib/pkgconfig/gl.pc
> >>>>    Matched in manifest-crownbay-emgd-driver-bin Please verify which
> >>>> package should provide the above files.
> >>>>
> >>>
> >>> Also, a build error (I build with tools-testapps so I can build
> >>> mesa-demos for
> >>> testing):
> >>>
> >>>  make[3]: Leaving directory
> >>> `/usr/local/dev/yocto/nitin-test/build/tmp/work/core2-poky-linux/mes
> >>> a- demos/8.0.1-r4/mesa-demos-8.0.1/src/egl/eglut'
> >>> | make[2]: *** [all-recursive] Error 1
> >>> | make[2]: Leaving directory
> >>> `/usr/local/dev/yocto/nitin-test/build/tmp/work/core2-poky-linux/mes
> >>> a- demos/8.0.1-r4/mesa-demos-8.0.1/src/egl'
> >>> | make[1]: *** [all-recursive] Error 1
> >>> | make[1]: Leaving directory
> >>> `/usr/local/dev/yocto/nitin-test/build/tmp/work/core2-poky-linux/mes
> >>> a- demos/8.0.1-r4/mesa-demos-8.0.1/src'
> >>> | make: *** [all-recursive] Error 1
> >>> | ERROR: oe_runmake failed
> >>> | ERROR: Function failed: do_compile
> >>> (see /usr/local/dev/yocto/nitin-test/build/tmp/work/core2-poky-
> >>> linux/mesa-demos/8.0.1-r4/temp/log.do_compile.5371 for further
> >>> information)
> >>> ERROR: Task 2105
> >>> (/usr/local/dev/yocto/nitin-test/meta/recipes-graphics/mesa/mesa-
> >>> demos_8.0.1.bb, do_compile) failed with exit code '1'
> >>>
> >>>
> >>>>
> >>>>> Thanks,
> >>>>> Nitin
> >>>>>
> >>>>>
> >>>>>> -----Original Message-----
> >>>>>> From: Palcu, Laurentiu
> >>>>>> Sent: Wednesday, March 13, 2013 4:44 AM
> >>>>>> To: Kamble, Nitin A
> >>>>>> Cc: Burton, Ross; meta-intel at yoctoproject.org
> >>>>>> Subject: [PATCH] emgd-driver-bin: add pkgconfig files
> >>>>>>
> >>>>>> Add pkgconfig files needed by other projects (for example newer
> >>>>>> libva packages look for egl.pc file).
> >>>>>>
> >>>>>> Pkgconfig files added by this patch:
> >>>>>>  * egl.pc
> >>>>>>  * gl.pc
> >>>>>>  * gles_cm.pc
> >>>>>>  * glesv2.pc
> >>>>>>
> >>>>>> Signed-off-by: Laurentiu Palcu <laurentiu.palcu at intel.com>
> >>>>>> ---
> >>>>>> Hi Nitin,
> >>>>>>
> >>>>>> This patch should be pushed before the rest of the patches in the
> >>>>>> "upgrade libva & libva-intel-driver" patchset.
> >>>>>>
> >>>>>> Thanks,
> >>>>>> Laurentiu
> >>>>>>
> >>>>>>  .../xorg-driver/emgd-driver-bin/egl.pc             |   12 ++++++++++++
> >>>>>>  .../xorg-driver/emgd-driver-bin/gl.pc              |   13 +++++++++++++
> >>>>>>  .../xorg-driver/emgd-driver-bin/gles_cm.pc         |   12
> ++++++++++++
> >>>>>>  .../xorg-driver/emgd-driver-bin/glesv2.pc          |   12 ++++++++++++
> >>>>>>  .../xorg-driver/emgd-driver-bin_1.16.bb            |   11 ++++++++++-
> >>>>>>  5 files changed, 59 insertions(+), 1 deletion(-)  create mode
> >>>>>> 100644
> >>>>>> common/recipes-graphics/xorg-driver/emgd-driver-bin/egl.pc
> >>>>>>  create mode 100644
> >>>>>> common/recipes-graphics/xorg-driver/emgd-driver-
> >>>>>> bin/gl.pc
> >>>>>>  create mode 100644
> >>>>>> common/recipes-graphics/xorg-driver/emgd-driver-
> >>>>>> bin/gles_cm.pc
> >>>>>>  create mode 100644
> >>>>>> common/recipes-graphics/xorg-driver/emgd-driver-
> >>>>>> bin/glesv2.pc
> >>>>>>
> >>>>>> diff --git
> >>>>>> a/common/recipes-graphics/xorg-driver/emgd-driver-bin/egl.pc
> >>>>>> b/common/recipes-graphics/xorg-driver/emgd-driver-bin/egl.pc
> >>>>>> new file mode 100644
> >>>>>> index 0000000..42efd64
> >>>>>> --- /dev/null
> >>>>>> +++ b/common/recipes-graphics/xorg-driver/emgd-driver-
> bin/egl.pc
> >>>>>> @@ -0,0 +1,12 @@
> >>>>>> +prefix=/usr
> >>>>>> +exec_prefix=${prefix}
> >>>>>> +libdir=/usr/lib
> >>>>>> +includedir=/usr/include
> >>>>>> +
> >>>>>> +Name: egl
> >>>>>> +Description: EMGD EGL library
> >>>>>> +Requires.private:
> >>>>>> +Version: 1.16
> >>>>>> +Libs: -L${libdir} -lEGL
> >>>>>> +Libs.private: -lm -lpthread -ldl
> >>>>>> +Cflags: -I${includedir}
> >>>>>> diff --git
> >>>>>> a/common/recipes-graphics/xorg-driver/emgd-driver-bin/gl.pc
> >>>>>> b/common/recipes-graphics/xorg-driver/emgd-driver-bin/gl.pc
> >>>>>> new file mode 100644
> >>>>>> index 0000000..bf07495
> >>>>>> --- /dev/null
> >>>>>> +++ b/common/recipes-graphics/xorg-driver/emgd-driver-bin/gl.pc
> >>>>>> @@ -0,0 +1,13 @@
> >>>>>> +prefix=/usr
> >>>>>> +exec_prefix=${prefix}
> >>>>>> +libdir=/usr/lib
> >>>>>> +includedir=/usr/include
> >>>>>> +
> >>>>>> +Name: gl
> >>>>>> +Description: EMGD OpenGL library
> >>>>>> +Requires.private:
> >>>>>> +Version: 1.16
> >>>>>> +Libs: -L${libdir} -lGL
> >>>>>> +Libs.private: -lm -lpthread -ldl
> >>>>>> +Cflags: -I${includedir}
> >>>>>> +glx_tls: yes
> >>>>>> diff --git a/common/recipes-graphics/xorg-driver/emgd-driver-
> >>>>>> bin/gles_cm.pc
> >>>>>> b/common/recipes-graphics/xorg-driver/emgd-driver-
> >>>>>> bin/gles_cm.pc
> >>>>>> new file mode 100644
> >>>>>> index 0000000..a0c828f
> >>>>>> --- /dev/null
> >>>>>> +++ b/common/recipes-graphics/xorg-driver/emgd-driver-
> >>> bin/gles_cm.
> >>>>>> +++ pc
> >>>>>> @@ -0,0 +1,12 @@
> >>>>>> +prefix=/usr
> >>>>>> +exec_prefix=${prefix}
> >>>>>> +libdir=/usr/lib
> >>>>>> +includedir=/usr/include
> >>>>>> +
> >>>>>> +Name: gles_cm
> >>>>>> +Description: EMGD OpenGL ES 1.1 CM library
> >>>>>> +Requires.private:
> >>>>>> +Version: 1.16
> >>>>>> +Libs: -L${libdir} -lGLES_CM
> >>>>>> +Libs.private: -lm -lpthread -ldl
> >>>>>> +Cflags: -I${includedir}
> >>>>>> diff --git
> >>>>>> a/common/recipes-graphics/xorg-driver/emgd-driver-bin/glesv2.pc
> >>>>>> b/common/recipes-graphics/xorg-driver/emgd-driver-bin/glesv2.pc
> >>>>>> new file mode 100644
> >>>>>> index 0000000..02171fa
> >>>>>> --- /dev/null
> >>>>>> +++ b/common/recipes-graphics/xorg-driver/emgd-driver-
> bin/glesv2
> >>>>>> +++ .p
> >>>>>> +++ c
> >>>>>> @@ -0,0 +1,12 @@
> >>>>>> +prefix=/usr
> >>>>>> +exec_prefix=${prefix}
> >>>>>> +libdir=/usr/lib
> >>>>>> +includedir=/usr/include
> >>>>>> +
> >>>>>> +Name: glesv2
> >>>>>> +Description: EMGD OpenGL ES 2.0 library
> >>>>>> +Requires.private:
> >>>>>> +Version: 1.16
> >>>>>> +Libs: -L${libdir} -lGLESv2
> >>>>>> +Libs.private: -lm -lpthread -ldl
> >>>>>> +Cflags: -I${includedir}
> >>>>>> diff --git
> >>>>>> a/common/recipes-graphics/xorg-driver/emgd-driver-bin_1.16.bb
> >>>>>> b/common/recipes-graphics/xorg-driver/emgd-driver-bin_1.16.bb
> >>>>>> index ed49b4d..0c40d2b 100644
> >>>>>> ---
> >>>>>> a/common/recipes-graphics/xorg-driver/emgd-driver-bin_1.16.bb
> >>>>>> +++ b/common/recipes-graphics/xorg-driver/emgd-driver-
> bin_1.16.b
> >>>>>> +++ b
> >>>>>> @@ -28,7 +28,12 @@ python populate_packages_prepend() {
> >>>>>>      d.appendVar("RDEPENDS_" + pn, " xorg-abi-video-8")  }
> >>>>>>
> >>>>>> -SRC_URI =
> >>>>>>
> >>>
> >>
> "https://edc.intel.com/App_Shared/Downloads/LIN_IEMGD_1_16_GOLD_3
> >>>>>> 228.tgz"
> >>>>>> +SRC_URI =
> >>>>>>
> >>>
> >>
> "https://edc.intel.com/App_Shared/Downloads/LIN_IEMGD_1_16_GOLD_3
> >>>>>> 228.tgz \
> >>>>>> +           file://egl.pc \
> >>>>>> +           file://gl.pc \
> >>>>>> +           file://gles_cm.pc \
> >>>>>> +           file://glesv2.pc \
> >>>>>> +          "
> >>>>>>
> >>>>>>  SRC_URI[md5sum] = "339c902baeac0a5816108bea827b3685"
> >>>>>>  SRC_URI[sha256sum] =
> >>>>>>
> >>>
> >>
> "33ef38b83914ef7d1e12a430ec009352b415b9d5840c9d0db25744b7dc6a2473"
> >>>>>> @@ -161,6 +166,10 @@ do_install () {
> >>>>>>      ln -sf libmixcommon.so.0.10.8
> >>> ${D}${libdir}/libmixcommon.so.0
> >>>>>>      rm -f ${D}${libdir}/libgstvabuffer.so.0
> >>>>>>      ln -sf libgstvabuffer.so.0.10.8
> >>> ${D}${libdir}/libgstvabuffer.so.0
> >>>>>> +
> >>>>>> +    # Copy the .pc files
> >>>>>> +    install -d -m 0755                                    ${D}${libdir}/pkgconfig
> >>>>>> +    install -m 0644  ${WORKDIR}/*.pc
> >> ${D}${libdir}/pkgconfig/
> >>>>>>  }
> >>>>>>
> >>>>>>  LEAD_SONAME = "libEGL.so"
> >>>>>> --
> >>>>>> 1.7.9.5
> >>>>>
> >>>>> _______________________________________________
> >>>>> meta-intel mailing list
> >>>>> meta-intel at yoctoproject.org
> >>>>> https://lists.yoctoproject.org/listinfo/meta-intel
> >>>>
> >>>
> >>
> >> _______________________________________________
> >> meta-intel mailing list
> >> meta-intel at yoctoproject.org
> >> https://lists.yoctoproject.org/listinfo/meta-intel



More information about the meta-intel mailing list