AnsweredAssumed Answered

Cross compile and execute C / C++ code on iMX8M Mini

Question asked by Maneesh Singh on Jun 17, 2019
Latest reply on Jun 24, 2019 by Joan Xie

Hi,
I have iMX8M Mini EVK with Android 9.0 running on it.
i am successfully able to use Android NDK and run and execute sample hello app on this iMX board.

  1. 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.
    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.
  2. Also After my boards boots up when i try to execute basic commands such as sudo or vi or vim or dmesg on iMX8M mini then it gives me errors like - su: invalid uid/gid 'dmesg'    or commands not found etc.. Even GCC is also not available i think,

    Thanks,
    Maneesh 
     
       

Outcomes