You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CMake Error when i build my app for linux. #131555
CMake Error at /usr/local/share/cmake-3.27/Modules/FindPkgConfig.cmake:607 (message):
Building Linux application...
A required package was not found
Call Stack (most recent call first):
/usr/local/share/cmake-3.27/Modules/FindPkgConfig.cmake:82[9]([REDACTED]/actions/runs/[REDACTED]/job/[REDACTED]#step:7:10) (_pkg_check_modules_internal)
flutter/CMakeLists.txt:25 (pkg_check_modules)
Code sample
Code sample
[Paste your code here]
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]
Flutter Doctor output
Doctor output
Flutter doctor says my linux development is enabled and all toolchains installed
If you make a simple "hello world" style CMake project (without Flutter), and add gtk+-3.0, does it work? It seems like there may be an issue with your CMake installation, since you have the library but CMake can't find it.
If you make a simple "hello world" style CMake project (without Flutter), and add gtk+-3.0, does it work? It seems like there may be an issue with your CMake installation, since you have the library but CMake can't find it.
Could you post the CMakeList.txt that you were able to successfully build using gtk+-3.0? If it had these lines and worked, then it's very strange that they wouldn't work when driving the build via flutter.
@nyakokitsu I also tried reproducing this issue on my side but the issue didn't appear. I wonder if the issue still appears without adding flame to the project?
Did you install Flutter manually or with snapd? Can you please provide the output of flutter doctor -v (with verbose)?
I'm asking this because I see there is an issue that might be related: flame-engine/flame#1836 (see issue on bluefireteam/audioplayers#1538 as well). In that case, audioplayers_linux package caused that issue by snap didn't use right CMake version, and it was fixed after OP install Flutter manually instead.
@nyakokitsu Thanks for your update. Unfortunately, since the issue is only reproduced by adding flame, I would suggest you file an issue at the flame repository for better support there.
Once the issue is identified as caused by Flutter, please come back here with more information and I will re-open this for further investigation. Closing the issue from here.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
stuartmorgan-g commentedon Jul 29, 2023
This line is the check for
gtk+-3.0, so CMake is unable to locate the configuration for that library.Please post the full output;
doctorshould be checking for the presence ofgtk+-3.0.huycozy commentedon Jul 31, 2023
@nyakokitsu Your flutter doctor output with GTK check is passed, maybe this is related to #115378.
Can you check if gtk3 exists on your system?
nyakokitsu commentedon Jul 31, 2023
nyakokitsu commentedon Jul 31, 2023
@huycozy ping
stuartmorgan-g commentedon Jul 31, 2023
If you make a simple "hello world" style CMake project (without Flutter), and add
gtk+-3.0, does it work? It seems like there may be an issue with your CMake installation, since you have the library but CMake can't find it.nyakokitsu commentedon Aug 1, 2023
yes, its works
stuartmorgan-g commentedon Aug 2, 2023
Could you post the CMakeList.txt that you were able to successfully build using
gtk+-3.0? If it had these lines and worked, then it's very strange that they wouldn't work when driving the build viaflutter.5 remaining items
huycozy commentedon Aug 3, 2023
@nyakokitsu I also tried reproducing this issue on my side but the issue didn't appear. I wonder if the issue still appears without adding
flameto the project?nyakokitsu commentedon Aug 3, 2023
huycozy commentedon Aug 4, 2023
Did you install Flutter manually or with
snapd? Can you please provide the output offlutter doctor -v(with verbose)?I'm asking this because I see there is an issue that might be related: flame-engine/flame#1836 (see issue on bluefireteam/audioplayers#1538 as well). In that case,
audioplayers_linuxpackage caused that issue by snap didn't use right CMake version, and it was fixed after OP install Flutter manually instead.nyakokitsu commentedon Aug 4, 2023
huycozy commentedon Aug 4, 2023
@nyakokitsu Thanks for your update. Unfortunately, since the issue is only reproduced by adding
flame, I would suggest you file an issue at the flame repository for better support there.Once the issue is identified as caused by Flutter, please come back here with more information and I will re-open this for further investigation. Closing the issue from here.
github-actions commentedon Aug 19, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.