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

Issue on Compilation #1

Open
esumit opened this issue May 16, 2017 · 1 comment
Open

Issue on Compilation #1

esumit opened this issue May 16, 2017 · 1 comment

Comments

@esumit
Copy link

esumit commented May 16, 2017

Made following change on build : /home/esumitmac/Downloads/android-ndk-r14b/build/tools/make-standalone-toolchain.sh --platform=android-22 --toolchain=arm-linux-androideabi-4.9 --install-dir=pwd/android-toolchain-arm

And on compilation it has shown below issue :

Making all in include
make[2]: Entering directory '/home/esumitmac/Downloads/libevent-android-master/jni/libevent-2.0.22-stable/include'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/esumitmac/Downloads/libevent-android-master/jni/libevent-2.0.22-stable/include'
Making all in sample
make[2]: Entering directory '/home/esumitmac/Downloads/libevent-android-master/jni/libevent-2.0.22-stable/sample'
/home/esumitmac/Downloads/libevent-android-master/jni/libevent-2.0.22-stable/android-toolchain-arm/bin/arm-linux-androideabi-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../compat -I../include -I../include -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -Wall -fno-strict-aliasing -c event-test.c
/bin/bash ../libtool --tag=CC --mode=link /home/esumitmac/Downloads/libevent-android-master/jni/libevent-2.0.22-stable/android-toolchain-arm/bin/arm-linux-androideabi-gcc -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -Wall -fno-strict-aliasing -march=armv7-a -Wl,--fix-cortex-a8 -o event-test event-test.o ../libevent.la
libtool: link: /home/esumitmac/Downloads/libevent-android-master/jni/libevent-2.0.22-stable/android-toolchain-arm/bin/arm-linux-androideabi-gcc -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -Wall -fno-strict-aliasing -march=armv7-a -Wl,--fix-cortex-a8 -o .libs/event-test event-test.o ../.libs/libevent.so
../.libs/libevent.so: error: undefined reference to 'arc4random_addrandom'
collect2: error: ld returned 1 exit status
Makefile:321: recipe for target 'event-test' failed
make[2]: *** [event-test] Error 1
make[2]: Leaving directory '/home/esumitmac/Downloads/libevent-android-master/jni/libevent-2.0.22-stable/sample'
Makefile:864: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/esumitmac/Downloads/libevent-android-master/jni/libevent-2.0.22-stable'
Makefile:595: recipe for target 'all' failed
make: *** [all] Error 2
./build.sh: line 24: ndk-build: command not found

@lycying
Copy link
Owner

lycying commented May 17, 2017

#android/ndk#48

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