GT Portal . Forums . Official Tutorials . Art Galleries . FAQs . Search . New Posts . Contact Us Login  .  Register


GimpTalk Announcement :
Try your digital-art skills against your fellow gimpers in GIMPtalk's Biweekly Art competition !


Board index » GIMP News and Help forums » GIMP Tutorials and Tips Make Money Online . Free Image Hosting Script . Convert FLV to Cell Phone Format
Featured Tutorial : Learn how to create characters by Griatch
Search for :  


Post new topic Reply to topic   [ 27 posts ]   Go to page 1, 2  Next


Author Message
 Post subject:
PostPosted: Mon Aug 28, 2006 7:56 pm 
Offline

Joined:
Sat Aug 26, 2006 12:10 pm

Topics: 4
Posts: 16

Find User's Topics

Recently, I wrote this tutorial in German for my Web site gimpusers.de. You can view it here:
http://www.gimpusers.de/tutorials/compile-gimp-cvs-head-ubuntu-linux.html. There are also images illustrating each step and links in a box on the right side. So, please have a look at the original version.

I appreciate any comments here and of course on gimpusers.de

Original tutorial: http://www.gimpusers.de/tutorials/compile-gimp-cvs-head-ubuntu-linux.html
Translated tutorial:
[line]
In this tutorial, I want to describe how to fetch the newest GIMP version (= HEAD) from
CVS and then compile it. My work environment is Ubuntu Linux 6.06 (Dapper Drake).

  • The source code of GIMP is managed using CVS (concurrent versioning system).
    CVS makes it possible to manage modules and files in different versions (every change
    is recorded in the Changelog), set access rights etc.

    CVS can be used to save the whole source code at a certain time as a "tag" (milestone,
    release, version). For instance, the GIMP code as it was at the release time of
    GIMP 2.3.9 is accessible by the "GIMP_2_3_9" tag.

    Also, the code can be separated into different "branches" (boughs) which allows developers
    to work in different branches independently of each other. E.g., "gimp-2-2" is
    a branch and "soc-2006-vector-layers" another one. So, developers can work in
    the "gimp-2-2" branch without modifying code in the SoC branch and vice versa.

    To install the CVS client, we use this command:
    sudo apt-get install cvs
  • Then change the working directory (here: tmp in the home directory of the current
    user) and fetch the newest code from the default branch:

    [t]cd ~/tmp
    cvs -d:pserver:anonymous@anoncvs.gimp.org:/cvs/gnome -z3 co -r HEAD gimp[/t]

    Now the source code of the gimp module should reside in the directory "gimp".
  • To compile GIMP, we need some tools. We'd like use everything what is supported
    by GIMP:
    autoconf, automake1.9, libtool, make to manage the ./configure scripts and Makefiles
    gettext is needed for the GIMP translations into other languages
    pkg-config references installed libraries
    libgtk2.0-dev provides a GUI (windows, menus, buttons, ...)
    libglib2.0-dev is a helper library (for lists etc.)
    libpango1.0-dev renders text
    libatk1.0-dev provides accessibility tools (screen magnifier etc.)
    libfreetype6-dev allows us to use FreeType fonts
    fontconfig to manage fonts
    libart-2.0-dev is a library for 2D graphics manipulation
    intltool, xsltproc for XML support
    libtiff4-dev, libaa1-dev, libmng-dev, libpoppler-glib-dev, librsvg2-dev, libwmf-dev, libxpm-dev, libexif-dev, libgnomeui-dev, libgnome-keyring-dev, liblcms1-dev for various file formats and services
    gtk-doc-tools, libgtkhtml2-dev for the documentation
    python-dev, python-gtk2-dev for PythonFu

    A lot of other packages are going to be installed as dependencies:

    sudo apt-get install autoconf automake1.9 libtool make gettext pkg-config libgtk2.0-dev libglib2.0-dev libpango1.0-dev libatk1.0-dev libfreetype6-dev fontconfig libart-2.0-dev intltool xsltproc libtiff4-dev libaa1-dev libmng-dev libpoppler-glib-dev librsvg2-dev libwmf-dev libxpm-dev libexif-dev libgnomeui-dev libgnome-keyring-dev liblcms1-dev gtk-doc-tools python-dev python-gtk2-dev

    You can also install these packages using the graphical packet manager Synaptic (System / Administration / Synapic, then select packages and "Apply" changes)

    When using other distributions or older Ubuntu versions, you will have to download some packages
    and compile them manually to match the needs of GIMP. However, it is my opinion that current package
    versions are the great advantage of Ubuntu and everyone can download the newest Ubuntu release.
  • Now execute the autogen.sh script in the gimp source directory:

    cd gimp
    ./autogen.sh --disable-mmx --enable-sse


    The script creates a ./configure file and then runs it.

    Here, on my testing system (32 bit (d)chroot in Ubuntu 6.06/AMD64) I want the compiler to use
    SSE instructions instead of MMX instructions. Otherwise, I'm getting compiler errors. If your
    processor doesn't support SSE instructions, don't use the "--enable-sse" parameter.
  • The last steps:

    make
    and
    sudo make install

    Impatient people like me can use [t]nice make -j5[/t] instead of [t]make[/t]. This directs
    make to use up to 5 instances at the same time. "nice" reduces CPU priority so the system
    stays reactive. Are there errors with "make -j5", try again with the pure "make" before
    anything other - not all Makefiles support parallelisation perfectly.

    GIMP is installed to /usr/local - run and enjoy with:
    /usr/local/bin/gimp-2.3

[/line]


_________________
gimpusers.de


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 28, 2006 8:07 pm 
Offline
User avatar

Joined:
Sat Aug 13, 2005 11:25 am

Topics: 362
Posts: 4742

Find User's Topics
Dumb question, can you do this alongside an existing Gimp stable install? Or will it trash the existing installation. I am using the latest Mepis, which is based on the Ubuntu 6.0.6 release.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 28, 2006 8:08 pm 
Offline

Joined:
Sat Aug 26, 2006 12:10 pm

Topics: 4
Posts: 16

Find User's Topics
No it will not crash the existing installation, because the self-compiled gimp goes to /usr/local and the packaged version is in /usr

_________________
gimpusers.de


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 28, 2006 8:20 pm 
Offline
User avatar

Joined:
Mon Jun 13, 2005 11:15 am

Topics: 583
Posts: 7097

Find User's Topics
Now i have to try.... :h:

_________________
Image

http://www.flickr.com/photos/97844002@N00/


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 28, 2006 8:29 pm 
Offline
User avatar

Joined:
Sat Aug 13, 2005 11:25 am

Topics: 362
Posts: 4742

Find User's Topics
Well, got all the deps installed except libart2.0-dev...which apparently isn't in the repository, will do a google.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 28, 2006 8:30 pm 
Offline

Joined:
Sat Aug 26, 2006 12:10 pm

Topics: 4
Posts: 16

Find User's Topics
Oh sorry it's libart-2.0-dev (with -)!!!

_________________
gimpusers.de


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 28, 2006 8:36 pm 
Offline
User avatar

Joined:
Sat Aug 13, 2005 11:25 am

Topics: 362
Posts: 4742

Find User's Topics
Quote:
Oh sorry it's libart-2.0-dev (with -)!!!


See how you are? :w:

Turns out I already had it installed (typing in the correct name), but thanks, wouldn't have known that.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 28, 2006 8:39 pm 
Offline
User avatar

Joined:
Sat Aug 13, 2005 11:25 am

Topics: 362
Posts: 4742

Find User's Topics
Are there some stray HTML tags or something in the above post?

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 28, 2006 9:50 pm 
Offline
User avatar

Joined:
Sat Aug 13, 2005 11:25 am

Topics: 362
Posts: 4742

Find User's Topics
Works like a Champ! That jitter function on the brushes is just too cool...and a separate Colors menu (YAY!). Looks like it references the scripts and plugins file from the regular gimp install...the couple of the plugins I tried worked, but generate an error.

This is going to be interesting to play with. Thank you for the tutorial!!

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 28, 2006 10:10 pm 
Offline

Joined:
Fri Aug 18, 2006 5:49 pm

Topics: 2
Posts: 4

Find User's Topics
A makeshift would would be to deinstall the Ubuntu gimp package... you can reinstall it at any time ;)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 28, 2006 10:31 pm 
Offline
User avatar

Joined:
Sat Aug 13, 2005 11:25 am

Topics: 362
Posts: 4742

Find User's Topics
Dunno, the error messages look like they are trying to call another module and the developers have changed a name or something. Like I say, they appear to work just fine.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 05, 2006 10:16 pm 
Offline
User avatar

Joined:
Mon Jun 13, 2005 11:15 am

Topics: 583
Posts: 7097

Find User's Topics
Bump

For some reason is not possible find this tut if you don't know exactly where it is...only google could find it

_________________
Image

http://www.flickr.com/photos/97844002@N00/


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 05, 2006 10:52 pm 
Offline
User avatar

Joined:
Sat Aug 13, 2005 11:25 am

