Stop data retention! Click here & act! Are you a webmaster and want to participate? Here you can find all necessary material for your website - Willst du auch an der Aktion teilnehmen? Hier findest du alle relevanten Infos und Materialien:
Chris Karakas Online Forum Index Karakas Online
 FAQFAQ   Forum SearchForum Search   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Binary and source RPM packages for GTK+ (gtk2) in SuSE 9.0



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
   Chris Karakas Online Forum Index -> Computer Graphics Forum RSS Feed of this Forum
Share this page: These icons link to social bookmarking sites where readers can share and discover new web pages.Digg  del.icio.us  tc.eserver.org  Blinklist  Furl  Reddit  Blogmarks  Magnolia  Sphere  Yahoo!  Google  Windows Live  Technorati  Blue Dot  Simpy  Newsvine  Stumble Upon  co.mments.com  Blinkbits  BlogMemes  Connotea  View previous topic :: View next topic  
Author Message
chris
Dark Lord of the Sith


Joined: 10 May 2003
Posts: 6267
Location: Outer Space

PostPosted: Wed Aug 09, 2006 10:18 am    Post subject: Binary and source RPM packages for GTK+ (gtk2) in SuSE 9.0
Reply with quote

GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off projects to complete application suites.

GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties.

GTK+ is a fast and versatile library is used all over the world for all GNOME applications, the GIMP, and several others. Originally it was written for the GIMP and hence has the name Gimp ToolKit. Many people like it because it is small, efficient, and very configurable.

"gtk2" is the package name for GTK+ version 2 in SuSE. For GTK 2.6.4, I have created binary and source RPM packages for SuSE 9.0:

Source RPMs:




Binary RPMs:



Use the command

Code:

rpm -Uhv xxx.rpm


to install the binary RPMs. I used the build package of SuSE to compile my own source RPMs from source, as described for example in Compiling SuSE Source Packages. Note that up to and including version 9.0, SuSE uses the usedforbuild string on a comment line of the spec file to list all needed files for a successful compilation of the package.

The packages are build for SuSE 9.0. To rebuild a package for your own version of (SuSE) Linux, use the source RPMs and the build and/or rpmbuild commands, as described in How to compile an older version for a newer system in RPM.

Some notes on required packages, please read carefully:

As I am using a fairly old SuSE installation (SuSE 9.0), it was clear that some needed packages would be outdated. The solution I chose was to install them from a SuSE 9.3 DVD with the above command:

Code:

rpm -Uhv /path-to-DVD/suse/i586/xxx.rpm


Here are some of the obstacles I encountered during compilation:

For one, I was not able to install gtk2-2.6.4-6 directly from the SuSE 9.3 DVD (that would be the easiest option, as you may already have guessed, but...):

Code:

rpm -Uhv /cdrw/suse/i586/gtk2-2.6.4-6.i586.rpm
error: Failed dependencies:
        libXfixes.so.3 is needed by gtk2-2.6.4-6
        libXinerama.so.1 is needed by gtk2-2.6.4-6
        gtk2 = 2.2.3 is needed by (installed) gtk2-devel-2.2.3-27


(from now, on, /cdrw will be the location of my CD-RW drive). So I tried to find which package provided libXfixes.so.3 and libXinerama.so.1. As it turned out, after a search on the Net, they are both provided by xorg-x11-libs-xxx. But I am not using Xorg! I use XFree86 - remember, this is still SuSE 9.0...

So there was no other alternative than to compile the package myself.

Further down the road, I had to install the following packages from the SuSE 9.3 DVD:

  • atk-1.9.1-4.i586.rpm
  • atk-devel-1.9.1-4.i586.rpm
  • freetype2-2.1.9-4.i586.rpm (optional, but recommended)
  • freetype2-devel-2.1.9-4.i586.rpm (optional, but recommended)
  • glib2-2.6.3-4.i586.rpm
  • glib2-devel-2.6.3-4.i586.rpm
  • glib2-doc-2.6.3-4.i586.rpm (optional, but recommended)
  • pango-1.8.1-4.i586.rpm
  • pango-devel-1.8.1-4.i586.rpm
  • pango-doc-1.8.1-4.i586.rpm (optional, but recommended)


