<?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のトピックRe: Cross compile and execute C / C++ code on iMX8M Mini</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Cross-compile-and-execute-C-C-code-on-iMX8M-Mini/m-p/930390#M139586</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;normally suggest customer to use eclipse IDE, if you use toolchain, maybe you can refer to the topic as below:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/1141513"&gt;https://community.nxp.com/message/1141513&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Jun 2019 09:10:14 GMT</pubDate>
    <dc:creator>joanxie</dc:creator>
    <dc:date>2019-06-24T09:10:14Z</dc:date>
    <item>
      <title>Cross compile and execute C / C++ code on iMX8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cross-compile-and-execute-C-C-code-on-iMX8M-Mini/m-p/930388#M139584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;I have &lt;STRONG&gt;iMX8M Mini EVK&lt;/STRONG&gt; with &lt;STRONG&gt;Android 9.0 running on it&lt;/STRONG&gt;. &lt;BR /&gt;i am successfully able to use Android NDK and run and execute sample hello app on this iMX board.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;But instead of using NDK i want to cross compile C / C++ code using some tool-chain or some other method and execute it it on target hardware i.e iMX8M Mini EVK. &lt;BR /&gt;As per my understanding on embedded Linux we need tool-chains and sysroot to cross compile any program or libraries but i am not new to Embedded Android so i am not understanding how to do the same thing in Android. &lt;/LI&gt;&lt;LI&gt;Also After my boards boots up when i try to execute basic commands such as &lt;STRONG&gt;sudo&lt;/STRONG&gt; or &lt;STRONG&gt;vi&lt;/STRONG&gt; or &lt;STRONG&gt;vim&lt;/STRONG&gt; or &lt;STRONG&gt;dmesg&lt;/STRONG&gt; on iMX8M mini then it gives me errors like - su: invalid uid/gid 'dmesg'&amp;nbsp;&amp;nbsp;&amp;nbsp; or commands not found etc.. Even GCC is also not available i think, &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Maneesh&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2019 07:28:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cross-compile-and-execute-C-C-code-on-iMX8M-Mini/m-p/930388#M139584</guid>
      <dc:creator>msingh1920</dc:creator>
      <dc:date>2019-06-17T07:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Cross compile and execute C / C++ code on iMX8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cross-compile-and-execute-C-C-code-on-iMX8M-Mini/m-p/930389#M139585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is there anyone from team NXP or from this forum who can reply to my above question ?&lt;/P&gt;&lt;P&gt;I am still waiting for any reply from this forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I know how to build hello world app using Android NDK software but i want to cross-compile and build&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; basic hello_world.c file and execute it on my board without using Android NDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I am using &lt;STRONG&gt;iMX8M Mini EVK&lt;/STRONG&gt; with &lt;STRONG&gt;pre-build Android 9.0 Image&lt;/STRONG&gt; running on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. For Linux system we need cross-tolchain such as arm-none-eabi-gcc by which we can cross compile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; the C/C++ file and then we can copy it to any sd card or pen drive and then execute it on target board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; but how we can do same thing in Android OS ???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If I will use Android NDK then it creates a app which i don't want.. I simply want to cross-compile and execute my&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; single C /C++ file from android console.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Maneesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2019 06:31:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cross-compile-and-execute-C-C-code-on-iMX8M-Mini/m-p/930389#M139585</guid>
      <dc:creator>msingh1920</dc:creator>
      <dc:date>2019-06-20T06:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cross compile and execute C / C++ code on iMX8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cross-compile-and-execute-C-C-code-on-iMX8M-Mini/m-p/930390#M139586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;normally suggest customer to use eclipse IDE, if you use toolchain, maybe you can refer to the topic as below:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/1141513"&gt;https://community.nxp.com/message/1141513&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2019 09:10:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cross-compile-and-execute-C-C-code-on-iMX8M-Mini/m-p/930390#M139586</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2019-06-24T09:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cross compile and execute C / C++ code on iMX8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cross-compile-and-execute-C-C-code-on-iMX8M-Mini/m-p/1988219#M230529</link>
      <description>&lt;P&gt;I'm trying to find the best way to do this too. I _think_ the way is to create a cross-compiler toolchain via yocto. Then can build on ubuntu or something and scp the binary to the target to run. Also, can setup yocto to build and package the executable in an image file.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 20:01:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cross-compile-and-execute-C-C-code-on-iMX8M-Mini/m-p/1988219#M230529</guid>
      <dc:creator>chillinwithscb</dc:creator>
      <dc:date>2024-11-05T20:01:03Z</dc:date>
    </item>
  </channel>
</rss>

