azkadev/play

CMake Error - Modules / FindPkgConfig.cmake

VladimirCores opened this issue · 4 comments

Describe the bug
Can't run application with code from example, using target Linux

CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:607 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPkgConfig.cmake:829 (_pkg_check_modules_internal)
  flutter/ephemeral/.plugin_symlinks/audioplayers_linux/linux/CMakeLists.txt:25 (pkg_check_modules)


Exception: Unable to generate build files

Flutter doctor:

[@ Frame]$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 3.8.0-14.0.pre.25, on Fedora Linux 37 (Workstation Edition) 6.1.12-200.fc37.x86_64, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2022.1)
[✓] VS Code (version 1.75.1)
[✓] Connected device (2 available)
[✓] Network resources

Yes, I have VLC installed:

[@ ~]$ sudo dnf install vlc-devel
Last metadata expiration check: 1:35:40 ago on Wed 22 Feb 2023 06:26:25 PM MSK.
Package vlc-devel-1:3.0.18-2.fc37.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[@ ~]$ sudo dnf install vlc
Last metadata expiration check: 1:35:46 ago on Wed 22 Feb 2023 06:26:25 PM MSK.
Package vlc-1:3.0.18-2.fc37.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

Expected behavior
App runs without errors

Desktop:

  • Device: Laptop
  • OS: Fedora Linux 37

All right, looks like I was able to solve the problem, and maybe it should be added to the docs of the library:

  1. Go though instructions here: https://docs.fedoraproject.org/en-US/quick-docs/assembly_installing-plugins-for-playing-movies-and-music/
  2. Install C++ wrapper for gstreamer: sudo dnf install gstreamermm and install sudo dnf install gstreamermm-devel

Also I have added few checks on audio module, but its not required
image

@alexmercerind you might be interested as well in this issue, because play uses dart_vlc internally, don't you?

Nope. Sorry.

CMake Error at CMakeLists.txt:3 (project):
Generator

Visual Studio 17 2022

could not find specified instance of Visual Studio:

D:/visual studio

Exception: Unable to generate build files

I am using windows 10 operating system
I got this error in my be flutter project, I couldn't find the solution.
visual studio c++ is installed and flutter doctor is running smoothly, i don't get any errors.
please help.