ekibun/flutter_ffplay

Execution failed for task ':flutter_ffplay:externalNativeBuildDebug'.

heenasorathiya33 opened this issue · 7 comments

ninja: error: '.../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_ffplay-0.0.1/cxx/build/android_arm/lib/libavformat.a', needed by '.../untitled1flutter_ffplay/build/flutter_ffplay/intermediates/cmake/debug/obj/armeabi-v7a/libffmpeg.so', missing and no known rule to make it

Before using this plugin, you need to compile ffmpeg first.
please check https://github.com/ekibun/flutter_ffplay#compile-ffmpeg

I have tried from https://pub.dev/packages/flutter_ffplay/install
So how do I compile ffmpeg

Hi
I have a same problem
I add ANDROID_NDK_HOME to windows system environment variables but when build project get below error:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':flutter_ffplay:externalNativeBuildDebug'.
> Build command failed.
  Error while executing process C:\SDK\cmake\3.10.2.4988404\bin\ninja.exe with arguments {-C C:\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_ffplay-0.0.1\android\.cxx\cmake\debug\armeabi-v7a ffmpeg}
  ninja: Entering directory `C:\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_ffplay-0.0.1\android\.cxx\cmake\debug\armeabi-v7a'

  ninja: error: 'C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_ffplay-0.0.1/cxx/build/android_arm/lib/libavformat.a', needed by 'D:/Projects/tele_hub/build/flutter_ffplay/intermediates/cmake/debug/obj/armeabi-v7a/libffmpeg.so', missing and no known rule to make it


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 31s
Exception: Gradle task assembleDebug failed with exit code 1

To build the library, run build.sh in cxx directory.
For windows, msys2 is required to run bash script, here is an example cmd script:

set MSYS2_PATH_TYPE=inherit
call "D:\Apps\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64
"D:\Apps\msys64\usr\bin\bash.exe" --login cxx/build.sh

To build the library, run build.sh in cxx directory. For windows, msys2 is required to run bash script, here is an example cmd script:

set MSYS2_PATH_TYPE=inherit
call "D:\Apps\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64
"D:\Apps\msys64\usr\bin\bash.exe" --login cxx/build.sh

I wanna run app in android tv, but i have develop in windows and get error

To build the library, run build.sh in cxx directory. For windows, msys2 is required to run bash script, here is an example cmd script:

set MSYS2_PATH_TYPE=inherit
call "D:\Apps\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64
"D:\Apps\msys64\usr\bin\bash.exe" --login cxx/build.sh

Hi @ekibun
I have not use Microsoft Visual Studio software and need to use your library
Where can download vcvarsall.bat for set msys2?

vcvarall is not required when build for android. For Windows user, the windows subsystem linux (WSL) can be used.