Help on compilation of gtk 2.10.14 please - Suse

This is a discussion on Help on compilation of gtk 2.10.14 please - Suse ; Hi! I am trying to compile gtk+-2.10.14 on my SuSE 10.1 box because the repositories offer only 2.10.10 or 2.11.6 as the last two versions. The reason is the functionality of GIMP 2.4.-rc1 which requires a gtk library of 2.10.13 ...

+ Reply to Thread
Results 1 to 10 of 10

Thread: Help on compilation of gtk 2.10.14 please

  1. Help on compilation of gtk 2.10.14 please

    Hi!

    I am trying to compile gtk+-2.10.14 on my SuSE 10.1 box because the
    repositories offer only 2.10.10 or 2.11.6 as the last two versions.

    The reason is the functionality of GIMP 2.4.-rc1 which requires a gtk
    library of 2.10.13 or higher and the sound editor "Audacity". Audacity does
    not work with 2.11.6 and cannot be compiled against it as well.

    But both programs can work with 2.10.13 or 2.10.14.

    The configuration works apparently fine. Could someone with a better
    knowledge than I please have a look at the attached config.log file?

    The make command terminates with an error:

    gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"Gdk\" -DGDK_COMPILATION -I../.. -I../../gdk -I../../gdk -DGDK_PIXBUF_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/X11R6/include -I/usr/X11R6/include -g -O2 -Wall -MT
    gdkcursor-x11.lo -MD -MP -MF .deps/gdkcursor-x11.Tpo -c
    gdkcursor-x11.c -fPIC -DPIC -o .libs/gdkcursor-x11.o
    gdkcursor-x11.c:34:33: error: X11/Xcursor/Xcursor.h: No such file or
    directory
    gdkcursor-x11.c: In function 'IA__gdk_cursor_get_image':
    gdkcursor-x11.c:341: error: 'XcursorImages' undeclared (first use in this
    function)
    gdkcursor-x11.c:341: error: (Each undeclared identifier is reported only
    once
    gdkcursor-x11.c:341: error: for each function it appears in.)
    gdkcursor-x11.c:341: error: 'images' undeclared (first use in this function)
    gdkcursor-x11.c:342: error: 'XcursorImage' undeclared (first use in this
    function)
    gdkcursor-x11.c:342: error: 'image' undeclared (first use in this function)
    gdkcursor-x11.c:355: warning: implicit declaration of
    function 'XcursorGetDefaultSize'
    gdkcursor-x11.c:356: warning: implicit declaration of
    function 'XcursorGetTheme'
    gdkcursor-x11.c:356: warning: assignment makes pointer from integer without
    a cast
    gdkcursor-x11.c:361: warning: implicit declaration of
    function 'XcursorLibraryLoadImages'
    gdkcursor-x11.c:364: warning: implicit declaration of
    function 'XcursorShapeLoadImages'
    gdkcursor-x11.c:393: warning: implicit declaration of
    function 'XcursorImagesDestroy'
    gdkcursor-x11.c: In function '_gdk_x11_cursor_update_theme':
    gdkcursor-x11.c:418: warning: implicit declaration of
    function 'XcursorLibraryLoadCursor'
    gdkcursor-x11.c:421: warning: implicit declaration of
    function 'XcursorShapeLoadCursor'
    gdkcursor-x11.c: In function 'IA__gdk_x11_display_set_cursor_theme':
    gdkcursor-x11.c:486: warning: assignment makes pointer from integer without
    a cast
    gdkcursor-x11.c:496: warning: implicit declaration of
    function 'XcursorSetTheme'
    gdkcursor-x11.c:498: warning: implicit declaration of
    function 'XcursorSetDefaultSize'
    gdkcursor-x11.c: At top level:
    gdkcursor-x11.c:531: error: expected '=', ',', ';', 'asm' or '__attribute__'
    before '*' token
    gdkcursor-x11.c: In function 'IA__gdk_cursor_new_from_pixbuf':
    gdkcursor-x11.c:616: error: 'XcursorImage' undeclared (first use in this
    function)
    gdkcursor-x11.c:616: error: 'xcimage' undeclared (first use in this
    function)
    gdkcursor-x11.c:630: warning: implicit declaration of
    function 'create_cursor_image'
    gdkcursor-x11.c:631: warning: implicit declaration of
    function 'XcursorImageLoadCursor'
    gdkcursor-x11.c:632: warning: implicit declaration of
    function 'XcursorImageDestroy'
    gdkcursor-x11.c: In function 'IA__gdk_display_supports_cursor_alpha':
    gdkcursor-x11.c:712: warning: implicit declaration of
    function 'XcursorSupportsARGB'
    make[4]: *** [gdkcursor-x11.lo] Fehler 1
    make[4]: Leaving directory `/home/oliver/Update/gtk+-2.10.14/gdk/x11'
    make[3]: *** [all-recursive] Fehler 1
    make[3]: Leaving directory `/home/oliver/Update/gtk+-2.10.14/gdk'
    make[2]: *** [all] Fehler 2
    make[2]: Leaving directory `/home/oliver/Update/gtk+-2.10.14/gdk'
    make[1]: *** [all-recursive] Fehler 1
    make[1]: Leaving directory `/home/oliver/Update/gtk+-2.10.14'
    make: *** [all] Fehler 2

    I have already looked into the missing X11/Xcursor/Xcursor.h, tried to find
    with YaST what could provide it, but I was not successful.

    I would appreciate any help!

    Oliver

    _________________________
    SuSE 10.1
    Registered Linux user #287760
    http://counter.li.org


  2. Re: Help on compilation of gtk 2.10.14 please

    On Sep 6, 11:53 am, Oliver Cromwell wrote:
    > Hi!
    >


    SNIP!!

    >
    > I have already looked into the missing X11/Xcursor/Xcursor.h, tried to find
    > with YaST what could provide it, but I was not successful.
    >
    > I would appreciate any help!
    >
    > Oliver
    >


    Package xorg-x11-devel is what you are missing. There may be others
    as well (I did not plough through the rest of your errors) but they
    will all be '-devel' packages.


  3. Re: Help on compilation of gtk 2.10.14 please

    Vlad_Inhaler wrote:

    > Package xorg-x11-devel is what you are missing.


    Actually, that is installed. Hence it must be something else :-(
    --
    _________________________
    SuSE 10.1
    Registered Linux user #287760
    http://counter.li.org

  4. Re: Help on compilation of gtk 2.10.14 please

    On Sep 6, 1:02 pm, Oliver Cromwell wrote:
    > Vlad_Inhaler wrote:
    > > Package xorg-x11-devel is what you are missing.

    >
    > Actually, that is installed. Hence it must be something else :-(


    /usr/X11R6/include/X11/Xcursor/Xcursor.h
    belongs to that package. Does that file exist on your system? I have
    just looked at the i586 and the x86_64 rpms for xorg-x11-
    devel-6.9.0-48 on the 10.1 install dvd.
    I have that package installed (the update server has no newer version
    for 10.1) and that file *does* exist for me. If the file exists on
    your system then your 'make' is looking in the wrong place. I looked
    at the 'gcc' line you supplied and '-I/usr/X11R6/include' combined
    with the 'X11/Xcursor/Xcursor.h: No such file or directory' seem to
    indicate that things are set up correctly and that the file is simply
    missing.


  5. Re: Help on compilation of gtk 2.10.14 please

    I searched for Xcursor.h with YaST, looking what provides this. It is the
    xorg-x11-debuginfo package providing it
    in /usr/src/debug/xc/exports/include/X11/Xcursor/Xcursor.h whereas this is
    actually a link to /usr/src/debug/xc/lib/Xcursor. The simple devel-package
    does not seem to have it.

    Then I put a symbolic link of this Xcursor-drectory into the X11 directories
    I saw:

    /usr/X11 resp.
    /usr/X11R6

    But I didn't see the /usr/X11R6/include/X11 you just mentioned.

    After putting a link there, the error message was:
    X11/extensions/Xrandr.h: No such file or directory

    All right. New file. Looked for it. Found it
    in /usr/src/debug/xc/exports/include/X11/extensions/Xrandr.h . The
    X11/extensions directory already existed so I only linked the missing files
    and it seems to run now :-)

    Thanks for pointing me to the correct directory!

    Oliver

    Vlad_Inhaler wrote:

    > /usr/X11R6/include/X11/Xcursor/Xcursor.h
    > belongs to that package. Does that file exist on your system? I have
    > just looked at the i586 and the x86_64 rpms for xorg-x11-
    > devel-6.9.0-48 on the 10.1 install dvd.
    > I have that package installed (the update server has no newer version
    > for 10.1) and that file *does* exist for me. If the file exists on
    > your system then your 'make' is looking in the wrong place. I looked
    > at the 'gcc' line you supplied and '-I/usr/X11R6/include' combined
    > with the 'X11/Xcursor/Xcursor.h: No such file or directory' seem to
    > indicate that things are set up correctly and that the file is simply
    > missing.


    --
    _________________________
    SuSE 10.1
    Registered Linux user #287760
    http://counter.li.org

  6. Re: Help on compilation of gtk 2.10.14 please

    One other path-problem occurred when trying to build a rpm with
    checkinstall: it looked for files in the directory

    /usr/local/lib/gtk-2.0/2.10.0/immodules/

    but this is with SuSE in

    /usr/lib/gtk-2.0/2.10.0/immodules/

    Why can't they stick with the mostly used file structure???

  7. Re: Help on compilation of gtk 2.10.14 please

    On Sep 6, 2:39 pm, Oliver Cromwell wrote:
    > One other path-problem occurred when trying to build a rpm with
    > checkinstall: it looked for files in the directory
    >
    > /usr/local/lib/gtk-2.0/2.10.0/immodules/
    >
    > but this is with SuSE in
    >
    > /usr/lib/gtk-2.0/2.10.0/immodules/
    >
    > Why can't they stick with the mostly used file structure???


    Where did you compile this package? I think the correct place is
    somewhere under /usr/local.
    As far as I can see, the SuSE placing is correct. Why should an
    installed package be putting its libraries under /usr/local/whatever?
    That is for updates such as yours. Whatever . . .


  8. Re: Help on compilation of gtk 2.10.14 please

    Vlad_Inhaler wrote:

    > Where did you compile this package? I think the correct place is
    > somewhere under /usr/local.


    Yes, there (/usr/local/lib) the installer looks for some files

    > As far as I can see, the SuSE placing is correct.


    No, SuSE puts the stuff in /usr/lib and skiping the -/local/-

    > Why should an
    > installed package be putting its libraries under /usr/local/whatever?


    As you said: /usr/local/ is correct and so probably would be /usr/local/lib/

    The question is, why does SuSE uses regularly different paths to files?

    > That is for updates such as yours. Whatever . . .


    Thanks!
    --
    _________________________
    SuSE 10.1
    Registered Linux user #287760
    http://counter.li.org

  9. Re: Help on compilation of gtk 2.10.14 please

    On Thu, 6 Sep 2007, Oliver Cromwell wrote:-

    >Vlad_Inhaler wrote:


    >> As far as I can see, the SuSE placing is correct.

    >
    >No, SuSE puts the stuff in /usr/lib and skiping the -/local/-


    Yes, it is correct. Have a look at "man hier"

    >> Why should an
    >> installed package be putting its libraries under /usr/local/whatever?

    >
    >As you said: /usr/local/ is correct and so probably would be /usr/local/lib/


    Locally compiled and installed applications should go under /usr/local .
    You're building an RPM so, even though it's still being installed on the
    system that was used to build it, it should really be built to install
    under /usr .

    >The question is, why does SuSE uses regularly different paths to files?


    Read "man hier" and then you'll see the reason for their choice of
    paths.


    Regards,
    David Bolt

    --
    Member of Team Acorn checking nodes at 100 Mnodes/s: www.distributed.net
    RISC OS 3.11 | SUSE 10.0 32bit | SUSE 10.1 32bit | openSUSE 10.2 32bit
    RISC OS 3.6 | SUSE 10.0 64bit | SUSE 10.1 64bit | openSUSE 10.2 64bit
    TOS 4.02 | SUSE 9.3 32bit | | openSUSE 10.3b1 32bit

  10. Re: Help on compilation of gtk 2.10.14 please

    Oliver Cromwell schrieb:
    > Hi!
    >
    > I am trying to compile gtk+-2.10.14 on my SuSE 10.1 box because the
    > repositories offer only 2.10.10 or 2.11.6 as the last two versions.
    >
    > The reason is the functionality of GIMP 2.4.-rc1 which requires a gtk
    > library of 2.10.13 or higher and the sound editor "Audacity". Audacity does
    > not work with 2.11.6 and cannot be compiled against it as well.
    >
    > But both programs can work with 2.10.13 or 2.10.14.
    >
    > The configuration works apparently fine. Could someone with a better
    > knowledge than I please have a look at the attached config.log file?
    >
    > The make command terminates with an error:
    >
    > gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"Gdk\" -DGDK_COMPILATION -I../.. -I../../gdk -I../../gdk -DGDK_PIXBUF_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/X11R6/include -I/usr/X11R6/include -g -O2 -Wall -MT
    > gdkcursor-x11.lo -MD -MP -MF .deps/gdkcursor-x11.Tpo -c
    > gdkcursor-x11.c -fPIC -DPIC -o .libs/gdkcursor-x11.o
    > gdkcursor-x11.c:34:33: error: X11/Xcursor/Xcursor.h: No such file or


    you should have a careful look at the LIBS in the corresponding
    Makefile. This one line should compile with:

    -L/usr/X11R6/lib -lXrender -lX11 -lXext added.

    BTW. Xcursor.h should be located at

    /usr/X11R6/include/X11/Xcursor/Xcursor.h
    ^^^^^^^^^^^^^^^^^^
    this path corresponds to the compiler-Flag -I/usr/X11R6/include.

    HTH Martin

+ Reply to Thread