You are right. I have a .bbappend to gtk+3 in meta-freescale layer[morty] that breaks the build. This is the .bbappend in case:

cat meta-freescale/recipes-graphics/gtk+/gtk+3_%.bb
PACKAGECONFIG_remove_imxgpu2d = " \
    ${@bb.utils.contains("DISTRO_FEATURES", "wayland", "x11", "", d)} \
"

CFLAGS_append_imxgpu2d = " \
    -DLINUX \
    ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '-DEGL_API_FB -DEGL_API_WL', '', d)} \
"
Ignoring this .bbappend makes the build of core-image-sato succeed.

Stefan

On Thu, Jun 1, 2017 at 10:00 AM, Jussi Kukkonen <jussi.kukkonen@intel.com> wrote:
On 31 May 2017 at 19:17, Ștefan Golinschi <stefan.golinschi@gmail.com> wrote:
I am trying to build a core-image-sato image for an imx6s SoC, but the build fails during the build of matchbox-desktop due to a missing package: gdk-x11-3.0.
In my local.conf:
IMAGE_INSTALL_append = " gdk-pixbuf".
Any help?

Below is the error log:
$ bitbake core-image-sato
ERROR: matchbox-panel-2-2.11-r0 do_configure: configure failed
ERROR: matchbox-panel-2-2.11-r0 do_configure: Function failed: do_configure (log file is located at /home/user/workspace/yocto/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/matchbox-panel-2/2.11-r0/temp/log.do_configure.17394)
ERROR: Logfile of failure stored in: /home/user/workspace/yocto/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/matchbox-panel-2/2.11-r0/temp/log.do_configure.17394
...
| checking dynamic linker characteristics... GNU/Linux ld.so
| checking how to hardcode library paths into programs... immediate
| checking whether stripping libraries is possible... yes
| checking if libtool supports shared libraries... yes
| checking whether to build shared libraries... yes
| checking whether to build static libraries... no
| checking whether gcc understands -Wall... yes
| checking whether gcc understands -Wstrict-prototypes... yes
| checking whether gcc understands -Wnested-externs... yes
| checking whether gcc understands -Werror=missing-prototypes... yes
| checking whether gcc understands -Werror=implicit-function-declaration... yes
| checking whether gcc understands -Werror=pointer-arith... yes
| checking whether gcc understands -Werror=init-self... yes
| checking whether gcc understands -Werror=format-security... no
| checking whether gcc understands -Werror=format=2... yes
| checking whether gcc understands -Werror=missing-include-dirs... yes
| checking whether gcc understands -Werror=return-type... yes
| checking what warning flags to pass to the C compiler...  -Wall -Wstrict-prototypes -Wnested-externs -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format=2 -Werror=missing-include-dirs -Werror=return-type
| checking what language compliance flags to pass to the C compiler...
| checking for arm-poky-linux-gnueabi-pkg-config... no
| checking for pkg-config... /home/user/workspace/yocto/build/tmp/sysroots/x86_64-linux/usr/bin/pkg-config
| configure: WARNING: using cross tools not prefixed with host triplet
| checking pkg-config is at least version 0.9.0... yes
| checking for MATCHBOX_PANEL... no
| configure: error: Package requirements (glib-2.0
|                   gmodule-export-2.0
|                   x11
|                   gdk-x11-3.0
|                   gtk+-3.0) were not met: 
| No package 'gdk-x11-3.0' found


For the record this is matchbox-panel failing, not matchbox-desktop.

That failure is quite surprising ... Does anything modify the gtk+3 recipe or configuration? Otherwise I don't see how gtk+3 could avoid providing gdk-x11-3.0.pc in a situation where matchbox-panel would still try to build. 

I think this could happen e.g. if you have "x11" in distro features but force gtk+3 to build without x11 packageconfig.  

Jussi


| Consider adjusting the PKG_CONFIG_PATH environment variable if you
| installed software in a non-standard prefix.
| Alternatively, you may set the environment variables MATCHBOX_PANEL_CFLAGS
| and MATCHBOX_PANEL_LIBS to avoid the need to call pkg-config.
| See the pkg-config man page for more details.
| WARNING: /home/user/workspace/yocto/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/matchbox-panel-2/2.11-r0/temp/run.do_configure.17394:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_configure (log file is located at /home/user/workspace/yocto/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/matchbox-panel-2/2.11-r0/temp/log.do_configure.17394)

Thanks,
Stefan

--
_______________________________________________
poky mailing list
poky@yoctoproject.org
https://lists.yoctoproject.org/listinfo/poky





--
Ștefan-Alexandru Golinschi