Open fpilote opened 8 years ago
Hi guys, i just started to build the first example app using the c api for project tango.
everything went smooth except the ndk-build part.
ndkbuild task in fails on my windows machine.
I had to modify the build.gradle script, in the app folder, so that instead of using "ndk-build" command, it uses "ndk-build.cmd"
here's how i did it, modify app/build.gradle //top of file. import org.apache.tools.ant.taskdefs.condition.Os
//modified this function task ndkBuild(type: Exec) { Properties properties = new Properties() properties.load(project.rootProject.file('local.properties').newDataInputStream()) def ndkbuild = properties.getProperty('ndk.dir', null)+"/ndk-build" if (Os.isFamily(Os.FAMILY_WINDOWS)) { ndkbuild = ndkbuild + ".cmd" } commandLine ndkbuild, '-C', file('src/main/jni').absolutePath }
Hope this helps!
FYI : Windows 7 64 Android Studio 1.3.2 Android NDK r10e
Hi guys, i just started to build the first example app using the c api for project tango.
everything went smooth except the ndk-build part.
ndkbuild task in fails on my windows machine.
I had to modify the build.gradle script, in the app folder, so that instead of using "ndk-build" command, it uses "ndk-build.cmd"
here's how i did it, modify app/build.gradle //top of file. import org.apache.tools.ant.taskdefs.condition.Os
//modified this function task ndkBuild(type: Exec) { Properties properties = new Properties() properties.load(project.rootProject.file('local.properties').newDataInputStream()) def ndkbuild = properties.getProperty('ndk.dir', null)+"/ndk-build" if (Os.isFamily(Os.FAMILY_WINDOWS)) { ndkbuild = ndkbuild + ".cmd" } commandLine ndkbuild, '-C', file('src/main/jni').absolutePath }
Hope this helps!
FYI : Windows 7 64 Android Studio 1.3.2 Android NDK r10e