The freetype2 packages need not be updated, strictly speaking. However you are going to get a harsh warning (and a refusal to run!) from GIMP, if you compile, install and try to run it with the SuSE 9.0 freetype2 version. So better upgrade it right now. Wink

To compile gtk2 on a SuSE 9.0 system, you need a "base Linux system" comprising of the following packages:

  • fillup
  • attr
  • acl
  • aaa_base
  • filesystem
  • autoconf
  • automake
  • bash
  • bind-utils
  • binutils
  • bison
  • bzip2
  • cpio
  • cpp
  • cracklib
  • cyrus-sasl
  • db
  • devs
  • diffutils
  • e2fsprogs
  • file
  • coreutils
  • findutils
  • flex
  • gawk
  • gcc
  • gdbm
  • gdbm-devel
  • gettext
  • glibc
  • glibc-devel
  • glibc-locale
  • gpm
  • grep
  • groff
  • gzip
  • kbd
  • less
  • libgcc
  • libstdc++
  • libtool
  • libxcrypt
  • zlib
  • m4
  • make
  • man
  • mktemp
  • modutils
  • ncurses
  • ncurses-devel
  • net-tools
  • netcfg
  • pam
  • pam-devel
  • pam-modules
  • patch
  • perl
  • permissions
  • ps
  • rcs
  • readline
  • rpm
  • sed
  • sendmail
  • sharutils
  • shadow
  • strace
  • syslogd
  • sysvinit
  • tar
  • texinfo
  • timezone
  • unzip
  • util-linux
  • vim
  • zlib-devel


AND also the following "extra packages", needed specifically by gtk2:

  • tk
  • atk
  • atk-devel
  • autoconf
  • automake
  • binutils
  • expat
  • fontconfig
  • fontconfig-devel
  • freetype2
  • freetype2-devel
  • gcc-c++
  • gdbm
  • gettext
  • glib2
  • glib2-devel
  • gnome-filesystem
  • gtkdoc
  • libjpeg
  • libpng
  • libpng-devel
  • libstdc++
  • libstdc++-devel
  • libtiff
  • libtool
  • pango
  • pango-devel
  • perl
  • pkgconfig
  • rpm
  • XFree86-devel
  • XFree86-libs
  • XFree86-Mesa
  • XFree86-Mesa-devel
  • mesaglut
  • mesaglut-devel


Install these, take care to upgrade the ones I showed you above with those from a SuSE 9.3 DVD and you should up and running fine! Enjoy! Very Happy

Arrow PS.: Of course, you might ask why on earth go into that trouble and not upgrade the system completely? Well, because, in my case, each time I upgrade my SuSE system I get 80 (eighty!) emails telling me that I have to look at my old configuration file, which was saved with the .rpmsave or .rpmold ending, and copy any special changes to the new one. It usually takes me 2-3 weeks *full time* to iron all this out. Compare this to the 2 days it cost me to upgrade GTK2. So if you are asking such questions, you are probably not using your computer for more than letter writing and surfing... Wink
_________________
Regards

Chris Karakas
www.karakas-online.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Share this page: These icons link to social bookmarking sites where readers can share and discover new web pages.Digg  del.icio.us  tc.eserver.org  Blinklist  Furl  Reddit  Blogmarks  Magnolia  Sphere  Yahoo!  Google  Windows Live  Technorati  Blue Dot  Simpy  Newsvine  Stumble Upon  co.mments.com  Blinkbits  BlogMemes  Connotea 
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
   Chris Karakas Online Forum Index -> Computer Graphics Forum
Page 1 of 1
This page contains valid HTML 4.01 Transitional - click here to check it!
This page contains a valid CSS - click here to check it!

 

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group