Skip to content

No package gtk4 found #1485

Closed
Closed
@erwinschrodinger1

Description

@erwinschrodinger1

Issue Encountered during GTK4 Installation on Windows

I followed the recommended installation guide from the book GTK4 Installation Guide for Windows, but I encountered the following error:

Package gtk4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk4.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk4' found

The reason behind this error is that the guide does not include instructions to add the PKG_CONFIG_PATH environment variable. To resolve this issue, you should add a new environment variable with the following details:

Variable Name: PKG_CONFIG_PATH
Variable Value: C:\gtk-build\gtk\x64\release\lib\pkgconfig

Here is an image highlighting the error in the code:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions