Results 1 to 3 of 3

Thread: Cmake can't find gtk.h

  1. #1

    Default Cmake can't find gtk.h

    I'am trying to compile kde-gtk-config on OpenSuse 12.2 but i'am getting this error:

    make
    [ 0%] Built target kcm_cgc_automoc
    [ 82%] Built target kcm_cgc
    [ 88%] Building C object gtkproxies/CMakeFiles/gtk_preview.dir/preview.o
    /home/xpete/kde/kde-gtk-config/gtkproxies/preview.c:23:21: fatal error: gtk/gtk.h: No such file or directory
    compilation terminated.
    make[2]: *** [gtkproxies/CMakeFiles/gtk_preview.dir/preview.o] Error 1
    make[1]: *** [gtkproxies/CMakeFiles/gtk_preview.dir/all] Error 2
    make: *** [all] Error 2

    gtk2-dev and gtk3-dev are instaled and gtk.h is avalable at
    /usr/include/gtk-2.0/gtk/gtk.h

    I guess the problem is at
    /usr/share/cmake/Modules/FindGTK2.cmake
    but I can't fix it.

    anything else I'am missing?
    how can i fix this?

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,121
    Blog Entries
    15

    Default Re: Cmake can't find gtk.h

    Quote Originally Posted by xpetept
    I'am trying to compile 'kde-gtk-config'
    (https://projects.kde.org/projects/pl...kde-gtk-config) on
    OpenSuse 12.2 but i'am getting this error:

    make
    [ 0%] Built target kcm_cgc_automoc
    [ 82%] Built target kcm_cgc
    [ 88%] Building C object
    gtkproxies/CMakeFiles/gtk_preview.dir/preview.o
    /home/xpete/kde/kde-gtk-config/gtkproxies/preview.c:23:21: fatal error:
    gtk/gtk.h: No such file or directory
    compilation terminated.
    make[2]: *** [gtkproxies/CMakeFiles/gtk_preview.dir/preview.o] Error 1
    make[1]: *** [gtkproxies/CMakeFiles/gtk_preview.dir/all] Error 2
    make: *** [all] Error 2

    gtk2-dev and gtk3-dev are instaled and gtk.h is avalable at
    /usr/include/gtk-2.0/gtk/gtk.h

    I guess the problem is at
    /usr/share/cmake/Modules/FindGTK2.cmake
    but I can't fix it.

    anything else I'am missing?
    how can i fix this?

    Hi
    Is pkgconfig installed? There are kde helper macros that run when
    building as an rpm...
    A user has it built here;
    https://build.opensuse.org/package/s...ct=home%3Aadra

    --
    Cheers Malcolm °¿° (Linux Counter #276890)
    openSUSE 12.2 (x86_64) Kernel 3.4.6-2.10-desktop
    up 1:37, 3 users, load average: 0.21, 0.11, 0.13
    CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU


  3. #3

    Default Re: Cmake can't find gtk.h

    It compiles now... and pkgconfig was already installed.
    I guess it was some other package missing.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •