<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX Processors中的主题 imx6q Cross Compile Toolchain Installation</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx6q-Cross-Compile-Toolchain-Installation/m-p/240065#M19834</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;Hello!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;I am using Eclipse on Ubuntu 13.04 x64 and would like to setup a project for cross-compilation for ARM, but I'm quite clueless as how to do it, being a comple te n00b with these 'embedded' things, I find myself staring in disbelief at the screen, unable to get a simple "Hello World" program to compile through and through.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;#include &amp;lt;iostream&amp;gt;&lt;/P&gt;&lt;P&gt;using namespace std;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int main()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; cout &amp;lt;&amp;lt; "Hello World!";&lt;/P&gt;&lt;P&gt;&amp;nbsp; return 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;I've downloaded Sourcery CodeBench and the GNUARM plugin for Eclipse to use that toolchain, but failed to build a correct elf image, because the linker complains about not finding a __start symbol. If I try to execute the file (Test.elf) on the board, the terminal complains that the file itself cannot be found (!!!) even though I have rwx permissions on it and have chown-ed it. I have also downloaded Linaro and GNUARM toolchains. Building with those outputs a slew of warnings and/or errors that I have not (and SHOULD NOT EVER) seen before. (like: invalid floating point option -mfpu=vfpv3,&amp;nbsp; or: bad value -march=armv7-a -- not supposed to happen)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;My question is, can you guide me in the right direction of setting up a toolchain (environment variables and makefiles is fine, if not with Eclipse), because scouring the Internet has left me wanting for something that is more specific to imx.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;Kind Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;Peter&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jun 2013 10:52:54 GMT</pubDate>
    <dc:creator>petersuciu</dc:creator>
    <dc:date>2013-06-26T10:52:54Z</dc:date>
    <item>
      <title>imx6q Cross Compile Toolchain Installation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6q-Cross-Compile-Toolchain-Installation/m-p/240065#M19834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;Hello!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;I am using Eclipse on Ubuntu 13.04 x64 and would like to setup a project for cross-compilation for ARM, but I'm quite clueless as how to do it, being a comple te n00b with these 'embedded' things, I find myself staring in disbelief at the screen, unable to get a simple "Hello World" program to compile through and through.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;#include &amp;lt;iostream&amp;gt;&lt;/P&gt;&lt;P&gt;using namespace std;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int main()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; cout &amp;lt;&amp;lt; "Hello World!";&lt;/P&gt;&lt;P&gt;&amp;nbsp; return 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;I've downloaded Sourcery CodeBench and the GNUARM plugin for Eclipse to use that toolchain, but failed to build a correct elf image, because the linker complains about not finding a __start symbol. If I try to execute the file (Test.elf) on the board, the terminal complains that the file itself cannot be found (!!!) even though I have rwx permissions on it and have chown-ed it. I have also downloaded Linaro and GNUARM toolchains. Building with those outputs a slew of warnings and/or errors that I have not (and SHOULD NOT EVER) seen before. (like: invalid floating point option -mfpu=vfpv3,&amp;nbsp; or: bad value -march=armv7-a -- not supposed to happen)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;My question is, can you guide me in the right direction of setting up a toolchain (environment variables and makefiles is fine, if not with Eclipse), because scouring the Internet has left me wanting for something that is more specific to imx.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;Kind Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;Peter&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 10:52:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6q-Cross-Compile-Toolchain-Installation/m-p/240065#M19834</guid>
      <dc:creator>petersuciu</dc:creator>
      <dc:date>2013-06-26T10:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: imx6q Cross Compile Toolchain Installation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6q-Cross-Compile-Toolchain-Installation/m-p/240066#M19835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are several toolchains you can use. You can try the one installed by LTIB, or the one compiled (yes, compiled) by Yocto. For the Yocto case, setup a Yocto system (there are many docs regarding this), then on the build folder thy these:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ bitbake meta-toolchain&lt;/P&gt;&lt;P&gt;$ sh tmp/deploy/sdk/poky-eglibc-x86_64-arm-toolchain-1.4.1.sh&lt;/P&gt;&lt;P&gt;$ source /opt/poky/1.4.1/environment-setup-armv7a-vfp-neon-poky-linux-gnueabi&lt;/P&gt;&lt;P&gt;$ arm-poky-linux-gnueabi-gcc -v&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can compile your hello world app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 15:37:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6q-Cross-Compile-Toolchain-Installation/m-p/240066#M19835</guid>
      <dc:creator>LeonardoSandova</dc:creator>
      <dc:date>2013-06-26T15:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: imx6q Cross Compile Toolchain Installation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6q-Cross-Compile-Toolchain-Installation/m-p/240067#M19836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For stand-alone applications it is needed to provide a start-up code (crt.s), linker file (.ld), minimal syscalls.c &lt;/P&gt;&lt;P&gt;that may be application dependent. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 02:22:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6q-Cross-Compile-Toolchain-Installation/m-p/240067#M19836</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2013-06-27T02:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: imx6q Cross Compile Toolchain Installation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6q-Cross-Compile-Toolchain-Installation/m-p/240068#M19837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally! That + &lt;A href="http://www.yoctoproject.org/docs/1.4/dev-manual/dev-manual.html#configuring-the-eclipse-yocto-plug-in" title="http://www.yoctoproject.org/docs/1.4/dev-manual/dev-manual.html#configuring-the-eclipse-yocto-plug-in"&gt;Yocto Project Development Manual&lt;/A&gt; did it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 15:12:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6q-Cross-Compile-Toolchain-Installation/m-p/240068#M19837</guid>
      <dc:creator>petersuciu</dc:creator>
      <dc:date>2013-06-27T15:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: imx6q Cross Compile Toolchain Installation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6q-Cross-Compile-Toolchain-Installation/m-p/240069#M19838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;If my application use Source file of other folders than from /opt/poky/1.8/ how to include these files in environment variable?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;I am using Eclipse Yocto Autotool Project for application development.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;In the project i can use function of any file from "/opt/poky/1.8/sysroots/cortexa9hf-vpf-neon-poky-linux-gnueabi/user/include".&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;But i want to use files from other directory. so i add paths in "C/C++ General/Path and symbols/include directories".&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Now function reference can be found by eclipse. I can also Jump to relavent .h file by F3.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;But when i compile i get "fatal error: No file or directory"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 06:49:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6q-Cross-Compile-Toolchain-Installation/m-p/240069#M19838</guid>
      <dc:creator>ritesh_panchal</dc:creator>
      <dc:date>2015-08-14T06:49:03Z</dc:date>
    </item>
  </channel>
</rss>

