[yocto] Trying to cross compile Mono - glib link error

Zhang, Jessica jessica.zhang at intel.com
Thu Nov 10 20:24:10 PST 2011


Hi Autif,

It seems the libgmodule-2.0.la is missing from the 1.1 tarball sysroot but I've checked it does exist under the sysroot that extracted from the core-image-sato-sdk image.  So, you have to do the following steps:
1. bitbake core-image-sato-sdk
2. source the environment-setup script under /opt/poky/1.1
3. Run runqemu-extract-sdk against the built out image file, it should be under your .../build/tmp/deploy/image/core-image-sato-sdk.tar.bz2 and the directory you want the sysroot to be extracted to e.g. $HOME/qemux86
4. change your sysroot setting to point to the newly created sysroot directory.

Or, you can following the ADT manual and using the part that use adt-installer to setup your cross development environment.

Hope these can get you going.

Jessica

-----Original Message-----
From: yocto-bounces at yoctoproject.org [mailto:yocto-bounces at yoctoproject.org] On Behalf Of autif khan
Sent: Thursday, November 10, 2011 6:44 PM
To: yocto at yoctoproject.org
Subject: [yocto] Trying to cross compile Mono - glib link error

I followed the instructions and installed the ADT from the 1.1 tarball
as outlined in documentation. And tested a few simple GTK apps.
Everything worked well.

After that I am trying to cross compile mono and I am getting the
following error:

LD      test-glib
libtool: link: warning: library
`/opt/poky/1.1/sysroots/i586-poky-linux/usr/lib/libgmodule-2.0.la' was
moved.
libtool: link: cannot find the library `=/usr/lib/libglib-2.0.la' or
unhandled argument `=/usr/lib/libglib-2.0.la'
make[4]: *** [test-glib] Error 1
make[4]: Leaving directory
`/home/autif/data/dev/projects/yocto/mono-2.10.6/eglib/test'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/autif/data/dev/projects/yocto/mono-2.10.6/eglib'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/autif/data/dev/projects/yocto/mono-2.10.6/eglib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/autif/data/dev/projects/yocto/mono-2.10.6'
make: *** [all] Error 2

compiler flags seem to look fine

autif at hp8440w:~/data/dev/projects/yocto/mono-2.10.6$ set | grep LD
BUILDDIR=/home/autif/data/dev/projects/yocto/poky-edison-6.0/build
LDFLAGS='  --sysroot=/opt/poky/1.1/sysroots/i586-poky-linux'
OLDPWD=/home/autif/data/dev/projects/yocto

autif at hp8440w:~/data/dev/projects/yocto/mono-2.10.6$ set | grep CPP
CPPFLAGS=' -m32   -march=i586 --sysroot=/opt/poky/1.1/sysroots/i586-poky-linux'

autif at hp8440w:~/data/dev/projects/yocto/mono-2.10.6$ set | grep CXX
CXX=i586-poky-linux-g++
CXXFLAGS=' -m32   -march=i586 --sysroot=/opt/poky/1.1/sysroots/i586-poky-linux'

autif at hp8440w:~/data/dev/projects/yocto/mono-2.10.6$ set | grep FLAGS
CFLAGS=' -m32   -march=i586 --sysroot=/opt/poky/1.1/sysroots/i586-poky-linux'
CONFIGURE_FLAGS='--target=i586-poky-linux --host=i586-poky-linux
--build=x86_64-linux
--with-libtool-sysroot=/opt/poky/1.1/sysroots/i586-poky-linux'
CPPFLAGS=' -m32   -march=i586 --sysroot=/opt/poky/1.1/sysroots/i586-poky-linux'
CXXFLAGS=' -m32   -march=i586 --sysroot=/opt/poky/1.1/sysroots/i586-poky-linux'
LDFLAGS='  --sysroot=/opt/poky/1.1/sysroots/i586-poky-linux'

Please advise.

Thanks!

Autif
_______________________________________________
yocto mailing list
yocto at yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto



More information about the yocto mailing list