begeekmyfriend / yasea

RTMP live streaming client for Android
MIT License
4.86k stars 1.32k forks source link

打包时Build command failed. Error while executing process E:\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=E:\Android\IJKPlayer\Yasea\src\main\cpp\Android.mk NDK_APPLICATION_MK=E:\Android\IJKPlayer\Yasea\src\main\cpp\Application.mk APP_ABI=x86 NDK_ALL_ABIS=x86 NDK_DEBUG=1 APP_PLATFORM=android-17 NDK_OUT=E:/Android/IJKPlayer/Yasea/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=E:\Android\IJKPlayer\Yasea\build\intermediates\ndkBuild\debug\lib E:/Android/IJKPlayer/Yasea/build/intermediates/ndkBuild/debug/obj #727

Open 17778119753 opened 4 years ago

17778119753 commented 4 years ago

Build command failed. Error while executing process E:\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=E:\Android\IJKPlayer\Yasea\src\main\cpp\Android.mk NDK_APPLICATION_MK=E:\Android\IJKPlayer\Yasea\src\main\cpp\Application.mk APP_ABI=x86 NDK_ALL_ABIS=x86 NDK_DEBUG=1 APP_PLATFORM=android-17 NDK_OUT=E:/Android/IJKPlayer/Yasea/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=E:\Android\IJKPlayer\Yasea\build\intermediates\ndkBuild\debug\lib E:/Android/IJKPlayer/Yasea/build/intermediates/ndkBuild/debug/obj/local/x86/libenc.so} [x86] SharedLibrary : libenc.so

E:/Android/IJKPlayer/Yasea/src/main/cpp/libx264/libs/x86/libx264.a(ratecontrol.o):ratecontrol.c:function x264_ratecontrol_new: error: undefined reference to 'stpcpy' E:/Android/IJKPlayer/Yasea/src/main/cpp/libx264/libs/x86/libx264.a(ratecontrol.o):ratecontrol.c:function x264_ratecontrol_new: error: undefined reference to 'stpcpy' E:/Android/IJKPlayer/Yasea/src/main/cpp/libx264/libs/x86/libx264.a(ratecontrol.o):ratecontrol.c:function x264_ratecontrol_new: error: undefined reference to 'stpcpy' E:/Android/IJKPlayer/Yasea/src/main/cpp/libx264/libs/x86/libx264.a(ratecontrol.o):ratecontrol.c:function x264_ratecontrol_new: error: undefined reference to 'stpcpy' clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [E:/Android/IJKPlayer/Yasea/build/intermediates/ndkBuild/debug/obj/local/x86/libenc.so] Error 1

17778119753 commented 4 years ago

打包时报错,哪位大佬给看一下,是为什么?

chienpm304 commented 4 years ago

install these tools:

begeekmyfriend commented 4 years ago

I am unavailable for Android development and without IDE at hand. The one who is able to provide a PR shall be appreicated.

chienpm304 commented 4 years ago

I found the problem is android project does not import folder cpp/../x264/libs for some reason. So, just re-check the "cpp/../x264/libs folder and re-import the module. It worked to me.