LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 06-11-2013, 12:49 PM   #1
arcctgx
LQ Newbie
 
Registered: Mar 2006
Location: EU
Distribution: Slackware
Posts: 9

Rep: Reputation: 0
I can't compile GTK+2 applications on Slackware64-14.0


I recently installed Slackware64-14.0 on my new laptop. I'm using Xfce 4.10 as my DE, and I would like to compile some additional programs for my desktop. I first ran into this trouble when trying to compile Tilda terminal from a SlackBuild script I got from SBo:
Code:
gcc -DLOCALEDIR=\"/usr/share/locale\" -DDATADIR=\"/usr/share\" -DHAVE_CONFIG_H -I. -I..      -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include      -O2 -fPIC -MT tilda-callback_func.o -MD -MP -MF .deps/tilda-callback_func.Tpo -c -o tilda-callback_func.o `test -f 'callback_func.c' || echo './'`callback_func.c
In file included from ./tilda_window.h:21:0,
                 from ./callback_func.h:20,
                 from callback_func.c:23:
./tilda_terminal.h:22:21: fatal error: gtk/gtk.h: No such file or directory
compilation terminated.
So it seems the headers are missing? I have three GTK toolkits installed (versions 1.2.10, 2.24.10 and 3.4.4). configure script did not complain that the GTK2 wasn't there. The headers seem to be present:
Code:
> locate gtk.h | sort
/usr/include/canberra-gtk.h
/usr/include/gtk-1.2/gtk/gtk.h
/usr/include/gtk-2.0/gtk/gtk.h
/usr/include/gtk-3.0/gtk/gtk.h
/usr/include/libaudgui/libaudgui-gtk.h
/usr/include/libgladeui-1.0/gladeui/glade-gtk.h
/usr/include/pygtk-2.0/pygtk/pygtk.h
(...)
I googled some suggestions that my installation of GTK2 may be corrupted. I did "slackpkg reinstall gtk+2", but the problem persists. What's more, I noticed the same thing when trying to compile gpicview: compilation stops with an error regarding missing gtk.h.

I'm quite confused and have no idea what is missing. Could anyone assist me in finding a solution?
 
Old 06-11-2013, 01:28 PM   #2
mancha
Member
 
Registered: Aug 2012
Posts: 250

Rep: Reputation: Disabled
That gcc line is missing a lot of include paths.

Can you post your config.log?
 
1 members found this post helpful.
Old 06-11-2013, 06:01 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,217

Rep: Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378
Quote:
gtk/gtk.h: No such file or directory
Quote:
/usr/include/gtk-2.0/gtk/gtk.h
"pkg-config" takes care of finding the include files.
( /usr/bin/pkgconfig >>> /usr/lib64/pkgconfig/gtk+-2.0.pc ).

No issues here with a tilda.SlackBuild / Slackware64 - 14.

Could it be a pkg-config error ?
You could try with a reinstall : slackware64/d/pkg-config
ftp://ftp.slackware.org.uk/slackware...5-x86_64-1.txz

-
 
1 members found this post helpful.
Old 06-11-2013, 11:59 PM   #4
tuxbg
Member
 
Registered: Sep 2012
Location: Bulgaria,Varna
Distribution: Slackware64
Posts: 243

Rep: Reputation: Disabled
Are you use minimal installation ?

Code:
pkg-config --cflags gtk+-2.0
 
1 members found this post helpful.
Old 06-12-2013, 04:49 AM   #5
arcctgx
LQ Newbie
 
Registered: Mar 2006
Location: EU
Distribution: Slackware
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for your replies.

My config.log is quite long, so I submitted it to pastebin: config.log.

I didn't use the "full" installation option, so something could be missing. I suspect this could be the cause of the problem. But I wouldn't call my installation "minimal".

I'll try to reinstall pkg-config, make sure the .pc files are present and post the output of "pkg-config --cflags gtk+-2.0" when I get back home.
 
Old 06-12-2013, 01:49 PM   #6
arcctgx
LQ Newbie
 
Registered: Mar 2006
Location: EU
Distribution: Slackware
Posts: 9

Original Poster
Rep: Reputation: 0
OK, the problem is solved.

I ran the command "pkg-config --cflags gtk+-2.0", and it told me exactly what was missing. Turns out I didn't install renderproto, kbproto and libpthread-stubs. After installing those packages compilation went smoothly. Thanks for pointing me in the right direction.
 
Old 06-12-2013, 04:46 PM   #7
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 486

Rep: Reputation: 79
Thumbs up

arcctgx,

Thanks for letting me know about Tilda. It is now my default terminal for rtorrent =]
Attached Images
File Type: jpeg shoshots.jpeg (115.9 KB, 11 views)
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot compile libvirt on slackware64 13.1 hopbyhop Slackware 9 04-29-2011 03:51 PM
[SOLVED] Can not run applications under slackware64 13.1 lomex5 Slackware 4 09-24-2010 11:47 PM
Inhibit GTK verbose messages when running GTK/Gnome applications from terminal d1s4st3r Linux - Software 1 11-10-2009 10:33 PM
Backporting GTK+-2 applications to GTK-1.2 gnashley Programming 0 02-22-2007 04:25 AM
Cannot compile / run gtk related applications LazyP Linux - Software 2 12-25-2005 04:51 PM


All times are GMT -5. The time now is 07:23 AM.

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