anirudhb / flutter_packages

Various flutter packages
12 stars 4 forks source link

windows compile error #5

Open sleepreading opened 2 years ago

sleepreading commented 2 years ago
Building on Windows against C++/WinRT 2.0.210806.1
C++ Standard: 17
Enabled Dart VM NativePorts callbacks.
CMake Error at D:/xx/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find FFmpeg (missing: FFMPEG_LIBRARIES FFMPEG_INCLUDE_DIRS
  AVFORMAT_LIBRARIES AVFORMAT_INCLUDE_DIRS AVCODEC_LIBRARIES
  AVCODEC_INCLUDE_DIRS AVFILTER_LIBRARIES AVFILTER_INCLUDE_DIRS
  AVUTIL_LIBRARIES AVUTIL_INCLUDE_DIRS SWSCALE_LIBRARIES SWSCALE_INCLUDE_DIRS
  SWRESAMPLE_LIBRARIES SWRESAMPLE_INCLUDE_DIRS POSTPROC_LIBRARIES
  POSTPROC_INCLUDE_DIRS)
Call Stack (most recent call first):
  D:/xx/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  flutter/ephemeral/.plugin_symlinks/video_player_windows/windows/FindFFmpeg.cmake:151 (find_package_handle_standard_args)
  flutter/ephemeral/.plugin_symlinks/video_player_windows/windows/CMakeLists.txt:20 (find_package)
Exception: Unable to generate build files
Exited (sigterm)

Environment

Flutter 2.10.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 5f105a6ca7 (9 days ago) • 2022-02-01 14:15:42 -0800
Engine • revision 776efd2034
Tools • Dart 2.16.0 • DevTools 2.9.2

Visual Studio - develop for Windows (Visual Studio Community 2022 17.0.5)
insinfo commented 2 years ago

use visual studio 2019

sleepreading commented 2 years ago

Thanks, but the latest flutter version already supports VS2022. If this plugin support too, it would be great!

ollyde commented 2 years ago

@insinfo @sleepreading did you find a solution, have the same bug. Using VSC.


CMake Error at C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find FFmpeg (missing: FFMPEG_LIBRARIES FFMPEG_INCLUDE_DIRS
  AVFORMAT_LIBRARIES AVFORMAT_INCLUDE_DIRS AVCODEC_LIBRARIES
  AVCODEC_INCLUDE_DIRS AVFILTER_LIBRARIES AVFILTER_INCLUDE_DIRS
  AVUTIL_LIBRARIES AVUTIL_INCLUDE_DIRS SWSCALE_LIBRARIES SWSCALE_INCLUDE_DIRS
  SWRESAMPLE_LIBRARIES SWRESAMPLE_INCLUDE_DIRS POSTPROC_LIBRARIES
  POSTPROC_INCLUDE_DIRS)
Call Stack (most recent call first):
  C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  flutter/ephemeral/.plugin_symlinks/video_player_windows/windows/FindFFmpeg.cmake:151 (find_package_handle_standard_args)
  flutter/ephemeral/.plugin_symlinks/video_player_windows/windows/CMakeLists.txt:20 (find_package)
ollyde commented 2 years ago

Does this require FFmpeg running on the current machine? (after deployment, say if we send to 6000 people)

sleepreading commented 2 years ago

I haven't solved it yet! Actually, I gave up early and changed to another plugin.

ollyde commented 2 years ago

@sleepreading which plug-in? We need video player on windows hehe

sleepreading commented 2 years ago

@ollydixon libwinmedia