Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Failed to Build (pkg-config error) #106

Open
saltedcoffii opened this issue Nov 10, 2020 · 4 comments
Open

Failed to Build (pkg-config error) #106

saltedcoffii opened this issue Nov 10, 2020 · 4 comments

Comments

@saltedcoffii
Copy link

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
Copy link
Owner

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

@darkralts
Copy link

darkralts commented Nov 10, 2020

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
Copy link
Author

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

@diamondburned
Copy link
Owner

diamondburned commented Nov 11, 2020

{
	buildInputs = with pkgs; [
		gnome3.glib gnome3.gtk libhandy
	];

	nativeBuildInputs = with pkgs; [
		pkgconfig go
	];
}

Extracted from shell.nix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants