Posts

How to fix missing webkit2gtk-4.0 when launching flutter linux application on Ubuntu

While trying to build a linux application on an old laptop upgrade to ubuntu 24.04, I encountered the following issue: Building Linux application... CMake Error at /usr/share/cmake-3.28/Modules/FindPkgConfig.cmake:619 (message): The following required packages were not found:    - webkit2gtk-4.0 Trying sudo apt install libwebkit2gtk-4.0-dev was not working (package not found) The only solution I found was here: https://www.reddit.com/r/Ubuntu/comments/1dd1qxz/libwebkit2gtk4037_is_not_available_on_ubuntu_2404/ Adding  Types: deb URIs: http://gb.archive.ubuntu.com/ubuntu Suites: jammy Components: main to /etc/apt/sources.list.d/ubuntu.sources then running  sudo apt update sudo apt install libwebkit2gtk-4.0-dev sudo apt --fix-broken install fixes the issue

Solve error: ProcessException: Operation not permitted in MacOS flutter app

When building a macos flutter application spawning an external command will throw: error: ProcessException: Operation not permitted The solution is to disable the sandbox mode in the XCode project. Open the XCode macos workspace and change in the .entitlements file (DebugProfile and Release) the App Sandbox value to NO: