anyrtcIO-Community / anyRTC-RTMP-OpenSource

RTMP 推流器,RTMP(HLS)秒开播放器,直播点播,跨平台(Win,IOS,Android)开源代码
https://www.anyrtc.io
GNU General Public License v3.0
4.65k stars 1.6k forks source link

编译不过 #110

Open ouyangmingzhuanyong opened 5 years ago

ouyangmingzhuanyong commented 5 years ago

报错信息如下:

Build command failed. Error while executing 'E:\sdk\ndk-bundle\ndk-build.cmd' with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=E:\demo\anyRTC-RTMP-OpenSource-master\Prj-Android\jni\toolchain\Android.mk APP_ABI=armeabi NDK_ALL_ABIS=armeabi NDK_DEBUG=1 APP_PLATFORM=android-16 NDK_OUT=E:/demo/anyRTC-RTMP-OpenSource-master/Prj-Android/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=E:\demo\anyRTC-RTMP-OpenSource-master\Prj-Android\app\build\intermediates\ndkBuild\debug\lib NDK_APPLICATION_MK:=../jni/Application.mk E:/demo/anyRTC-RTMP-OpenSource-master/Prj-Android/app/build/intermediates/ndkBuild/debug/obj/local/armeabi/libanyrtmp-jni.so} Android NDK: WARNING:E:/demo/anyRTC-RTMP-OpenSource-master/Prj-Android/jni/toolchain/../Android.mk:anyrtmp-jni: non-system libraries in linker flags: -lavformat -lavcodec -lavutil
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
Android NDK: WARNING: Unsupported source file extensions in E:/demo/anyRTC-RTMP-OpenSource-master/Prj-Android/jni/toolchain/../../../webrtc/Android.mk for module webrtc
Android NDK: system_wrappers/source/trace_impl.h
[armeabi] Compile++ thumb: webrtc <= event_timer_posix.cc E:/sdk/ndk-bundle/build//../build/core/setup-app.mk:81: Android NDK: Application targets deprecated ABI(s): armeabi
E:/sdk/ndk-bundle/build//../build/core/setup-app.mk:82: Android NDK: Support for these ABIs will be removed in a future NDK release.
E:/demo/anyRTC-RTMP-OpenSource-master/Prj-Android/jni/toolchain/../../../webrtc/system_wrappers/source/event_timer_posix.cc: In constructor 'webrtc::EventTimerPosix::EventTimerPosix()': E:/demo/anyRTC-RTMP-OpenSource-master/Prj-Android/jni/toolchain/../../../webrtc/system_wrappers/source/event_timer_posix.cc:53:56: error: 'pthread_condattr_setclock' was not declared in this scope pthread_condattr_setclock(&cond_attr, CLOCK_MONOTONIC); ^ make: *** [E:/demo/anyRTC-RTMP-OpenSource-master/Prj-Android/app/build/intermediates/ndkBuild/debug/obj/local/armeabi/objs/webrtc/system_wrappers/source/event_timer_posix.o] Error 1

DyncMing commented 5 years ago

使用NDK r10e这个版本。

ouyangmingzhuanyong commented 5 years ago

使用NDK r10e这个版本。

好的,我去试一下!

kevinStrange commented 5 years ago

Error:invalid argument '-std=gnu++11' not allowed with 'C'