Hi Jack,
I think you've hit a known issue that introduced by the latest LinuxTools project of Eclipse plug-in. Here's steps that you can have your Eclipse IDE updated to solve the issue: 1. Under Help->About Eclipse SDK, click "Installation Details", there what is the version of your "Autotools support for CDT(Incubation)" is it 3.0.1.201202152032? And scroll to the bottom, if you see Yocto Plugin for Eclipse and the version is older than 1.2.0.201203141639, then select Yocto Plugin for Eclipse and select uninstall, since the older version of plugin won't be able to handle the bug that introduced by LinuxTools project. Follow the steps to uninstall the Yocto plug-in and restart your Eclipse 2. IF your "Autotools support for CDT" version is different from the above mentioned. Under Help->Install New Software, Click on "Available Software Sites" and make sure "Indigo" got checked. And In the" Work With:" drop down, select Indigo, extend "Programming Languages" and select "Autotools support for CDT" and follow the steps to update to the latest version and restart Eclipse 3. Go to http://downloads.yoctoproject.org/releases/yocto/yocto-1.1.1/eclipse-plugin/indigo, and download org.yocto.sdk-rc1-201203141638-archive.zip<http://downloads.yoctoproject.org/releases/yocto/yocto-1.1.1/eclipse-plugin/indigo/org.yocto.sdk-rc1-201203141638-archive.zip> to your local system, and in Eclipse Help->Install New Software, "Work With:" click ADD, there you can put name as Yocto-1.1.1, and click on Archive and select the Yocto plug-in archive zip file you just downloaded. Then from the drop down select the Yocto-1.1.1 and follow the steps to finish reinstall and restart Eclipse. Now your Eclipse IDE should behave as desired which allows you to reconfigure a specific Yocto project using certain sysroot. Thanks, Jessica From: [email protected] [mailto:[email protected]] On Behalf Of jack Sent: Thursday, April 19, 2012 2:15 AM To: [email protected] Subject: [yocto] configure: error: C compiler cannot create executables when creating and building a hello world project. hello all! After creating a project in Eclipse, I tried to Configure the Cross-Toolchains. But I did like this:"Select Project -> Change Yocto Project Settings: This selection brings up the Project Yocto Settings Dialog and allows you to make changes specific to an individual project.", there was not Project Yocto Settings Dialog. Then I select Project -> Reconfigure Project, the information on the console: Invoking autogen.sh in build directory: /home/jackie/workspace/helloclutter Command-line environment variables: CFLAGS=" -g -O0 -m32 -march=i586 --sysroot=/home/jackie/sysroot" CXXFLAGS=" -g -O0 -m32 -march=i586 --sysroot=/home/jackie/sysroot" LDFLAGS=" --sysroot=/home/jackie/sysroot" CPPFLAGS=" -m32 -march=i586 --sysroot=/home/jackie/sysroot" sh /home/jackie/workspace/helloclutter/autogen.sh --with-libtool-sysroot=/home/jackie/sysroot --target=i586-poky-linux --host=i586-poky-linux --build=i686-linux --with-libtool-sysroot=/opt/poky/1.1.1/sysroots/i586-poky-linux configure.ac:21: installing `./compile' configure.ac:20: installing `./config.guess' configure.ac:20: installing `./config.sub' configure.ac:16: installing `./install-sh' configure.ac:16: installing `./missing' src/Makefile.am: installing `./depcomp' configure: loading site script /opt/poky/1.1.1/site-config-i586-poky-linux checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for i586-poky-linux-strip... i586-poky-linux-strip checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking build system type... i686-pc-linux-gnu checking host system type... i586-poky-linux-gnu checking how to print strings... printf checking for style of include used by make... GNU checking for i586-poky-linux-gcc... i586-poky-linux-gcc checking whether the C compiler works... no configure: error: in `/home/jackie/workspace/helloclutter': configure: error: in `/home/jackie/workspace/helloclutter': configure: error: C compiler cannot create executables configure: error: C compiler cannot create executables See `config.log' for more details Configuration failed with error Who can help me? Thank you!
_______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
