LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   ibus compile error (http://www.linuxquestions.org/questions/slackware-14/ibus-compile-error-4175461532/)

yasu 05-11-2013 07:09 AM

ibus compile error
 
Hello, all.

I have encountered a issue.
I just installed ibus package from slackbuild.
But following issue is occured.

error
==============================
...
CC test_stress-test-client.o
test-client.c:23:21: fatal error: gtk/gtk.h: No such file or directory
compilation terminated.
make[2]: *** [test_stress-test-client.o] Error 1
make[2]: Leaving directory `/tmp/SBo/ibus-1.3.9/bus'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/ibus-1.3.9'
make: *** [all] Error 2
...
==============================

I have installed all gtk library.

results slackpkg search command
=================================
The list below shows all packages with name matching "gtk".

[?25h[ installed ] - gtk+-1.2.10-i486-5
[ installed ] - gtk+2-2.24.10-i486-2
[ installed ] - gtk+3-3.4.4-i486-1
[ installed ] - gtkspell-2.0.16-i486-1
[ installed ] - pygtk-2.24.0-i486-1

You can search specific files using "slackpkg file-search file".
=================================

What require to install ibus package?

gmgf 05-11-2013 07:31 AM

probably need also pygobject pycairo

yasu 05-11-2013 09:01 AM

Thank you for gmgf reply.

I check pycairo package.
My machine have installed pycairo packeage.

gmgf 05-11-2013 10:44 AM

probably, also pyxdg.

yasu 05-15-2013 09:16 AM

Thanks gmgf.

I have installed pyxdg package.


sample code
====================
#include<gtk/gtk.h>
int main() {
return 0;
}

====================


library path is nothing.
===============================
$ gcc `pkg-config --libs gtk+-2.0` test.c -o test
test.c:1:20: fatal error: gtk/gtk.h: No such file or directory
compilation terminated.
===============================

refer url: http://www.linuxquestions.org/questi...ectory-795475/

pan64 05-15-2013 10:15 AM

you will need the dev package (or probably more): package_name-dev will give you the headers

gmgf 05-15-2013 10:39 AM

gtk.h is in gtk+2 and gtk+3, package.

these package are also needed.

at-spi2-atk,at-spi2-core,atk,bzip2,cairo,cxxlibs,dbus,dconf,expat,fontconfig,freetype,gcc,gdk-pixbuf2,glib2,gtk+2,gtk+3,libICE,libSM,libX11,libXau,libXcomposite,libXcursor,libXdamage,libXdmcp,li bXext,libXfixes,libXi,libXinerama,libXrandr,libXrender,libffi,libpng,libxcb,pango,pixman,python,util-linux,zlib


All times are GMT -5. The time now is 04:42 PM.