View Single Post
Old 12-25-2008, 07:34 AM   #17
phasesync
Junior Member
phasesync began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Dec 2008
Device: iRex DR1000S
In hello_world's configure.ac there is a PKG_CHECK_MODULES(DEPS, gtk+-2.0 >= 2.2 glib-2.0 >= 2.2).

Code:
>cd /usr/local/poky/eabi-glibc/arm
>source environment-setup
>cd ~/hello_world
>autoreconf --install
>./configure --host=arm-poky-linux-gnueabi
>make
works perfect (no dependency failures in config.log), though

Code:
>pkg-config --modversion gtk+-2.0
gives us version 2.12.7 which is less than 2.2, therefor I would suspect an error/warning like I get using Anjuta.

To ./configure in Anjuta...

>anjuta hello_world.anjuta
>Edit->Preferences
added Poky SDK addon
configured cross-compiler options in Poky SDK
use a full poky tree -> /usr/local/poky/eabi-glibc/arm
toolchain triplet -> arm-poky-linux-gnueabi
use QEMU Device emulator
-> zImage-2.6.23.qemuarm-xxx.bin
-> poky-image-ion-devel-qemuarm-xxx.rootfs.ext2
> Build->Clean Project
> Build->Run Autogenerate
> Build->Run Configure

Uh oh...

[config.log]
configure:6697: checking for DEPS
configure:6705: $PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.2 glib-2.0 >
= 2.2"
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found

which stops us from building the project :-(

Code:
> echo $PKG_CONFIG_PATH
/usr/local/poky/eabi-glibc/arm/arm-poky-linux-gnueabi/usr/lib/pkgconfig
Anjuta probably does not use the environment variables set by sourcing the environment-setup. Strangely the gtk and glib version numbers are less than expected if I'm not mistaken.

Last edited by phasesync; 12-26-2008 at 04:54 AM.
phasesync is offline   Reply With Quote