diamondburned / gtkcord3

A Gtk3 Discord client in Golang
GNU General Public License v3.0
628 stars 28 forks source link

Failed to Build (pkg-config error) #106

Open saltedcoffii opened 3 years ago

saltedcoffii commented 3 years ago
github.com/gotk3/gotk3/glib
# pkg-config --cflags  -- gio-2.0 glib-2.0 gobject-2.0 gio-2.0 glib-2.0 gobject-2.0 gio-2.0
Package gio-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gio-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gio-2.0' found
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
Package gobject-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gobject-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gobject-2.0' found
Package gio-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gio-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gio-2.0' found
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
Package gobject-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gobject-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gobject-2.0' found
Package gio-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gio-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gio-2.0' found
pkg-config: exit status 1

I installed all necessary dependencies. I don't know what's wrong. Help? OS: Debian 11 (bullseye/testing) Packages installed: golang, libhandy-0.0-0 libhandy-1.0 gob2. I'm using gnome so gtk should be already installed.

diamondburned commented 3 years ago

Those dependencies don't seem to include gio nor glib nor gobject, but I don't use Debian, so I'm not sure.

darkralts commented 3 years ago

image

getting a similar error on void


# pkg-config --cflags  -- gio-2.0 glib-2.0 gobject-2.0 gio-2.0 glib-2.0 gobject-2.0 gio-2.0
Package gio-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gio-2.0.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gio-2.0', required by 'virtual:world', not found
Package 'glib-2.0', required by 'virtual:world', not found
Package 'gobject-2.0', required by 'virtual:world', not found
Package 'gio-2.0', required by 'virtual:world', not found
Package 'glib-2.0', required by 'virtual:world', not found
Package 'gobject-2.0', required by 'virtual:world', not found
Package 'gio-2.0', required by 'virtual:world', not found
pkg-config: exit status 1```
saltedcoffii commented 3 years ago

@diamondburned what distro do you use and what are the exact package names?

diamondburned commented 3 years ago
{
    buildInputs = with pkgs; [
        gnome3.glib gnome3.gtk libhandy
    ];

    nativeBuildInputs = with pkgs; [
        pkgconfig go
    ];
}

Extracted from shell.nix.