[Nfd-dev] Ongoing issues compiling nfd-Android

Alex Afanasyev aa at cs.fiu.edu
Fri Jul 7 10:52:33 PDT 2017


Hi Anthony,

The error suggesting that you don't have the NDK installed correctly.  I will advise on using the Vagrant environment or at the very least follow exactly the provisioning instructions in it.

I have just tried with a slightly modified version of Vagrantfile (https://gerrit.named-data.net/gitweb?p=NFD-android.git;a=blob_plain;f=.vagrant/Vagrantfile;hb=refs/changes/10/4010/1 <https://gerrit.named-data.net/gitweb?p=NFD-android.git;a=blob_plain;f=.vagrant/Vagrantfile;hb=refs/changes/10/4010/1>  which will be merged soon), and I didn't experience any problem with compilation.

--
Alex

> On Jul 6, 2017, at 12:58 PM, Anthony Dowling <dowlinah at clarkson.edu> wrote:
> 
> Hello all,
> 
> I am having some issues when trying to compile nfd-Android for an Android 6 phone. When I run the gradlew assembledebug command, it outputs error below, and I don't understand just what this error is, or how to fix it. Could someone help me fix this, please?
> 
> 
> :app:generateDebugResValues UP-TO-DATE
> :app:generateDebugResources UP-TO-DATE
> :app:mergeDebugResources UP-TO-DATE
> :app:processArm64-v8aDebugManifest UP-TO-DATE
> :app:processArm64-v8aDebugResources UP-TO-DATE
> :app:processArmeabi-v7aDebugManifest UP-TO-DATE
> :app:processArmeabi-v7aDebugResources UP-TO-DATE
> :app:processArmeabiDebugManifest UP-TO-DATE
> :app:processArmeabiDebugResources UP-TO-DATE
> :app:processMips64DebugManifest UP-TO-DATE
> :app:processMips64DebugResources UP-TO-DATE
> :app:processMipsDebugManifest UP-TO-DATE
> :app:processMipsDebugResources UP-TO-DATE
> :app:processX86DebugManifest UP-TO-DATE
> :app:processX86DebugResources UP-TO-DATE
> :app:processX86_64DebugManifest UP-TO-DATE
> :app:processX86_64DebugResources UP-TO-DATE
> :app:generateDebugSources UP-TO-DATE
> :app:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
> :app:copyNdnCxxHeaders UP-TO-DATE
> :app:ndkBuild
> make: Entering directory '/home/tony/android-dev/NFD-android/app/src/main'
> [arm64-v8a] Compile++      : cryptest.exe <= bench.cpp
> [arm64-v8a] Compile++      : cryptest.exe <= bench2.cpp
> make: /home/tony/android-dev/crystax-ndk-10.3.1/toolchains/aarch64-linux-android-5/prebuilt/linux-x86/bin/aarch64-linux-android-g++: Command not found
> make: *** [obj/local/arm64-v8a/objs/cryptest.exe/__/__/bench.o] Error 127
> make: *** Waiting for unfinished jobs....
> make: /home/tony/android-dev/crystax-ndk-10.3.1/toolchains/aarch64-linux-android-5/prebuilt/linux-x86/bin/aarch64-linux-android-g++: Command not found
> /home/tony/android-dev/crystax-ndk-10.3.1/build/core/build-binary.mk:504 <http://build-binary.mk:504/>: recipe for target 'obj/local/arm64-v8a/objs/cryptest.exe/__/__/bench.o' failed
> [arm64-v8a] Compile++      : cryptest.exe <= test.cpp
> /home/tony/android-dev/crystax-ndk-10.3.1/build/core/build-binary.mk:504 <http://build-binary.mk:504/>: recipe for target 'obj/local/arm64-v8a/objs/cryptest.exe/__/__/bench2.o' failed
> /home/tony/android-dev/crystax-ndk-10.3.1/build/core/build-binary.mk:504 <http://build-binary.mk:504/>: recipe for target 'obj/local/arm64-v8a/objs/cryptest.exe/__/__/test.o' failed
> make: Leaving directory '/home/tony/android-dev/NFD-android/app/src/main'
> make: /home/tony/android-dev/crystax-ndk-10.3.1/toolchains/aarch64-linux-android-5/prebuilt/linux-x86/bin/aarch64-linux-android-g++: Command not found
> make: *** [obj/local/arm64-v8a/objs/cryptest.exe/__/__/bench2.o] Error 127
> make: *** [obj/local/arm64-v8a/objs/cryptest.exe/__/__/test.o] Error 127
> :app:ndkBuild FAILED
> 
> FAILURE: Build failed with an exception.
> 
> * What went wrong:
> Execution failed for task ':app:ndkBuild'.
> > Process 'command '/home/tony/android-dev/crystax-ndk-10.3.1/ndk-build'' finished with non-zero exit value 2
> 
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
> 
> BUILD FAILED
> 
> Total time: 19.569 secs
> 
> 
> 
> Thanks for your time,
> Anthony Dowling
> _______________________________________________
> Nfd-dev mailing list
> Nfd-dev at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20170707/2cb1e590/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20170707/2cb1e590/attachment.sig>


More information about the Nfd-dev mailing list