Closed idoit closed 6 years ago
Hi, I have compile on iOS success.But when I use this cmd to compile Android. make OS=android NDKROOT=$ANDROID_NDK TARGET=android-9 ARCH=arm NDKLEVEL=9 In the end, It will give this error below: sh ./codec/common/generate_version.sh ./ Keeping existing codec/common/inc/version_gen.h cd ./codec/build/android/dec && /Users/migu/Desktop/android-ndk-r10e/ndk-build -B APP_ABI=armeabi-v7a && android update project -t android-9 -p . && ant debug make[1]: Entering directory /Users/idoit/Documents/opensource/openh264/codec/build/android/dec' [armeabi-v7a] Prebuilt : libopenh264.so <= jni/../../../../../ [armeabi-v7a] Install : libopenh264.so => libs/armeabi-v7a/libopenh264.so [armeabi-v7a] Compile++ thumb: welsdecdemo <= h264dec.cpp [armeabi-v7a] Compile++ thumb: welsdecdemo <= read_config.cpp [armeabi-v7a] Compile++ thumb: welsdecdemo <= d3d9_utils.cpp [armeabi-v7a] Compile++ thumb: welsdecdemo <= myjni.cpp [armeabi-v7a] Prebuilt : libstlport_shared.so <= <NDK>/sources/cxx-stl/stlport/libs/armeabi-v7a/thumb/ [armeabi-v7a] SharedLibrary : libwelsdecdemo.so [armeabi-v7a] Install : libwelsdecdemo.so => libs/armeabi-v7a/libwelsdecdemo.so [armeabi-v7a] Install : libstlport_shared.so => libs/armeabi-v7a/libstlport_shared.so make[1]: Leaving directory/Users/idoit/Documents/opensource/openh264/codec/build/android/dec' /bin/sh: android: command not found make: *** [decdemo] Error 127
/Users/idoit/Documents/opensource/openh264/codec/build/android/dec' [armeabi-v7a] Prebuilt : libopenh264.so <= jni/../../../../../ [armeabi-v7a] Install : libopenh264.so => libs/armeabi-v7a/libopenh264.so [armeabi-v7a] Compile++ thumb: welsdecdemo <= h264dec.cpp [armeabi-v7a] Compile++ thumb: welsdecdemo <= read_config.cpp [armeabi-v7a] Compile++ thumb: welsdecdemo <= d3d9_utils.cpp [armeabi-v7a] Compile++ thumb: welsdecdemo <= myjni.cpp [armeabi-v7a] Prebuilt : libstlport_shared.so <= <NDK>/sources/cxx-stl/stlport/libs/armeabi-v7a/thumb/ [armeabi-v7a] SharedLibrary : libwelsdecdemo.so [armeabi-v7a] Install : libwelsdecdemo.so => libs/armeabi-v7a/libwelsdecdemo.so [armeabi-v7a] Install : libstlport_shared.so => libs/armeabi-v7a/libstlport_shared.so make[1]: Leaving directory
Thanks!
sorry, i find the reason
did you find the reason? please tell me if you got it.
Hi, I have compile on iOS success.But when I use this cmd to compile Android. make OS=android NDKROOT=$ANDROID_NDK TARGET=android-9 ARCH=arm NDKLEVEL=9 In the end, It will give this error below: sh ./codec/common/generate_version.sh ./ Keeping existing codec/common/inc/version_gen.h cd ./codec/build/android/dec && /Users/migu/Desktop/android-ndk-r10e/ndk-build -B APP_ABI=armeabi-v7a && android update project -t android-9 -p . && ant debug make[1]: Entering directory
/Users/idoit/Documents/opensource/openh264/codec/build/android/dec' [armeabi-v7a] Prebuilt : libopenh264.so <= jni/../../../../../ [armeabi-v7a] Install : libopenh264.so => libs/armeabi-v7a/libopenh264.so [armeabi-v7a] Compile++ thumb: welsdecdemo <= h264dec.cpp [armeabi-v7a] Compile++ thumb: welsdecdemo <= read_config.cpp [armeabi-v7a] Compile++ thumb: welsdecdemo <= d3d9_utils.cpp [armeabi-v7a] Compile++ thumb: welsdecdemo <= myjni.cpp [armeabi-v7a] Prebuilt : libstlport_shared.so <= <NDK>/sources/cxx-stl/stlport/libs/armeabi-v7a/thumb/ [armeabi-v7a] SharedLibrary : libwelsdecdemo.so [armeabi-v7a] Install : libwelsdecdemo.so => libs/armeabi-v7a/libwelsdecdemo.so [armeabi-v7a] Install : libstlport_shared.so => libs/armeabi-v7a/libstlport_shared.so make[1]: Leaving directory
/Users/idoit/Documents/opensource/openh264/codec/build/android/dec' /bin/sh: android: command not found make: *** [decdemo] Error 127Thanks!