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 Build in MAC OS - Close #67

Open
ErezFrucht opened this issue Oct 24, 2016 · 2 comments
Open

Cannot Build in MAC OS - Close #67

ErezFrucht opened this issue Oct 24, 2016 · 2 comments

Comments

@ErezFrucht
Copy link

ErezFrucht commented Oct 24, 2016

Hi - I've followed the instructions-
rm project/jni/application/src
ln -s ballfield project/jni/application/src

But when I'm trying to run:
./changeAppSettings.sh -a

I'm getting:

...
...
Configured for android-armv7.

*** Because of configuration changes, you MUST do the following before
*** building:

    make depend
make[3]: Nothing to be done for `links'.

Configured for android.

*** Because of configuration changes, you MUST do the following before
*** building:

    make depend
making links in apps...
ssltest.c => ../test/ssltest.c
heartbeat_test.c => ../test/heartbeat_test.c
clienthellotest.c => ../test/clienthellotest.c
sslv2conftest.c => ../test/sslv2conftest.c
make[2]: Nothing to be done for `links'.
making links in test...
make[2]: Nothing to be done for `links'.
...
...
...
/Users/dan/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -I.. -I../include  -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -fPIC -march=armv7-a -mandroid -I/Users/dan/Library/Android/sdk/ndk-bundle/platforms/android-14/arch-arm/usr/include -B/Users/dan/Library/Android/sdk/ndk-bundle/platforms/android-14/arch-arm/usr/lib -O3 -fomit-frame-pointer -Wall -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DAES_ASM -DBSAES_ASM -DGHASH_ASM   -c -o v3nametest.o v3nametest.c
making all in tools...
make[2]: Nothing to be done for `all'.
make: *** [openssl/lib-x86/libcrypto.so.sdl.1.so] Error 1
Done
...
...
...
/Users/dan/Library/Android/sdk/ndk-bundle/toolchains/mipsel-linux-android-4.9/prebuilt/darwin-x86_64/bin/mipsel-linux-android-gcc -I.. -I../include  -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -fPIC -mandroid -I/Users/dan/Library/Android/sdk/ndk-bundle/platforms/android-14/arch-mips/usr/include -B/Users/dan/Library/Android/sdk/ndk-bundle/platforms/android-14/arch-mips/usr/lib -O3 -Wall -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DAES_ASM   -c -o sslv2conftest.o sslv2conftest.c
sslv2conftest.c: In function 'main':
sslv2conftest.c:217:9: warning: 'currtest' may be used uninitialized in this function [-Wmaybe-uninitialized]
         printf("SSLv2 CONF test: FAILED (Test %d)\n", currtest);
         ^
/Users/dan/Library/Android/sdk/ndk-bundle/toolchains/mipsel-linux-android-4.9/prebuilt/darwin-x86_64/bin/mipsel-linux-android-gcc -I.. -I../include  -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -fPIC -mandroid -I/Users/dan/Library/Android/sdk/ndk-bundle/platforms/android-14/arch-mips/usr/include -B/Users/dan/Library/Android/sdk/ndk-bundle/platforms/android-14/arch-mips/usr/lib -O3 -Wall -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DAES_ASM   -c -o dummytest.o dummytest.c
making all in tools...
make[2]: Nothing to be done for `all'.

And then when I run:
./build.sh

I get:

Android NDK: ERROR:jni/../jni/crypto/Android.mk:crypto: LOCAL_SRC_FILES points to a missing file    
Android NDK: Check that jni/../jni/crypto/lib-x86/libcrypto.so.sdl.1.so exists  or that its path is correct   
/usr/local/Cellar/android-ndk/r13/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting    .  Stop.

Any idea what should I do?

Thanks!

@pelya
Copy link
Owner

pelya commented Oct 24, 2016

Could you please attach full build log?

@ErezFrucht
Copy link
Author

ErezFrucht commented Oct 24, 2016

Found the issue - Apparently MAC OS doesn't run the command 'readlink', so the NDK path was wrong.

Thanks!

#Close

@ErezFrucht ErezFrucht changed the title Cannot Build in MAC OS Cannot Build in MAC OS - Close Nov 4, 2016
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