This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x-ICS empty NDK toolchain dir : HowTo

Hi, 

I'm struggling in making my first step to the NDK, as I can't find any prebuilt NDK toolchains needed for the make-standalone-toolchain.sh script.

So, I can't figure out what's the first step into getting the NDK work .

In the other hand, I can't seem to understand why is there 2 toolchains, especially that I read that there are not the same : 

   - arm-eabi-4.4.3 toolchain used for generating the Android Linux kernel ( make ARCH=arm CROSS_COMPILE=arm-eabi- uImage )

found under TI-Android-ICS-4.0.3-DevKit-EVM-SK-3.0.1/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3

   - arm-linux-androideabi-4.4.3 toolchain used in the NDK,  found under TI-Android-ICS-4.0.3-DevKit-EVM-SK-3.0.1/ndk/toolchains/arm-linux-androideabi-4.4.3

and which is empty

I'm pretty aware of the use of NDK, but I can't make it work.

So, I really appreciate any guidance.

Thanks in advance.

Best Regards

  • By checking this, I found if you are using Android's FS source code the toolchains should be in

    /mydroid/prebuilt

    for the version of Android NDK that you download from android.com the folder contains files.

    there should be a way to build NDK like it is for SDK from within mydroid directory that uses prebuild toolchains directory, Maybe similar to sdk

    http://omapedia.org/wiki/Android_How-tos#Compiling_latest_Android_SDK_version

    for example from ( I haven't check it)

    /mydroid/build/core/distdir.mk
    # Other parts of the system should use this function to associate
    # certain files with certain goals.  When those goals are built
    # and "dist" is specified, the marked files will be copied to DIST_DIR.
    #
    # $(1): a list of goals  (e.g. droid, sdk, pdk, ndk)

    I found next files that describes similar process for the NDK downloaded from android.com.

    You can download the NDK from http://developer.android.com/tools/sdk/ndk/index.html or check is these files are in your environment.

    /mydroid/ndk/docs/DEVELOPMENT.html

    /mydroid/ndk/docs/STANDALONE-TOOLCHAIN.html

    /mydroid/ndk/build/tools/DEV-SCRIPTS-USAGE.TXT

    or look for those inside ndk/docs directory, for what I read time back it is a full process to compile the toolchains and generate the packages.

    This should help, in this directory you can find more documents explaining how to configure the NDK and extra commands to use.