Topics: 362
Posts: 4742

Find User's Topics
Maybe clip both of them?

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 12, 2006 11:45 am 
Offline
User avatar

Joined:
Mon Jun 13, 2005 11:15 am

Topics: 583
Posts: 7097

Find User's Topics
Quote:
Maybe clip both of them?


Clayogre...i was just waiting somebody else to say it...done!

_________________
Image

http://www.flickr.com/photos/97844002@N00/


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 15, 2006 5:26 pm 
Offline
User avatar

Joined:
Mon Jul 25, 2005 4:17 pm

Topics: 35
Posts: 1161

Find User's Topics
Quote:
Dumb question, can you do this alongside an existing Gimp stable install? Or will it trash the existing installation. I am using the latest Mepis, which is based on the Ubuntu 6.0.6 release.


Yes....
change this line:
./autogen.sh --disable-mmx --enable-sse
to
/autogen.sh --disable-mmx --enable-sse --prefix=/opt/gimp-2.3

Then add this script to /usr/local/bin
Code:
#!/bin/sh

PATH=/opt/gimp-2.3/bin:$PATH
export PATH
LD_LIBRARY_PATH=/opt/gimp-2.3/lib
export LD_LIBRARY_PATH

/opt/gimp-2.3/bin/gimp-2.3 "$@"


Image

then create a launcher pointing to /usr/local/bin/gimp-2.3 and your in business... You can find the new gimp icons in /tmp/gimp/desktop of your home directory save them to a permanent home like /usr/share/pixmaps before creating your launcher... I saved the svg one it scales nicely...

swmiller6

_________________
Image
Thats right it's a Fencepost original!!! ha ha and it's all mine..


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 16, 2006 2:44 am 
Offline
User avatar

Joined:
Mon Jun 13, 2005 11:15 am

Topics: 583
Posts: 7097

Find User's Topics
Quote:
Then change the working directory (here: tmp in the home directory of the current
user)

I am stuck at a very beginning for a very dumb problem...
How i change work directory.? ...
I mean how exactly i have to do it?

