<div dir="ltr"><br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">John Weber</b> <span dir="ltr"><<a href="mailto:rjohnweber@gmail.com">rjohnweber@gmail.com</a>></span><br>
Date: Thu, Apr 17, 2014 at 4:18 PM<br>Subject: Re: [meta-freescale] About Yocto and Imx6<br>To: "<a href="mailto:meta-freescale@yoctoproject.org">meta-freescale@yoctoproject.org</a>" <<a href="mailto:meta-freescale@yoctoproject.org">meta-freescale@yoctoproject.org</a>><br>
<br><br>
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    Hi Jigar,<br>
    <br>
    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.<div class=""><br>
    <br>
    On 4/17/14, 4:43 AM, jigar chokshi wrote:<br>
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>Hello John,<br>
                </div>
                I have a question regarding your suggestion.<br>
                <br>
              </div>
              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??<br>
              <br>
            </div>
          </div>
        </div>
      </div>
    </blockquote></div>
    No.<br>
    Bitbake needs to be run in the build directory always.<br><div class="">           <br>
    </div><div class="">>Hello sorry for late response. i was busy in another work.<br></div><div class="">>First i did    <span style="font-family:'courier new',courier">bitbake core-image-base in build directory.<br>
</span></div><div class=""><span style="font-family:'courier new',courier">>after that i created 1 more directory called buildcoreimage in this directory i did <br></span>>bitbake core-image -minimal.<br></div>
<div class="">>So now, i did bitbake
              meta-ide-support in build directory as you told me.<br></div><div class=""><br><br></div><div class="">
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div>I am confused because i think bitbake core-image-minimal
            <br>
            will also generate new image then if i want to use
            core-image-minimal then what i have to do?<br>
          </div>
        </div>
      </div>
    </blockquote></div>
    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.  <br>
    <br>
    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.<br>
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div><br>
          </div>
          Thank you,<br>
        </div>
        Jigar Chokshi<br>
      </div>
      <div class="gmail_extra"><br>
      </div>
    </blockquote>
    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.<br><br>>still in /opt/poky/1.5.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi i cold not find glib library<br></div><div text="#000000" bgcolor="#FFFFFF">>and gllib library in /opt/poky/1.5.1/sysroots/x86_64-pokysdk-linux/usr/lib is for X86-64. so it is not useful for me.<br>
</div><div text="#000000" bgcolor="#FFFFFF"><div class="">>In /home/x-chokshij/fsl-community-bsp/build/tmp/sysroots/imx6qsabreauto/usr/lib i can see libglib-2.0.so.0.3600 and that is for >ARM i checked with file command. so, i need this library i am sure.<br>
</div><div class="">>Now when i tried to cross compile my library using<br>>./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 
LDFLAGS=-L/home/x-chokshij/fsl-community-bsp/build/tmp/sysroots/imx6qsabreauto/usr/lib/<br></div><div class="">>i got error. <br>>configure: error: in `/home/x-chokshij/Desktop/hmi_rbg/libudcu':<br>>configure: error: C compiler cannot create executables<br>
>See `config.log' for more details<br></div>>i checked config.log file and i found 3 errors as following<br><br>>configure:3117: arm-poky-linux-gnueabi-gcc -V >&5<br>>arm-poky-linux-gnueabi-gcc: error: unrecognized command line option '-V'<br>
>arm-poky-linux-gnueabi-gcc: fatal error: no input files<br>>compilation terminated.<br>>configure:3128: $? = 1<br>>configure:3117: arm-poky-linux-gnueabi-gcc -qversion >&5<br>>arm-poky-linux-gnueabi-gcc: error: unrecognized command line option '-qversion'<br>
>arm-poky-linux-gnueabi-gcc: fatal error: no input files<br>>compilation terminated.<br>>configure:3128: $? = 1<br>>configure:3148: checking whether the C compiler works<br>>configure:3170:
 arm-poky-linux-gnueabi-gcc   
-L/home/x-chokshij/fsl-community-bsp/build/tmp/sysroots/imx6qsabreauto/usr/lib
 >conftest.c  >&5<br>>/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 /lib/libc.so.6<br>>/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 /usr/lib/libc_nonshared.a<br>>/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 /lib/ld-linux-armhf.so.3<br>>collect2: error: ld returned 1 exit status<br><div><div class="h5"><br>
    <blockquote type="cite">
      <div class="gmail_extra">
        <div class="gmail_quote">On Wed, Apr 16, 2014 at 3:54 PM, John
          Weber <span dir="ltr"><<a href="mailto:rjohnweber@gmail.com" target="_blank">rjohnweber@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Jigar,
            <div>
              <div><br>
                <br>
                On 4/16/14, 7:49 AM, jigar chokshi wrote:<br>
                <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                  Hello,<br>
                  <br>
                  Here i attached important parameter of my local.conf
                  file of core-image-minimal.<br>
                  <br>
                  MACHINE ??= 'imx6qsabreauto'<br>
                  DISTRO ?= 'poky'<br>
                  PACKAGE_CLASSES ?= "package_rpm"<br>
                  EXTRA_IMAGE_FEATURES = "debug-tweaks
                  ssh-server-openssh"<br>
                  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 "<br>
                  DISTRO_FEATURES_remove = "x11 wayland"<br>
                  <br>
                  <br>
                  I tried to cross compile qt5 using poky tool chain and
                  it was successful.<br>
                  Now when i tried build an application using same tool
                  chain it required an library that is developed by my
                  colleague.<br>
                  so, when i tried to configured that library.<br>
                  <br>
                  echo $PATH<br>
                  /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<br>
                  ./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<br>
                  <br>
                  Now when i am giving make all<br>
                  <br>
                  i am getting following error<br>
                  <br>
                  /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<br>
                  <br>
                  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.<br>
                </blockquote>
              </div>
            </div>
            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:<br>
            <br>
            bitbake meta-ide-support<br>
            <br>
            then<br>
            <br>
            source ./tmp/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi<br>
            <br>
            I believe that this should take care of most of it. Â Let us
            know how it goes.<span><font color="#888888"><br>
                <br>
                John<br>
                -- <br>
                _______________________________________________<br>
                meta-freescale mailing list<br>
                <a href="mailto:meta-freescale@yoctoproject.org" target="_blank">meta-freescale@yoctoproject.org</a><br>
                <a href="https://lists.yoctoproject.org/listinfo/meta-freescale" target="_blank">https://lists.yoctoproject.org/listinfo/meta-freescale</a><br>
              </font></span></blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </div></div></div>

<br>--<br>
_______________________________________________<br>
meta-freescale mailing list<br>
<a href="mailto:meta-freescale@yoctoproject.org">meta-freescale@yoctoproject.org</a><br>
<a href="https://lists.yoctoproject.org/listinfo/meta-freescale" target="_blank">https://lists.yoctoproject.org/listinfo/meta-freescale</a><br>
<br></div><br></div>