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

Cannot compile #2

Open
cekic opened this issue Jun 30, 2016 · 0 comments
Open

Cannot compile #2

cekic opened this issue Jun 30, 2016 · 0 comments

Comments

@cekic
Copy link

cekic commented Jun 30, 2016

Okay, i am using linux, i have everything for compiling apps, i have correct path of ndk, but still, i cannot compile. Here is what i get...
`Android NDK: WARNING: Unsupported source file extensions in jni/Android.mk for module crypto
Android NDK: libcrypto.a
Android NDK: WARNING:jni/Android.mk:pixiewps: non-system libraries in linker flags: libcrypto.a
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
Android NDK: WARNING: Unsupported source file extensions in jni/Android.mk for module crypto
Android NDK: libcrypto.a
Android NDK: WARNING:jni/Android.mk:pixiewps: non-system libraries in linker flags: libcrypto.a
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
Android NDK: WARNING: Unsupported source file extensions in jni/Android.mk for module crypto
Android NDK: libcrypto.a
Android NDK: WARNING:jni/Android.mk:pixiewps: non-system libraries in linker flags: libcrypto.a
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
Android NDK: WARNING: Unsupported source file extensions in jni/Android.mk for module crypto
Android NDK: libcrypto.a
Android NDK: WARNING:jni/Android.mk:pixiewps: non-system libraries in linker flags: libcrypto.a
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
Android NDK: WARNING: Unsupported source file extensions in jni/Android.mk for module crypto
Android NDK: libcrypto.a
Android NDK: WARNING:jni/Android.mk:pixiewps: non-system libraries in linker flags: libcrypto.a
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
Android NDK: WARNING: Unsupported source file extensions in jni/Android.mk for module crypto
Android NDK: libcrypto.a
Android NDK: WARNING:jni/Android.mk:pixiewps: non-system libraries in linker flags: libcrypto.a
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
Android NDK: WARNING: Unsupported source file extensions in jni/Android.mk for module crypto
Android NDK: libcrypto.a
Android NDK: WARNING:jni/Android.mk:pixiewps: non-system libraries in linker flags: libcrypto.a
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
[arm64-v8a] Compile : pixiewps <= pixiewps.c
Using built-in specs.
COLLECT_GCC=/home/andev/Downloads/android-ndk-r12/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-gcc
Target: aarch64-linux-android
Configured with: /usr/local/google/buildbot/src/android/gcc/toolchain/build/../gcc/gcc-4.9/configure --prefix=/tmp/8ee0b8157b3409c4b84fff35696d6c90 --target=aarch64-linux-android --host=x86_64-linux-gnu --build=x86_64-linux-gnu --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --with-gmp=/buildbot/tmp/build/toolchain/temp-install --with-mpfr=/buildbot/tmp/build/toolchain/temp-install --with-mpc=/buildbot/tmp/build/toolchain/temp-install --with-cloog=/buildbot/tmp/build/toolchain/temp-install --with-isl=/buildbot/tmp/build/toolchain/temp-install --with-ppl=/buildbot/tmp/build/toolchain/temp-install --disable-ppl-version-check --disable-cloog-version-check --disable-isl-version-check --enable-cloog-backend=isl --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --disable-libssp --enable-threads --disable-nls --disable-libmudflap --disable-libgomp --disable-libstdc__-v3 --disable-sjlj-exceptions --disable-shared --disable-tls --disable-libitm --enable-bionic-libs --enable-libatomic-ifuncs=no --enable-initfini-array --disable-nls --prefix=/tmp/8ee0b8157b3409c4b84fff35696d6c90 --with-sysroot=/tmp/8ee0b8157b3409c4b84fff35696d6c90/sysroot --with-binutils-version=2.25 --with-mpfr-version=3.1.1 --with-mpc-version=1.0.1 --with-gmp-version=5.0.5 --with-gcc-version=4.9 --with-gdb-version=none --with-gxx-include-dir=/tmp/8ee0b8157b3409c4b84fff35696d6c90/include/c++/4.9.x --with-bugurl=http://source.android.com/source/report-bugs.html --enable-languages=c,c++ --disable-bootstrap --enable-plugins --enable-libgomp --enable-gnu-indirect-function --disable-libsanitizer --enable-gold --enable-ld=default --enable-threads --enable-eh-frame-hdr-for-static --enable-fix-cortex-a53-835769 --enable-graphite=yes --with-isl-version=0.11.1 --with-cloog-version=0.18.0 --program-transform-name='s&^&aarch64-linux-android-&' --enable-gold
Thread model: posix
gcc version 4.9.x 20150123 (prerelease) (GCC)
COLLECT_GCC_OPTIONS='-MMD' '-MP' '-MF' './obj/local/arm64-v8a/objs/pixiewps/pixiewps.o.d' '-ffunction-sections' '-funwind-tables' '-fstack-protector-strong' '-g' '-O2' '-D' 'NDEBUG' '-I' 'jni' '-D' 'ANDROID' '-std=c99' '-O3' '-v' '-static' '-Wformat=1' '-Werror=format-security' '-fPIE' '-isystem' '/home/andev/Downloads/android-ndk-r12/platforms/android-21/arch-arm64/usr/include' '-c' '-o' './obj/local/arm64-v8a/objs/pixiewps/pixiewps.o' '-mlittle-endian' '-mabi=lp64'
/home/andev/Downloads/android-ndk-r12/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/../libexec/gcc/aarch64-linux-android/4.9.x/cc1 -quiet -v -I jni -iprefix /home/andev/Downloads/android-ndk-r12/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/aarch64-linux-android/4.9.x/ -MMD ./obj/local/arm64-v8a/objs/pixiewps/pixiewps.d -MF ./obj/local/arm64-v8a/objs/pixiewps/pixiewps.o.d -MP -MQ ./obj/local/arm64-v8a/objs/pixiewps/pixiewps.o -D NDEBUG -D ANDROID -isystem /home/andev/Downloads/android-ndk-r12/platforms/android-21/arch-arm64/usr/include jni/pixiewps.c -mbionic -fpic -quiet -dumpbase pixiewps.c -mlittle-endian -mabi=lp64 -auxbase-strip ./obj/local/arm64-v8a/objs/pixiewps/pixiewps.o -g -O2 -O3 -Wformat=1 -Werror=format-security -std=c99 -version -ffunction-sections -funwind-tables -fstack-protector-strong -fPIE -o /tmp/ccc2ADbX.s
GNU C (GCC) version 4.9.x 20150123 (prerelease) (aarch64-linux-android)
compiled by GNU C version 4.8, GMP version 5.0.5, MPFR version 3.1.1, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/home/andev/Downloads/android-ndk-r12/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/include"
ignoring duplicate directory "/home/andev/Downloads/android-ndk-r12/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/../../lib/gcc/aarch64-linux-android/4.9.x/include"
ignoring nonexistent directory "/tmp/8ee0b8157b3409c4b84fff35696d6c90/sysroot/usr/local/include"
ignoring duplicate directory "/home/andev/Downloads/android-ndk-r12/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/../../lib/gcc/aarch64-linux-android/4.9.x/include-fixed"
ignoring nonexistent directory "/home/andev/Downloads/android-ndk-r12/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/../../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/include"
ignoring nonexistent directory "/tmp/8ee0b8157b3409c4b84fff35696d6c90/sysroot/usr/include"

include "..." search starts here:

include <...> search starts here:

jni
/home/andev/Downloads/android-ndk-r12/platforms/android-21/arch-arm64/usr/include
/home/andev/Downloads/android-ndk-r12/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/aarch64-linux-android/4.9.x/include
/home/andev/Downloads/android-ndk-r12/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/aarch64-linux-android/4.9.x/include-fixed
End of search list.
GNU C (GCC) version 4.9.x 20150123 (prerelease) (aarch64-linux-android)
compiled by GNU C version 4.8, GMP version 5.0.5, MPFR version 3.1.1, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: a7ae93b49a1432b133d6e1af8528d8ab
In file included from jni/pixiewps.c:61:0:
jni/pixiewps.h:66:17: fatal error: sha.h: No such file or directory
#include <sha.h>
^
compilation terminated.
/home/andev/Downloads/android-ndk-r12/build/core/build-binary.mk:472: recipe for target 'obj/local/arm64-v8a/objs/pixiewps/pixiewps.o' failed
make: *** [obj/local/arm64-v8a/objs/pixiewps/pixiewps.o] Error 1
`
that is when i put files in jni folder. When i try to compile with command you provided, i get the same error. Where am i making mistake?
Best regards !

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

1 participant