Click here to Skip to main content
13,664,548 members
Click here to Skip to main content
Add your own
alternative version

Stats

4.5K views
3 bookmarked
Posted 1 Jun 2015
Licenced CPOL

Integrating the Intel(R) C++ Compiler for Android with multiple Android NDKs

, 1 Jun 2015
Rate this:
Please Sign up or sign in to vote.
Integrating the Intel(R) C++ Compiler for Android with multiple Android NDKs

Editorial Note

This article is for our sponsors at CodeProject. These articles are intended to provide you with information on products and services that we consider useful and of value to developers

Intel® Developer Zone offers tools and how-to information for cross-platform app development, platform and technology information, code samples, and peer expertise to help developers innovate and succeed. Join our communities for Android, Internet of Things, Intel® RealSense™ Technology, and Windows to download tools, access dev kits, share ideas with like-minded developers, and participate in hackathon’s, contests, roadshows, and local events.

The Intel(R) C++ Compiler for Android* supports multiple Android NDKs usually (please check the product release notes for details).

The Intel C++ Compiler is integrated into one Android NDK specified during installation just like before. If there are multiple Android NDK installed, the script tool below coming with Intel C++ Compiler for Android can be used for integrating to additional Android NDK:

  • [icc-install-dir]/toolchains/ndk_integration.sh on Linux* or OS X*
  • [icc-install-dir]\toolchains\ndk_integration.cmd on Windows*
    For example, if you are using Intel(R) INDE product, default [icc-install-dir] will be C:\Intel\INDE\icc_android on Windows.

To integrate the Intel C++ Compiler for Android to a different Android NDK, follow the steps below:

  1. Assume that:
    • Intel C++ Compiler for Android is installed to [icc-install-dir]
    • The additional Android NDK is installed to [new-ndk-dir]
  2. On Linux* or OS X*:
    • Open a terminal window
    • cd [icc-install-dir]/toolchains/
    • ./ndk_integration.sh [new-ndk-dir]
    After running above commands, the Intel C++ compiler toolchain should be installed to [new-ndk-dir]/toolchains/x86-icc. "x86-icc" will be available in the ndk build environment.
  3. On Windows*:
    • Open a command window
    • cd [icc-install-dir]\toolchains\
    • .\ndk_integration.cmd [new-ndk-dir]

    After running above commands, the Intel C++ compiler toolchain “x86-icc” will be available in the ndk build environment.should be installed to [new-ndk-dir]\toolchains\x86-icc. "x86-icc" will be available in the ndk build environment.

This sample applies to:
Products: Intel® INDE; Intel® System Studio
Host OS: Windows (IA-32, Intel® 64); OS X*; Linux*
Target OS: Android*

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Android on Intel
United States United States
Intel is inside more and more Android devices, and we have tools and resources to make your app development faster and easier.


You may also be interested in...

Pro
Pro

Comments and Discussions

 
-- There are no messages in this forum --
Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web01-2016 | 2.8.180810.1 | Last Updated 1 Jun 2015
Article Copyright 2015 by Android on Intel
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid