pelya / commandergenius

Port of SDL library and several games to the Android OS.
http://libsdl-android.sourceforge.net/
GNU Lesser General Public License v2.1
533 stars 248 forks source link

Cannot Build in MAC OS - Close #67

Open ErezFrucht opened 7 years ago

ErezFrucht commented 7 years ago

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 commented 7 years ago

Could you please attach full build log?

ErezFrucht commented 7 years ago

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

Thanks!

Close