Cross compiling error gtkmm-2.4 not found in pkg-config


I have built the image Angstrom-lxde-image 2.8b2 using oe-core. then i aheve appended gtkmm using
IMAGE_INSTALL_append = " gtkmm". Thendid.

bitbake -k angstrom-lxde-image

The image was built. Then i did

bitbake angstrom-lxde-image -c populate_sdk

Then the sdk folder with .sh file was present in deploy folder.

I have executed the sdk.

I have sourced the environment from the terminal

skanray@skanray-System-Product-Name:~$ cd eclipse
skanray@skanray-System-Product-Name:~/eclipse$ cd cpp-oxygen/eclipse/
skanray@skanray-System-Product-Name:~/eclipse/cpp-oxygen/eclipse$ . /usr/local/oecore-x86_64/environment-setup-armv7at2hf-neon-angstrom-linux-gnueabi
skanray@skanray-System-Product-Name:~/eclipse/cpp-oxygen/eclipse$ ./eclipse

Then creating a helloword gtkmm project in eclipse with crossGcc.

Then going to Project configuration

These properties are under
Project → Properties → C/C++ Build → Settings → Tool Settings

Currently these are the settings in my Eclipse gtkmm project

  1. Cross GCC Compiler
    Command: ${CC}
    Miscellaneous → Other flags: ${CFLAGS} -c --sysroot=/usr/local/oecore-x86_64/sysroots/armv7at2hf-neon-angstrom-linux-gnueabi/

  2. Cross G++ Compiler
    Command: ${CXX}
    Miscellaneous → Other flags: ${CXXFLAGS} -c -std=c++98 /usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr/bin/pkg-config --cflags gtkmm-2.4 --sysroot=/usr/local/oecore-x86_64/sysroots/armv7at2hf-neon-angstrom-linux-gnueabi/

Note the use of pkg-config in this step and next.

  1. Cross G++ Linker
    Command: ${CXX}
    Miscellaneous → Linker flags: ${LDFLAGS} /usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr/bin/pkg-config --libs gtkmm-2.4

  2. Cross GCC Assembler
    Command: ${AS}

Are changed but in pkg-config gtkmm-2.4 is not reflecting
Pkg-config of the eclipse project alt text

The errror when we compile the project is link text

What could be the issue? Please look in to this.


Could you check if the package gtkmm is included in your SDK folders?

sdk folders ?? and are present in /usr/local/oecore-x86_64/sysroots/

Package gtkmm-2.4 was not found in the pkg-config search path.
can you try doing this:
Perhaps you should add the directory containing `gtkmm-2.4.pc’
to the PKG_CONFIG_PATH environment variable