Hi Jigar,

Please do not top post.  This means we prefer that you reply with comments/responses inline with the previous message so that others in the list can more easily follow the conversation.

On 4/17/14, 4:43 AM, jigar chokshi wrote:
Hello John,
I have a question regarding your suggestion.

Do i have to create another directory for bitbake meta-ide-support or i have to do bitbake in the same directory where i did bitbake core-image -minimal??

No.
Bitbake needs to be run in the build directory always.

I am confused because i think bitbake core-image-minimal
will also generate new image then if i want to use core-image-minimal then what i have to do?
If you run bitbake core-image-minimal again, and if you changed something in any of the image dependencies, then it will build a new image. 

Running bitbake meta-ide-support does not require that you rebuild your image - you wanted to be able to build applications using the toolchain and libraries in the sysroot and this step builds an environment file that you can source which does that.

Thank you,
Jigar Chokshi

No problem.  I hope it helps.  In the future, you might want to email the oe-core mailing list as this question does not specifically pertain to the Freescale BSP but is more of an general OE question.
On Wed, Apr 16, 2014 at 3:54 PM, John Weber <rjohnweber@gmail.com> wrote:
Hi Jigar,


On 4/16/14, 7:49 AM, jigar chokshi wrote:
Hello,

Here i attached important parameter of my local.conf file of core-image-minimal.

MACHINE ??= 'imx6qsabreauto'
DISTRO ?= 'poky'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES = "debug-tweaks ssh-server-openssh"
IMAGE_INSTALL_append = " gcc g++ binutils libgcc libgcc-dev libstdc++ libstdc++-dev glib-2.0 libsigc++-2.0-dev libstdc++-staticdev tslib-conf tslib-tests tslib-calibrate openssh-sftp-server alsa-lib alsa-tools alsa-state alsa-utils-alsaconf tslib evtest dbus nano qtbase qtbase-fonts qtbase-plugins qtbase-examples cinematicexperience gstreamer cairo pango fontconfig freetype pulseaudio "
DISTRO_FEATURES_remove = "x11 wayland"


I tried to cross compile qt5 using poky tool chain and it was successful.
Now when i tried build an application using same tool chain it required an library that is developed by my colleague.
so, when i tried to configured that library.

echo $PATH
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/poky/1.5.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi
./configure --prefix=/home/x-chokshij/hmi_rbg/libudcu-arm/_Install CC=arm-poky-linux-gnueabi-gcc CXX=arm-poky-linux-gnueabi-g++ --host=arm-poky-linux-gnueabi --enable-shared --disable-static

Now when i am giving make all

i am getting following error

/opt/poky/1.5.1/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.1/ld: cannot find -lglib-2.0

I understand this error is because poky cant find glib-2.0 library. but as you can see in local.conf file i installed glib-2.0 lib.
I think you need other environment variables set in order for your configure script to find the shared libraries (e.g. PKGCONFIG).  You might give this a try:

bitbake meta-ide-support

then

source ./tmp/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi

I believe that this should take care of most of it.  Let us know how it goes.

John
--
_______________________________________________
meta-freescale mailing list
meta-freescale@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-freescale