(i know only a win user coul make such question..but i'm lost)

_________________
Image

http://www.flickr.com/photos/97844002@N00/


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 16, 2006 9:44 am 
Offline

Joined:
Sat Aug 26, 2006 12:10 pm

Topics: 4
Posts: 16

Find User's Topics
Its the

cd ~/tmp

command.

_________________
gimpusers.de


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 16, 2006 11:01 am 
Offline
User avatar

Joined:
Sat Aug 13, 2005 11:25 am

Topics: 362
Posts: 4742

Find User's Topics
SW...both of them work fine side by side. I have been using WindowMaker mostly, since for some reason Mepis doesn't like XFCE from the repository and I am too lazy to try and make it work. I added a WM menu entry, and it works just fine.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 16, 2006 1:25 pm 
Offline
User avatar

Joined:
Mon Jul 25, 2005 4:17 pm

Topics: 35
Posts: 1161

Find User's Topics
The example I posted is the suggested way, from gimp.org to install the dev version... But if your way works great! I love the new icons I have to read up about installing the gap though I would really like to get that working with 2.3..... This release 2.3.11 so far has been very stable IMHO..

BTW What does Mepis/XFCE have that prompts you to use that over Ubuntu/Gnome?

swmiller6

_________________
Image
Thats right it's a Fencepost original!!! ha ha and it's all mine..


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 16, 2006 3:00 pm 
Offline
User avatar

Joined:
Sat Aug 13, 2005 11:25 am

Topics: 362
Posts: 4742

Find User's Topics
Quote:
BTW What does Mepis/XFCE have that prompts you to use that over Ubuntu/Gnome?



I can't get Ubuntu to install on my system, the install CD's always hang during boot (I have tried Kubuntu, Xubuntu -which would have been nice, since it is Ubuntu with XFCE)...all do the same thing. I can't get to the beginning installation dialog.). I think it doesn't like trying to figure out between the onboard intel 810 graphics chip and the aftermarket nVidia card I have. There are a couple of other distros (anything that uses SAX), that seem to have the same problem. The latest Mepis, in spite of being Ubuntu based, does not seem to have that problem.

As for Gnome...I hate it. Ugly....BUGGY...klunky UI (I hate the fact that Nautilus opens a new window every time I click a folder...very annoying, after a few clicks you are up to your eyeballs in windows...just like...well...Windows!. I imagine there is some way to make it open in the same window or get a two pane file browser, but I haven't figured it out and haven't wanted to waste the time when Konqueror works so much better...AND has a built in console emulator.) On top of that, Gnome likes to take over other desktops. I had it very briefly installed with Slackware (and by the way, all Slack distros after 10.0 don't even come with Gnome, because of the stability issues), anyway, Gnome took over both KDE and XFCE. I had a KDE taskbar with a Gnome desktop...if I right clicked on the desktop, I got the Gnome menu instead of the KDE menu. Ditto for XFCE, had the XFCE taskbar, Gnome desktop. Did a complete re-install without Gnome.

There are only two things I like about Gnome. Gedit and Grip, and that's about it.

I really like XFCE, boots fairly fast (tho not as fast as Fluxbox), nice, clean desktop without all the icons, it is a good compromise between the heavyweights like KDE/Gnome and the lightweights like Fluxbox, OpenBox, etc.. I like being able to right click on the desktop and get the application menu without having to click an icon on the taskbar. I like being able to switch desktops with the mousewheel. One of these days I may break down and try to install it again.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 16, 2006 5:08 pm 
Offline
User avatar

Joined:
Mon Jul 25, 2005 4:17 pm

Topics: 35
Posts: 1161

Find User's Topics
Well if you do try it again and I don't know what versions you tried but the 2.14 was an improvement over 2.12 IMO to change nautilus from spatial to location bar type browser open gconfig go to apps/nautilus/preferences and check always_use_browser & always_use_location_entry.... {edit}opps and of course check no_spatial.. actually I believe this is now checked by default in 2.14{/edit}
I have heard thunar is faster then nautilus and can install it from the repos but I am afraid of breaking a system that has taken me quite a bit of time to set up....lol It seems the laptop I bought has the least supported hardware you can have for linux system(leave it to me to find the worst possible computer to try out linux on)... The sound card needs tweaking, the wireless card needs tweaking, the video card needs tweaking and I am sure there are a few other things I have missed...

swmiller6

_________________
Image
Thats right it's a Fencepost original!!! ha ha and it's all mine..


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 27, 2006 9:40 pm 
Offline
User avatar

Joined:
Mon Jun 13, 2005 11:15 am

Topics: 583
Posts: 7097

Find User's Topics
IT work very well ...
BUT ...how to add GAP?

I try downloading the source and then using similar step
It didn't work becouse Gap couldn't find a librery (libgimpconfig-2.0 ) it was there but i can't figure out how to point gap to the right path.

I'm waiting some clue ,tip or whatever useful to build gimp with GAP :a:


EDIT ...ALL SOLVED !!! :h: :h: :h: :h: :h: :h: :h:
More on the solution in http://www.gimptalk.com/forum/topic/Problem-Building-Gap-ubuntu-Linux-12835-2.html

_________________
Image

http://www.flickr.com/photos/97844002@N00/


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 29, 2006 10:38 pm 
Offline

Joined:
Sun Nov 26, 2006 7:01 am

Topics: 2
Posts: 9

Find User's Topics
works great.... thanks a lot!

now to give 2.3 a try

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 29, 2007 4:18 am 
Offline

Joined:
Sat Sep 09, 2006 12:30 am

Topics: 1
Posts: 24

Find User's Topics
Could you please update your tutorial to use SVN, since GIMP development moved to SVN?

Instead of saying
Code:
cvs -d:pserver:anonymous@anoncvs.gimp.org:/cvs/gnome -z3 co -r HEAD gimp


say

Code:
svn co http://svn.gnome.org/svn/gimp/trunk gimp


Then proceed as usual and you should be all set. For best results, update your svn codebase every week or so to get all the new features and bugfixes.

_________________
Image

http://renanbirck.deviantart.com


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 29, 2007 10:15 am 
Offline
User avatar

Joined:
Mon Jun 13, 2005 11:15 am

Topics: 583
Posts: 7097

Find User's Topics
Thank for the updates, author of tutorial seldom browse this forum but i can add the updates, i just wait few additional info
Quote:
For best results, update your svn codebase every week or so to get all the new features and bugfixes.

as here...could you add some more hint on how to update the svn codebase.?

If you want reply with ...something i can insert as update in the first message of the trhead that will be the best.
(did you know if there is any other needed change? as for dependencies and alike?)

_________________
Image

http://www.flickr.com/photos/97844002@N00/


Top
 Profile  
 
Display posts from previous:  Sort by  

Post new topic Reply to topic
 [ 27 posts ]  Go to page 1, 2  Next



Who is online

Users browsing this forum: No registered users and 10 guests


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 post attachments in this forum

Jump to:  
cron
Related Website
Gimp tutorials database
All rights reserved © GimpTalk 2008
forum software by
phpBB