Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem compiling for android #9016

Closed
visasu opened this issue Apr 6, 2017 · 1 comment
Closed

Problem compiling for android #9016

visasu opened this issue Apr 6, 2017 · 1 comment

Comments

@visasu
Copy link

visasu commented Apr 6, 2017

Compiling for android example. Not sure if its a bug
After Trying for tensorflow/contrib/makefile/compile_android_protobuf.sh -c

checking whether to enable maintainer-specific portions of Makefiles... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... arm-unknown-linux-androideabi
checking target system type... arm-unknown-linux-androideabi
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-linux-androideabi-strip... arm-linux-androideabi-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '1000' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking for arm-linux-androideabi-gcc... arm-linux-androideabi-gcc --sysroot ../android-ndk-r14b//platforms/android-21/arch-arm
checking whether the C compiler works... no
configure: error: in /home/vishal/Downloads/tensorflowandroid/tensorflow/tensorflow/contrib/makefile/downloads/protobuf': configure: error: C compiler cannot create executables See config.log' for more details

Config.log is attached
config.txt

Can someone look into it

@asimshankar
Copy link
Contributor

This seems to be an error with your Android NDK setup. Looking at config.txt, I see things like:

/usr/lib/gcc/arm-linux-androideabi/4.7.4/../../../../arm-linux-androideabi/bin/ld: error: cannot find -llog
/usr/lib/gcc/arm-linux-androideabi/4.7.4/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lz
/usr/lib/gcc/arm-linux-androideabi/4.7.4/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lgnustl_static

suggesting that your NDK installation is incomplete or messed up as it is missing these libraries.

Closing this out since this doesn't seem to be an TensorFlow bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants