Package gtkmm-3.0 was not found in the pkg-config search pat

Need help with C, C++, perl, python, etc?

Package gtkmm-3.0 was not found in the pkg-config search pat

Postby PlunderingPirate9000 » 2018-02-05 11:44

Package gtkmm-3.0 was not found in the pkg-config search path

Trying to compile example gtkmm program here: https://developer.gnome.org/gtkmm-tutor ... le.html.en

pkg-config gtkmm-3.0 --cflags --libs produces the following output:

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

However I have installed: apt install libgtkmm-3.0-dev

find /usr -name "gtkmm*" produces

/usr/lib/x86_64-linux-gnu/pkgconfig/gtkmm-3.0.pc
/usr/lib/x86_64-linux-gnu/gtkmm-3.0
/usr/lib/x86_64-linux-gnu/gtkmm-3.0/include/gtkmmconfig.h
/usr/include/gtkmm-3.0
/usr/include/gtkmm-3.0/gtkmm
/usr/include/gtkmm-3.0/gtkmm.h

What's going on here? The compiler produces the error gtkmm.h file not found. Compile command is: g++ main.cpp `pkg-config gtkmm-3.0 --cflags --libs`
PlunderingPirate9000
 
Posts: 6
Joined: 2017-11-30 15:17

Re: Package gtkmm-3.0 was not found in the pkg-config search

Postby roseway » 2018-02-05 11:49

Eric
User avatar
roseway
 
Posts: 1495
Joined: 2007-12-31 22:50
Location: Kent, UK

Re: Package gtkmm-3.0 was not found in the pkg-config search

Postby PlunderingPirate9000 » 2018-02-05 11:51

What am I supposed to do with that link?
PlunderingPirate9000
 
Posts: 6
Joined: 2017-11-30 15:17

Re: Package gtkmm-3.0 was not found in the pkg-config search

Postby PlunderingPirate9000 » 2018-02-05 12:58

In order to "fudge" this problem I had to set an environment variable.

export PKG_CONFIG_PATH="/usr/lib/x86_64-linux-gnu/pkgconfig;/usr/share/pkgconfig"

However I am fairly certain that this is something a bit out of the ordinary, and that I shouldn't have to be doing this. Why are those paths not set for pkg-config to search by default? From searching online this seems to be something that only Debian 9 users encounter as a problem?
PlunderingPirate9000
 
Posts: 6
Joined: 2017-11-30 15:17


Return to Programming

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable