dart Flutter Linux Build Exception Using media_kit_video package

1l5u6lss  于 11个月前  发布在  Flutter
关注(0)|答案(1)|浏览(95)

我在尝试使用flutter在Linux上构建时遇到了这个错误。我使用snapd安装了flutter。

CMake Error at flutter/ephemeral/.plugin_symlinks/media_kit_video/linux/CMakeLists.txt:16 (add_library):
  Target "media_kit_video_plugin" links to target "PkgConfig::mpv" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?

CMake Error at flutter/ephemeral/.plugin_symlinks/media_kit_native_event_loop/src/CMakeLists.txt:52 (add_library):
  Target "media_kit_native_event_loop" links to target "PkgConfig::mpv" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?

CMake Generate step failed.  Build files cannot be regenerated correctly.
Building Linux application...                                           
Unable to generate build files

字符串
我尝试清除pub-cache并使用pub-get重新导入所有软件包,但仍然得到相同的错误。
以下是我使用的软件包:

cupertino_icons: ^1.0.2
media_kit: ^1.1.10
media_kit_video: ^1.2.4
media_kit_libs_video: ^1.0.4
provider: ^6.0.5
signalr_core: ^1.1.1
intl: ^0.18.1
path_provider: ^2.1.1
cron: ^0.5.1
ntp: ^2.0.0
http: ^0.13.6


医生没事

pgx2nnw8

pgx2nnw81#

你试过这个命令吗?
sudo apt install libmpv-dev mpv

相关问题