Good day Neil, I believe you need to use $CC or $BUILD_CC in your makefile to be able to have the correct $INCLUDE paths. The $INCLUDE paths will eventually point to your ADT's target_sysroot /usr/include
- J On Fri, Nov 14, 2014 at 1:05 PM, <neil...@emerson.com> wrote: > Thank you for your reply. > I just move the adt_installer.tar.gz to another pc which don't have yocto > project. Install the adt_installer and execute the > environment-setup-armv5te-poky-linux-gnueabi > > Then compile the hello.c > arm-poky-linux-gnueabi-gcc hello.c -o hello > > I don't know whether need to do other thing? > -----Original Message----- > From: Nick Krause [mailto:xerofo...@gmail.com] > Sent: Thursday, November 13, 2014 11:05 PM > To: Wu, Neil [CLIMATE/RS/CN] > Cc: yocto@yoctoproject.org > Subject: Re: [yocto] Can't find the header files after install > adt_installer.tar.gz > > Have you read the yocto docs on ADT for building correctly your > development kit, seems to me rather trivial error in either your build or > bitbake recipe for hello world. > Cheers Nick > > On Thu, Nov 13, 2014 at 4:43 AM, <neil...@emerson.com> wrote: > > Hi all : > > > > I have installed the adt_installer .tar.gz like fllowing: > > > > $ cd ~ > > > > $ tar -xjf adt_installer.tar.bz2 > > > > $ cd adt-installer > > > > $ ./adt_installer > > > > > > > > Because the > > YOCTOADT_TARGET_SYSROOT_LOC_arm="$HOME/test-yocto/$YOCTOADT_TARGET_MAC > > HINE_arm > > in adt_installer.conf file , > > > > then I extract the myself Root Filesystem: > > > > $source /opt/poky/1.7/environment-setup-i586-poky-linux > > > > $ runqemu-extract-sdk > > ~/Downloads/core-image-arm-rootfs.tar.bz2 $HOME/ test-yocto/ > > qemuarm/ > > > > > > > > Try to compile the “Helloworld”, it apper this error: > > > > hello.c:1:19: fatal error: stdio.h: No such file or > > directory > > > > > > > > Do you know how to resolve the issue? Please help me ! > > > > Thank you very much! > > > > > > -- > > _______________________________________________ > > yocto mailing list > > yocto@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/yocto > > > -- > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto >
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto