Hi, Josh& Richard, For sdk mode, the arm architecture could be configured and built successfully. But for poky tree mode, I will meet No package 'gtk+-2.0' error. If you need the test sudoku project, please let me know. Please see below log: Cleaning build directory: /home/lke/runtime-EclipseApplication/test_sudoku make distclean Making distclean in po make[1]: Entering directory `/home/lke/runtime-EclipseApplication/test_sudoku/po' rm -f *.insert-header rm -f remove-potcdate.sed rm -f stamp-poT rm -f core core.* sudoku-savant.po sudoku-savant.1po sudoku-savant.2po *.new.po rm -fr *.o rm -f Makefile Makefile.in POTFILES *.mo make[1]: Leaving directory `/home/lke/runtime-EclipseApplication/test_sudoku/po' Making distclean in src make[1]: Entering directory `/home/lke/runtime-EclipseApplication/test_sudoku/src' test -z "sudoku-savant" || rm -f sudoku-savant rm -f *.o rm -f *.tab.c test -z "" || rm -f test . = "." || test -z "" || rm -f rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags rm -rf ./.deps rm -f Makefile make[1]: Leaving directory `/home/lke/runtime-EclipseApplication/test_sudoku/src' Making distclean in . make[1]: Entering directory `/home/lke/runtime-EclipseApplication/test_sudoku' test -z "sudoku-savant.desktop" || rm -f sudoku-savant.desktop test . = "." || test -z "" || rm -f rm -f config.h stamp-h1 rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags make[1]: Leaving directory `/home/lke/runtime-EclipseApplication/test_sudoku' rm -f config.status config.cache config.log configure.lineno config.status.lineno rm -f Makefile [Operation successful] Generating Makefile in build directory: /home/lke/runtime-EclipseApplication/test_sudoku sh /home/lke/runtime-EclipseApplication/test_sudoku/configure --host=arm-poky-linux-gnueabi --build=i686-linux --target=arm-poky-linux-gnueabi checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for arm-poky-linux-gnueabi-strip... arm-poky-linux-gnueabi-strip checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for style of include used by make... GNU checking for C++ compiler default output file name... a.out checking whether the C++ compiler works... yes checking whether we are cross compiling... yes checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether arm-poky-linux-gnueabi-g++ accepts -g... yes checking dependency style of arm-poky-linux-gnueabi-g++... gcc3 checking for library containing strerror... none required checking whether we are using the GNU C++ compiler... (cached) yes checking whether arm-poky-linux-gnueabi-g++ accepts -g... (cached) yes checking dependency style of arm-poky-linux-gnueabi-g++... (cached) gcc3 checking for arm-poky-linux-gnueabi-gcc... arm-poky-linux-gnueabi-gcc checking whether we are using the GNU C compiler... yes checking whether arm-poky-linux-gnueabi-gcc accepts -g... yes checking for arm-poky-linux-gnueabi-gcc option to accept ISO C89... none needed checking dependency style of arm-poky-linux-gnueabi-gcc... gcc3 checking how to run the C++ preprocessor... arm-poky-linux-gnueabi-g++ -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking whether NLS is requested... yes checking for msgfmt... /media/poky/new_poky.git/build_arm/tmp/sysroots/i686-linux/usr/bin/msgfmt checking for gmsgfmt... /media/poky/new_poky.git/build_arm/tmp/sysroots/i686-linux/usr/bin/msgfmt checking for xgettext... /media/poky/new_poky.git/build_arm/tmp/sysroots/i686-linux/usr/bin/xgettext checking for msgmerge... /media/poky/new_poky.git/build_arm/tmp/sysroots/i686-linux/usr/bin/msgmerge checking build system type... i686-pc-linux-gnu checking host system type... arm-poky-linux-gnueabi checking for ld used by GCC... /media/poky/new_poky.git/build_arm/tmp/sysroots/i686-linux/usr/libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.5.0/ld checking if the linker (/media/poky/new_poky.git/build_arm/tmp/sysroots/i686-linux/usr/libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.5.0/ld) is GNU ld... yes checking for shared library run path origin... done checking for CFPreferencesCopyAppValue... no checking for CFLocaleCopyCurrent... no checking for GNU gettext in libc... yes checking whether to use NLS... yes checking where the gettext function comes from... libc checking for arm-poky-linux-gnueabi-pkg-config... no checking for pkg-config... /media/poky/new_poky.git/build_arm/tmp/sysroots/i686-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 configure: error: Package requirements (gtk+-2.0 >= 2.4.0) were not met: No package 'gtk+-2.0' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables PACKAGE_CFLAGS and PACKAGE_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. checking for PACKAGE... Configuration failed with error
For PPC, I meet the same problem as arm. Checked with dongxiao's test setup script, Seems export PATH should be OK, not sure whether CONFIG_SITE has some problem? Not sure. If dongxiao find anything, he'll update the bug status, I think. criping
I attached the environment file generated by "bitbake meta-ide-support". Check it will find that PKG_CONFIG_SYSROOT_DIR and PKG_CONFIG_PATH are pointing to un-exist directory. Modify ".../sysroots/powerpc-poky-linux" to ".../sysroots/ppc603e-poky-linux" will solve the problem. So does arm architecture. export PATH=/sda1/poky-20100903/build-qemuppc-gcc/tmp/sysroots/i686-linux/usr/bin/ppc603e-poky-linux:/sda1/poky-20100903/build-qemuppc-gcc/tmp/sysroots/ppc603e-poky-linux/usr/bin/crossscripts:/sda1/poky-20100903/build-qemuppc-gcc/tmp/sysroots/i686-linux/usr/sbin:/sda1/poky-20100903/build-qemuppc-gcc/tmp/sysroots/i686-linux/usr/bin:/sda1/poky-20100903/build-qemuppc-gcc/tmp/sysroots/i686-linux/sbin:/sda1/poky-20100903/build-qemuppc-gcc/tmp/sysroots/i686-linux//bin:/sda1/poky-20100903/scripts/..//bitbake//bin/:/sda1/poky-20100903/scripts/..//scripts:/sda1/poky-20100903/scripts/..//bitbake//bin/:/sda1/poky-20100903/scripts/..//scripts:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/sda1/poky-20100903/scripts export PKG_CONFIG_SYSROOT_DIR=/sda1/poky-20100903/build-qemuppc-gcc/tmp/sysroots/powerpc-poky-linux export PKG_CONFIG_PATH=/sda1/poky-20100903/build-qemuppc-gcc/tmp/sysroots/powerpc-poky-linux/usr/lib/pkgconfig export CONFIG_SITE="/sda1/poky-20100903/meta/site/endian-big /sda1/poky-20100903/meta/site/common-glibc /sda1/poky-20100903/meta/site/powerpc-common /sda1/poky-20100903/meta/site/powerpc-linux /sda1/poky-20100903/meta/site/common /sda1/poky-20100903/build-qemuppc-gcc/tmp/sysroots/ppc603e-poky-linux/usr/share/powerpc-poky-linux_config_site.d/glibc_config /sda1/poky-20100903/build-qemuppc-gcc/tmp/sysroots/ppc603e-poky-linux/usr/share/powerpc-poky-linux_config_site.d/zlib_config " export CC=powerpc-poky-linux-gcc export CXX=powerpc-poky-linux-g++ export GDB=powerpc-poky-linux-gdb export TARGET_PREFIX=powerpc-poky-linux- export CONFIGURE_FLAGS="--target=powerpc-poky-linux --host=powerpc-poky-linux --build=i686-linux" export CFLAGS="-mcpu=603e -mhard-float" export CXXFLAGS="-mcpu=603e -mhard-float" export POKY_NATIVE_SYSROOT="/sda1/poky-20100903/build-qemuppc-gcc/tmp/sysroots/i686-linux" export POKY_TARGET_SYSROOT="/sda1/poky-20100903/build-qemuppc-gcc/tmp/sysroots/ppc603e-poky-linux"
Thanks a lot for dongxiao's help! So josh or Richard, any of you could help to modify the script generation file? Thanks a lot! criping
I just sent a pull request which can fix this problem. Richard and Josh can help to review. Thanks, Dongxiao
The fix has been pushed into poky/master, mark the bug as fixed.
no longer have the build issue after the fix