Fix installation instructions and dependencies #1359
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds CMake to the list of required dependencies and updates the installation instructions in the README.md file of the picom project. The absence of CMake was causing build errors related to libconfig version requirements.
Explanation of the Issue
While attempting to compile picom, I encountered the following error:
objectivec
Dependency libconfig found: NO found 1.5 but need: '>=1.7'
Run-time dependency libconfig found: NO (tried pkgconfig and cmake)
src/meson.build:65: WARNING: Trying to clone and build libconfig as a subproject.
Executing subproject libconfig method cmake
libconfig| Did not find CMake 'cmake'
libconfig| Found CMake: NO
src/meson.build:75:1: ERROR: Unable to find CMake
The build process could not find libconfig version 1.7, and Meson attempted to clone and build libconfig as a subproject using CMake. However, since CMake was not installed, this process failed with the error ERROR: Unable to find CMake.
How the Issue Was Resolved
By installing CMake, Meson was able to successfully build libconfig as a subproject, resolving the version issue. This allowed the build process to proceed without needing to find libconfig version 1.7 in the system repositories.
Why These Changes Are Necessary
Including CMake as a required dependency ensures that other users will not encounter the same compilation error when building picom. This update improves the build instructions and helps prevent potential build failures related to libconfig and missing CMake.