euhat / EuhatRtsp

This is an open source code of rtsp stream player in Android device.
Apache License 2.0
14 stars 10 forks source link

fatal error: 'libavcodec\avcodec.h' file not found #2

Open ccyina opened 4 years ago

ccyina commented 4 years ago

yinchuanchuan$ ~/Library/Android/sdk/ndk/16.1.4479499/ndk-build Android NDK: WARNING: APP_PLATFORM android-21 is higher than android:minSdkVersion 1 in ./AndroidManifest.xml. NDK binaries will not be comptible with devices older than android-21. See https://android.googlesource.com/platform/ndk/+/master/docs/user/common_problems.md for more information. /Users/yinchuanchuan/Library/Android/sdk/ndk/16.1.4479499/build/core/setup-app.mk:81: Android NDK: Application targets deprecated ABI(s): armeabi /Users/yinchuanchuan/Library/Android/sdk/ndk/16.1.4479499/build/core/setup-app.mk:82: Android NDK: Support for these ABIs will be removed in a future NDK release. [armeabi] Compile++ arm : EuhatRtsp <= DecodeOp.cpp In file included from jni/euhatrtsp/livevideo/DecodeOp.cpp:4: jni/euhatrtsp/livevideo/DecoderSoft.h:7:10: fatal error: 'libavcodec\avcodec.h' file not found

include "libavcodec\avcodec.h"

     ^~~~~~~~~~~~~~~~~~~~~~

1 error generated. make: *** [obj/local/armeabi/objs/EuhatRtsp/livevideo/DecodeOp.o] Error 1

yinchuanchuan$ ~/Library/Android/sdk/ndk/16.1.4479499/ndk-build Android NDK: WARNING: APP_PLATFORM android-21 is higher than android:minSdkVersion 1 in ./AndroidManifest.xml. NDK binaries will not be comptible with devices older than android-21. See https://android.googlesource.com/platform/ndk/+/master/docs/user/common_problems.md for more information. /Users/yinchuanchuan/Library/Android/sdk/ndk/16.1.4479499/build/core/setup-app.mk:81: Android NDK: Application targets deprecated ABI(s): armeabi /Users/yinchuanchuan/Library/Android/sdk/ndk/16.1.4479499/build/core/setup-app.mk:82: Android NDK: Support for these ABIs will be removed in a future NDK release. [armeabi] Compile++ arm : EuhatRtsp <= CommonOp.cpp jni/euhatrtsp/livevideo/CommonOp.cpp:41:9: error: use of undeclared identifier 'write' write(fd, dispStr.c_str(), dispStr.length()); ^ jni/euhatrtsp/livevideo/CommonOp.cpp:42:9: error: use of undeclared identifier 'close' close(fd); ^ 2 errors generated. make: *** [obj/local/armeabi/objs/EuhatRtsp/livevideo/CommonOp.o] Error 1

errors may generated when use ndk 16.1.4479499 build

euhat commented 4 years ago

thanks. refreshed for the Android Studio 3.6.3. please update for all.