Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 09-27-2013, 04:25 AM   #1
LQ Newbie
Registered: Sep 2013
Posts: 3

Rep: Reputation: Disabled
gtk 3 and gtkmm 3 installation from sources

hi all

i am trying to install gtkmm 3 on my slackware 13.37 from source packages (official packages from gtk and gtkmm web site).

after sucessful install of gtk 3.0 and glibmm 2.28
the configure script for gtkmm 3 package tell me this:

configure: error: Package requirements (gtk+-3.0 >= 3.0.0) were not met:

No package ‘gtk+-3.0′ found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GTK_CFLAGS
and GTK_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
so configure seems to deny the existenxe of gtk3,
but i succesfully installed it previously!

anyone may suggest why the gtkmm3 configure script does not see gtk3 installed on my system??

thanks for any help in advance
Old 09-27-2013, 06:34 AM   #2
Registered: Jan 2013
Location: France
Distribution: Slackware 14.1 32 bits
Posts: 211

Rep: Reputation: 56

did you run

 # ldconfig
In order to update your libs links ?
Old 09-27-2013, 07:10 AM   #3
LQ Newbie
Registered: Jun 2011
Distribution: Slackware 14.2 Slackware64 14.2
Posts: 23

Rep: Reputation: Disabled
I think a forgotten ldconfig command in this case is not the reason that gtk3 libs are not found though it is always a good idea. As I understand gtk and co. test existance of packages not by linking to them but by looking for the corresponding pkg-config file.
If you simply run configure from the official pcakages, your libs will be installded under /usr/local whereas the system looks for pkg-config files only under /usr . There are two possibilities to overcome this:

1) set the environment variable PKG_CONFIG_PATH to point to the appropriate directory under /usr/local , e.g.
/usr/local/lib/pkg-config and run configure again

or, strongly recommended

2) get the slackbuildscripts for gtk3 and gtkmm3 from for your slackware version and build
your own packages, which you can install afterward
1 members found this post helpful.
Old 09-27-2013, 09:03 AM   #4
LQ Newbie
Registered: Sep 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
thanks for the replies
i will test these solutions this evening/night and make you know afterward
Old 09-27-2013, 09:33 AM   #5
LQ Newbie
Registered: Jun 2011
Distribution: Slackware 14.2 Slackware64 14.2
Posts: 23

Rep: Reputation: Disabled
Hello again,

something I forgot to mention: If you are using the slackbuild scripts, take a look at the dependencies that are mentioned there and build / install them first. For each dependencies you can find a respective slackbuild script.
Before installing any new package, be sure to remove your installed version under /usr/local. I'm not sure, if gtk supports
make uninstall
If not, you should at least delete the libraries under /usr/local/lib and teh header files under /usr/local/include manually. Having two versions of the same library installed may lead to strange results as I can tell from my own experience... .
Old 10-23-2013, 10:50 AM   #6
LQ Newbie
Registered: Sep 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
sorry for the delayed response,
i finally solved by using the packages from the slackbuilds site


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware- GTK 3 with GTKMM 3 and cairo - some problems! PeterUK Slackware 3 05-06-2013 10:00 AM
Choosing Gtkmm or Gtk# under ubuntu Puneet Jindal Linux - Newbie 3 01-03-2011 07:36 AM
gtkmm checkmenuitem Gtk-CRITICAL **: gtk_check_menu_item_set_active: assertion `GTK_ aw_wolfe Programming 2 08-07-2008 06:36 AM
GTKmm or GTK+ ??? fei Programming 2 08-29-2005 12:56 AM
Installing gtkmm from the sources lord_ruyk Linux - Software 0 12-11-2003 04:01 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration