The Intel® C++ Compiler for Android* integrates itself into the vs-android software. vs-android enables the Microsoft Visual Studio* build system to compile and link Android C/C++ projects. A working vs-android installation is required in order to use the Intel® C++ Compiler for Android within Microsoft Visual Studio*.
Installation of vs-android
Download the vs-android plugin first. You find a download link on the project page: https://code.google.com/p/vs-android/ . Next follow the “A guide to installing vs-android” document (https://code.google.com/p/vs-android/wiki/Installation) to install “vs-android” and all required components.
Depending on the Intel® C++ Compiler version it's required to install a different version of the Android* NDK:
32-bit version of the Android* NDK must be installed to use Intel® C++ Compiler version 15.0 within Microsoft Visual Studio*.
64-bit version of the Android* NDK must be installed to use Intel® C++ Compiler version 16.0 within Microsoft Visual Studio*.
If vs-android is installed before you install Intel® C++ Compiler for Android, the compiler installation will be done in a way that supports the use of the vs-android toolset. In other words, if you have already installed vs-android into your Visual Studio installation, you will be able to use Visual Studio after you install the Intel Compiler
If you install vs-android plug-in after the Intel® C++ Compiler for Android you need to integrate the Intel Compiler to vs-android by following these steps:
- Make sure your Windows account has administrator privileges.
- Open “%CommonProgramFiles%\Intel\shared files\VS Integration\Android” directory
A full path would be "C:\Program Files (x86)\Common Files\Intel\shared files\VS Integration\Android" for example.
- Run “VS2010\vsa_updater.exe” if VS 2010 is installed as administrator (right click).
- Run “VS11\vsa_updater.exe” if VS 2012 is installed as administrator (right click).
- Run “VS12\vsa_updater.exe” if VS 2013 is installed as administrator (right click).
Troubleshooting: If you see an error message saying "Access to path '...' is denied" you haven't started the vsa_updater.exe as administrator.
Compiling projects with the Intel® C++ Compiler for Android instead of GCC
To use Intel® C++ Compiler for Android instead of GCC:
- From the “Solution Explorer” window, right click on the project node and select “Properties”.
- Select “Configuration Properties->General” and change “Platform Toolset” property on the right window to one of the available “x86 icc” toolchains. The list of available toolsets should contain a corresponding toolset for each installed Intel® C++ Compiler for Android.
- Change the “Target Architecture” property to “x86 Architecture (x86)”.
If you have installed Intel® Composer XE 2013 SP1, Update 1 or earlier, and integrated it into Visual Studio,* and then installed “vs_android,” Visual Studio will crash when you change the “Platform Toolset” to one of the available “x86 icc” toolchains. This bug is fixed in Intel® Composer XE 2013 SP1, Update 2.
Important notes on vs-android
- The vs-android Software issues the following warning during a build:
warning : The x86 toolchain isn't fully tested with vs-android. Use at your own risk.
- If you building the application in "Release"-mode the deployment might fail because the [application]-release.apk can't be found. The root cause is most likely that the build environment can't find signature keys for signing the application. Building the application in "Debug" mode or creating the required signature keys as described here should solve the issue.
Corresponding error message:
-release-nosign: [echo] No key.store and key.alias properties found in build.properties. [echo] Please sign vs-android_samples\vs-android_samples\san-angeles\AndroidApk\bin\DemoActivity-release-unsigned.apk manually ... ... ,,, Deploying... ( Use 'Build -> Cancel' - to halt deploy ) C:\android\adt\sdk\platform-tools\adb.exe wait-for-device C:\android\adt\sdk\platform-tools\adb.exe install -r "vs-android_samples\san-angeles\AndroidApk\bin\DemoActivity-release.apk" can't find 'vs-android_samples\vs-android_samples\san-angeles\AndroidApk\bin\DemoActivity-release.apk' to install 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Platforms\Android\Microsoft.Cpp.Android.Targets(398,5): error MSB6006: "C:\android\adt\sdk\platform-tools\adb.exe" exited with code 1. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
This article applies to:
Products: Intel® System Studio, Intel® Integrated Native Developer Experience
Host OS/platforms: Windows (IA-32, Intel(R) 64)
Target OS/platforms: Android