LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   gtk 3 and gtkmm 3 installation from sources (http://www.linuxquestions.org/questions/slackware-14/gtk-3-and-gtkmm-3-installation-from-sources-4175478725/)

foray 09-27-2013 05:25 AM

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:

Code:

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

Nh3xus 09-27-2013 07:34 AM

Hi,

did you run

Code:

# ldconfig
In order to update your libs links ?

joghi 09-27-2013 08:10 AM

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 www.slackbuilds.org for your slackware version and build
your own packages, which you can install afterward

foray 09-27-2013 10:03 AM

thanks for the replies :)
i will test these solutions this evening/night and make you know afterward

joghi 09-27-2013 10:33 AM

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
Code:

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... .

foray 10-23-2013 11:50 AM

sorry for the delayed response,
i finally solved by using the packages from the slackbuilds site
thanks


All times are GMT -5. The time now is 06:19 PM.