It is currently Mon Apr 15, 2024 7:33 am


All times are UTC - 5 hours [ DST ]


Switch to mobile style

Post new topic Reply to topic  [ 58 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: Getting Perl to work in Gimp
PostPosted: Wed Jan 12, 2011 3:45 pm  (#21) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Bob63 wrote:
Thanks, Rod.
I wonder if one of the reasons we are having troubles in general with this process is because we are trying to do this from within Windows. How would it go if the build environment was set up in Linux and cross-compiled for Windows. On one forum I read speculation that this was the method used to produce many of the Windows versions of Linux software. I should already have most of what I need as far a Gimp, and included libraries, seeing that I successfully compiled 2.6.11 in Linux. Hmm. I may need some Windows-specific libraries. Let me keep trying to compile in Windows and see how it goes, but this may be an alternative.


I think you hit the point here
Crosscompiling should be easier,and even much quicker .

But i could not find any guide , so even if is the best way may become very hard for lack of informations

I know as example how compile Gimp and Gap on Linux for Ubuntu , and the result should work in any Deb
(Well i always did some errors and i often have to ask some help to solve, but at the end is correctly compiled )
but i have no the faintest idea on how adapt that process to crosscompile a Windows version

A pity also because i could even test the result on the real thing (xp and 7) not only in a emulated version...well i could if would be a result to to test.

But the point again may be find some info on crosscompiling, a guide with a language adapted to not_rocket_scientists would be the best

The question is simple, we (more or less) know how compile, then how we could adapt the process to crosscompile for Win xp and/or 7 ?
Answer may be more long a complex then question, but still should be possible in a readable language

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Getting Perl to work in Gimp
PostPosted: Wed Jan 12, 2011 4:12 pm  (#22) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
I believe there is a difference Linux/Windows, that may confuse who know the process in linux and want adapt to Win

The difference is how Linux and Windows solve dependencies

In linux if 2 or more program use the same library that would be in a lib directory , external to both programs and just linked,in Windows often each has to include its own version, even if version are identical
So in Windows usually will be simply included as dll inside the program folder ,NOT in the general windows dll directory

(Windows program look for dll in Windows "System" or System32 or 64 directory , and in their own folder
So if in System or System 32 or 64 may be shared by other program BUT that usually bring havoc

If where are Dll used by several programs
1) may disappears because unistalled , by the unistaller of the program that added them
2)Or they may be left by unistaller , but in this case no any better for the high risk of conflicts with newer version or other dll that may be added by other programs)

So basically to avoid that dll Hell programs should be build as , or almost as Portable app and carry inside all what needed

And that is why when a Windows program has 2 version one portable
Many mysterious and weird malfunctioning and problems are solved simply switching to the portable version of same SW


Even gimp do this, it install its own GTK without checking is there a GTK used by other program, and all its needed libraries remain in the Gimp program folder, are no added to the chaos of System or System 32, where the risk of conflict with other dll is too high)

And same for less complex program and even for plugin, more self contained less the problems

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Getting Perl to work in Gimp
PostPosted: Thu Jan 13, 2011 6:28 pm  (#23) 
Offline
GimpChat Member
User avatar

Joined: Oct 19, 2010
Posts: 376
Location: North Central Ohio, USA
Rod,

As I was working on this, a thought hit me (ow!): When you installed Gimp on your system, did you already have Perl installed? My reasoning for asking is that I came across some info that indicated that Gimp perl extensions are similar to those for Gimp python. Meaning that if Perl is installed and working when Gimp is installed, then the Gimp installer will automatically add the Perl extensions. If this is the case then maybe you only need to re-run the Gimp installer so it will see your Perl installation.

_________________
Life Truth: #12
My cat is a worst typist than I am.


Top
 Post subject: Re: Getting Perl to work in Gimp
PostPosted: Fri Jan 14, 2011 7:20 am  (#24) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
No i had perl before i installed Gimp, it just doesn't see Perl on windows i don't think. =)
Plus i didnt see any extra box to click for perl-fu when i installed 2.7.1

The configure script to compile gimp see's the perl installation though...go figure!

Python box was there to check, but not perl. (not sure if one is in there btw).

Anyways once you get the setup for gimp compile a certain way, it just works.No-one knows why.It's a very big mystery. Creation for Gimp new versions for windows installer are cross compiled i think.

As far as i know. no-one has been able to compile it on windows alone.At least i haven't heard of anyone doing it.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Getting Perl to work in Gimp
PostPosted: Fri Jan 14, 2011 7:26 am  (#25) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
PC is correct, compiling gimp on linux is easy because all the dependencies are save in a perfect directory tree that never changes unless updated. This is exactly the reason windows cannot compile it easily, if at all.
If gimp was installed by source on windows, those dependencies would be saved in a global library for all programs to use system wide. Lib, bin, and dev folders.Also gimp header files and gegl, along with babl.

This is why i say, if you get it to compile, RAR or ZIP the entire directory setup (usr) , and upload it to a website directory i can dl it from...lol

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Getting Perl to work in Gimp
PostPosted: Fri Jan 14, 2011 8:57 am  (#26) 
Offline
GimpChat Member
User avatar

Joined: Oct 19, 2010
Posts: 376
Location: North Central Ohio, USA
You're probably familiar with all or most of this, but I'll put it down in case I forget.

I have a request for information in with Lightning, the person who said they had instructions on how to compile Gimp in windows, but the instructions were "broken." I understand he is(was?) a Gimp developer also, so perhaps I can get a meaningful response.

I see that PhotoComix and RobA also tried to get info from Lightning and the devs back in April of last year. Reading through some of the posts on the mail archive at gimp-developer, I discovered that Lightning modded his copy of the configure script so that it could find his Perl installation.

This whole thing does seem to be a "very big mystery" indeed. I mean, someone is obviously doing this compile, but they sure aren't publishing much about it - or at least Google doesn't seem to be able to find the info, and I thought they had the goods on everybody :hehe

Also, apparently there was at one time a GimpWiki that had compile instructions; however, the links to the wiki all seem to be dead. So, is there such a creature. I may try the Wayback Machine to see what I can find if it is now dead and gone.

_________________
Life Truth: #12
My cat is a worst typist than I am.


Top
 Post subject: Re: Getting Perl to work in Gimp
PostPosted: Fri Jan 14, 2011 9:26 am  (#27) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Bob63 wrote:
Rod,

As I was working on this, a thought hit me (ow!): When you installed Gimp on your system, did you already have Perl installed? My reasoning for asking is that I came across some info that indicated that Gimp perl extensions are similar to those for Gimp python. Meaning that if Perl is installed and working when Gimp is installed, then the Gimp installer will automatically add the Perl extensions. If this is the case then maybe you only need to re-run the Gimp installer so it will see your Perl installation.


NO
I compiled on Windows a previous version of Gimp (was 2.4)
Perl ,( more exactly Active Perl) was required to compile but that was of no any help to run Perl plugin

I believe the Perl gimp module is just broken (maybe because never updated), so may still,( more or less) works in linux but not in other OS

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Getting Perl to work in Gimp
PostPosted: Fri Jan 14, 2011 9:35 am  (#28) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
And about compiling don't forgot what i say above:

In Windows all the dependencies should be included in the program folder ( except for few obvious exception as NETframework, Java, Python ) , not linked.
Because that links get easily broken, more store libraries in shared directory usually lead to disasters (for different versions of same libraries creating conflicts) that could made not only the program but the whole OS unusable

This is something very confusing for linux users, (in linux would be something to frown upon, in Windows is simply needed
even if bloat the size of most windows SW)

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Getting Perl to work in Gimp
PostPosted: Fri Jan 14, 2011 12:48 pm  (#29) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
Bob63 wrote:
This whole thing does seem to be a "very big mystery" indeed. I mean, someone is obviously doing this compile, but they sure aren't publishing much about it - or at least Google doesn't seem to be able to find the info, and I thought they had the goods on everybody :hehe

Search for "Jernej Simoncic".

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Getting Perl to work in Gimp
PostPosted: Fri Jan 14, 2011 2:11 pm  (#30) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Here is one for you Bob.I didn't search google though.
http://www.search.com/search?q=Jernej+Simoncic

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Getting Perl to work in Gimp
PostPosted: Sat Jan 15, 2011 6:44 am  (#31) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
About the article on the Wiki it may be resurrected from Internet archives, but will be no more useful:
More then explain how to, basically was offering a couple of scripts that were doing everything
Now the scripts cannot be recovered from Internet Archives, and anyway are badly updated.


I believe last update in that Wiki was from Carlo Baldassi ( Liquid Rescale) on wikidot.com, i often thought to contact him to ask if he could give some additional tips, but for some reason i never did

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Getting Perl to work in Gimp
PostPosted: Sat Jan 15, 2011 7:25 am  (#32) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
last sh script i used Bob - try this

#!/usr/bin/sh
#
# This script automaticaly makes a buildenvironment for the Gimp
# Written by Anton Verburg (anton.verburg AT otb.nl)
# Updated by Philipp "Zyrill" Krueger (zyrill et gmx dot ch)
# - added check to refrain from downloading packages that are already there
# Updated by Carlo Baldassi (carlobaldassi AT gmail DOT com)
# - changed many binary sources, made it easier to update
# - added additional checks
# - note: there may be some unneeded packages, but they don't harm however

# Make sure that you've installed the wget and wget-dep package from the tarballs that you can find at
# http://gnuwin32.sourceforge.net/packages/wget.htm
# to the /mingw before executing this script

# Make sure that you've installed the unzip package from the tarball that you can find at
# http://gnuwin32.sourceforge.net/packages/unzip.htm
# to the /mingw before executing this script

# Make sure that you've installed perl in your system

# WARNING
# You should check if the packages referenced by this script are still current when you try to build
# GIMP. This script isn't always up-to-date, you can help make sure it will be.

# GCC compiler flags, use only if you know what you're doing
# export CXXFLAGS="-march=athlon-xp -pipe -O3"

# Paranoid mode (exit at any error)
set -e

# Mingw installation directory
MINGW="/mingw/"

# Some general settings which can be changed freely
WITH_GNOMEUI=NO         # Optional (downloads some additional packages)
WITH_EXIF=YES           # EXIF is used by the Jpeg plugin, but not required
EXIF_FROM_SOURCES=YES   # The sources EXIF version is newer, but takes longer to install *****
SILENT_WGET=NO         # Whether to silence download output

# These settings should not be changed other than for debugging the script
# (or maybe to save some time if re-running the script after the first time)
ZEXTRACT=YES            # Whether to actually install the zip files you download
TBZ2EXTRACT=YES         # Whether to actually extract the tarballs you download

COMPILE_EXIF=NO        # Whether to compile EXIF
# ¤¤¤ ORG: COMPILE_BABL=NO        # Whether to compile BABL (inactivated) ***
# ¤¤¤ ORG: COMPILE_GEGL=NO        # Whether to compile GAGL (inactivated)
COMPILE_BABL=YES        # Whether to compile BABL (inactivated) ***
COMPILE_GEGL=YES        # Whether to compile GAGL (inactivated)
COMPILE_GIMP=YES       # Whether to compile GIMP

# use proxy for wget
#export http_proxy="http://localhost:3128"

# to pull in puthon environment
#export PKG_CONFIG_PATH="/mingw/lib/pkgconfig:/c/Python25/Lib/pkgconfig"

# Current directory
START_DIR="$PWD"

# Store tmp-data here
TMP_DIR="gimp-packages-tmp"

# Compile stuff here
COMPILE_DIR="gimp-compile-dir"

# A list of download locations and package names follows
# Change these to update to newer versions when they're available

# Sourceforge mirror
SOURCEFORGE_MIRROR="freefr.dl"
#SOURCEFORGE_MIRROR="switch.dl" # example of alternative location

# Place where to find GNOME stuff for windows
GNOME_BASE="http://ftp.gnome.org/pub/gnome/binaries/win32"

# ATK
ATK_VERSION="1.24"
ATK_VERSION_FULL="${ATK_VERSION}.0-1"
ATK_BASE="${GNOME_BASE}/atk/${ATK_VERSION}/"

ATK_PACKAGES="
        atk_${ATK_VERSION_FULL}_win32
        atk-dev_${ATK_VERSION_FULL}_win32
        "

# GTK   ***
GTK_VERSION="2.16"
GTK_VERSION_FULL="${GTK_VERSION}.6-1"
GTK_BASE="${GNOME_BASE}/gtk+/${GTK_VERSION}/"

GTK_PACKAGES="
        gtk+_${GTK_VERSION_FULL}_win32
        gtk+-dev_${GTK_VERSION_FULL}_win32
        "

# Glib
GLIB_VERSION="2.22"
GLIB_VERSION_FULL="${GLIB_VERSION}.2-1"
GLIB_BASE="${GNOME_BASE}/glib/${GLIB_VERSION}/"

GLIB_PACKAGES="
        glib_${GLIB_VERSION_FULL}_win32
        glib-dev_${GLIB_VERSION_FULL}_win32
        "

# Intltool
INTLTOOL_VERSION="0.40"
INTLTOOL_VERSION_FULL="${INTLTOOL_VERSION}.4-1"
INTLTOOL_BASE="${GNOME_BASE}/intltool/${INTLTOOL_VERSION}/"

INTLTOOL_PACKAGES="
        intltool_${INTLTOOL_VERSION_FULL}_win32
        intltool-dev_${INTLTOOL_VERSION_FULL}_win32
        "

# Pango
PANGO_VERSION="1.22"
PANGO_VERSION_FULL="${PANGO_VERSION}.4-1"
PANGO_BASE="${GNOME_BASE}/pango/${PANGO_VERSION}/"

PANGO_PACKAGES="
        pango_${PANGO_VERSION_FULL}_win32
        pango-dev_${PANGO_VERSION_FULL}_win32
        "

# Librsvg
LIBRSVG_VERSION="2.22"
LIBRSVG_VERSION_FULL="${LIBRSVG_VERSION}.3-1"
LIBRSVG_BASE="${GNOME_BASE}/librsvg/${LIBRSVG_VERSION}/"

LIBRSVG_PACKAGES="
        librsvg_${LIBRSVG_VERSION_FULL}_win32
        librsvg-dev_${LIBRSVG_VERSION_FULL}_win32
        svg-gdk-pixbuf-loader_${LIBRSVG_VERSION_FULL}_win32
        svg-gtk-engine_${LIBRSVG_VERSION_FULL}_win32
        "

# Libcroco
LIBCROCO_VERSION="0.6"
LIBCROCO_VERSION_FULL="${LIBCROCO_VERSION}.1"
LIBCROCO_BASE="${GNOME_BASE}/libcroco/${LIBCROCO_VERSION}/"

LIBCROCO_PACKAGES="
        libcroco-${LIBCROCO_VERSION_FULL}
        libcroco-dev-${LIBCROCO_VERSION_FULL}
        "

# Libgsf
LIBGSF_VERSION="1.14"
LIBGSF_VERSION_FULL="${LIBGSF_VERSION}.8"
LIBGSF_BASE="${GNOME_BASE}/libgsf/${LIBGSF_VERSION}/"

LIBGSF_PACKAGES="
        libgsf-${LIBGSF_VERSION_FULL}
        libgsf-dev-${LIBGSF_VERSION_FULL}
        libgsf-gnome-${LIBGSF_VERSION_FULL}
        libgsf-gnome-dev-${LIBGSF_VERSION_FULL}
        "

# Libgnome (optional, for GNOME UI only)
LIBGNOME_VERSION="2.24"
LIBGNOME_VERSION_FULL="${LIBGNOME_VERSION}.1-1"
LIBGNOME_BASE="${GNOME_BASE}/libgnome/${LIBGNOME_VERSION}/"

LIBGNOME_PACKAGES="
        libgnome_${LIBGNOME_VERSION_FULL}_win32
        libgnome-dev_${LIBGNOME_VERSION_FULL}_win32
        "

# Libgnomeui (optional, for GNOME UI only)
LIBGNOMEUI_VERSION="2.22"
LIBGNOMEUI_VERSION_FULL="${LIBGNOMEUI_VERSION}.1"
LIBGNOMEUI_BASE="${GNOME_BASE}/libgnomeui/${LIBGNOMEUI_VERSION}/"

LIBGNOMEUI_PACKAGES="
        libgnomeui-${LIBGNOMEUI_VERSION_FULL}
        libgnomeui-dev-${LIBGNOMEUI_VERSION_FULL}
        "

# Libgnomecanvas (optional, for GNOME UI only)
LIBGNOMECANVAS_VERSION="2.20"
LIBGNOMECANVAS_VERSION_FULL="${LIBGNOMECANVAS_VERSION}.1"
LIBGNOMECANVAS_BASE="${GNOME_BASE}/libgnomecanvas/${LIBGNOMECANVAS_VERSION}/"

LIBGNOMECANVAS_PACKAGES="
        libgnomecanvas-${LIBGNOMECANVAS_VERSION_FULL}
        libgnomecanvas-dev-${LIBGNOMECANVAS_VERSION_FULL}
        "

# Libart_lgpl (optional, for GNOME UI only)
LIBARTLGPL_VERSION="2.3"
LIBARTLGPL_VERSION_FULL="${LIBARTLGPL_VERSION}.20"
LIBARTLGPL_BASE="${GNOME_BASE}/libart_lgpl/${LIBARTLGPL_VERSION}/"

LIBARTLGPL_PACKAGES="
        libart_lgpl-${LIBARTLGPL_VERSION_FULL}
        libart_lgpl-dev-${LIBARTLGPL_VERSION_FULL}
        "

# Libbonobo (optional, for GNOME UI only)
LIBBONOBO_VERSION="2.24"
LIBBONOBO_VERSION_FULL="${LIBBONOBO_VERSION}.0-1"
LIBBONOBO_BASE="${GNOME_BASE}/libbonobo/${LIBBONOBO_VERSION}/"

LIBBONOBO_PACKAGES="
        libbonobo_${LIBBONOBO_VERSION_FULL}_win32
        libbonobo-dev_${LIBBONOBO_VERSION_FULL}_win32
        "

# Libbonoboui (optional, for GNOME UI only)
LIBBONOBOUI_VERSION="2.24"
LIBBONOBOUI_VERSION_FULL="${LIBBONOBOUI_VERSION}.0-1"
LIBBONOBOUI_BASE="${GNOME_BASE}/libbonoboui/${LIBBONOBOUI_VERSION}/"

LIBBONOBOUI_PACKAGES="
        libbonoboui_${LIBBONOBOUI_VERSION_FULL}_win32
        libbonoboui-dev_${LIBBONOBOUI_VERSION_FULL}_win32
        "

# ORBit2 (optional, for GNOME UI only)
ORBIT2_VERSION="2.14"
ORBIT2_VERSION_FULL="${ORBIT2_VERSION}.16-1"
ORBIT2_BASE="${GNOME_BASE}/ORBit2/${ORBIT2_VERSION}/"

ORBIT2_PACKAGES="
        ORBit2_${ORBIT2_VERSION_FULL}_win32
        ORBit2-dev_${ORBIT2_VERSION_FULL}_win32
        "

# GConf (optional, for GNOME UI only)
GCONF_VERSION="2.22"
GCONF_VERSION_FULL="${GCONF_VERSION}.0-2"
GCONF_BASE="${GNOME_BASE}/GConf/${GCONF_VERSION}/"

GCONF_PACKAGES="
        GConf_${GCONF_VERSION_FULL}_win32
        GConf-dev_${GCONF_VERSION_FULL}_win32
        "

# Gnome-vfs (optional, for GNOME UI only)
GNOMEVFS_VERSION="2.24"
GNOMEVFS_VERSION_FULL="${GNOMEVFS_VERSION}.0-1"
GNOMEVFS_BASE="${GNOME_BASE}/gnome-vfs/${GNOMEVFS_VERSION}/"

GNOMEVFS_PACKAGES="
        gnome-vfs_${GNOMEVFS_VERSION_FULL}_win32
        gnome-vfs-dev_${GNOMEVFS_VERSION_FULL}_win32
        "

# GNOME dependencies
CAIRO_VERSION="1.8.10-1"
EXPAT_VERSION="2.0.1-1"
FONTCONFIG_VERSION="2.6.0-2"
FREETYPE_VERSION="2.3.12-1"
GETTEXTRT_VERSION="0.17-1"
GETTEXTTOOLS_VERSION="0.17"
GNUTLS_VERSION="2.4.2-1"
HICOLICONTHEME_VERSION="0.10-1"
ICONNAMINGUTILS_VERSION="0.8.7-1"
ISOCODES_VERSION="3.5-1"
LIBBZIP2_VERSION="1.0.2"
LIBFFI_VERSION="3.0.6-1"
LIBICAL_VERSION="0.43-1"
LIBICONV_VERSION="1.9.1"
LIBPNG_VERSION="1.2.40-1"
LIBTIFF_VERSION="3.8.2"
LIBXML2_VERSION="2.7.7-1"
PKGCONFIG_VERSION="0.23-3"
POPPLER_VERSION="0.6.4"
TANGOICON_VERSION="0.8.1"
WINICONV_VERSION="20100912"
ZLIB_VERSION="1.2.5-2"

GNOMEDEP_BASE="${GNOME_BASE}/dependencies/"
GNOMEDEP_PACKAGES="
        cairo_${CAIRO_VERSION}_win32
        cairo-dev_${CAIRO_VERSION}_win32
        expat_${EXPAT_VERSION}_win32
        expat-dev_${EXPAT_VERSION}_win32
        fontconfig_${FONTCONFIG_VERSION}_win32
        fontconfig-dev_${FONTCONFIG_VERSION}_win32
        freetype_${FREETYPE_VERSION}_win32
        freetype-dev_${FREETYPE_VERSION}_win32
        gettext-runtime-${GETTEXTRT_VERSION}
        gettext-runtime-dev-${GETTEXTRT_VERSION}
        gettext-tools-${GETTEXTTOOLS_VERSION}
        gnutls_${GNUTLS_VERSION}_win32
        gnutls-dev_${GNUTLS_VERSION}_win32
        hicolor-icon-theme_${HICOLICONTHEME_VERSION}_win32
        hicolor-icon-theme-dev_${HICOLICONTHEME_VERSION}_win32
        icon-naming-utils_${ICONNAMINGUTILS_VERSION}_win32
        icon-naming-utils-dev_${ICONNAMINGUTILS_VERSION}_win32
        iso-codes_${ISOCODES_VERSION}_win32
        iso-codes-dev_${ISOCODES_VERSION}_win32
        libbzip2-${LIBBZIP2_VERSION}
        libbzip2-dev-${LIBBZIP2_VERSION}
        libffi_${LIBFFI_VERSION}_win32
        libffi-dev_${LIBFFI_VERSION}_win32
        libical_${LIBICAL_VERSION}_win32
        libical-dev_${LIBICAL_VERSION}_win32
        libiconv-${LIBICONV_VERSION}.bin.woe32
        libpng_${LIBPNG_VERSION}_win32
        libpng-dev_${LIBPNG_VERSION}_win32
        libtiff-${LIBTIFF_VERSION}
        libtiff-dev-${LIBTIFF_VERSION}
        libxml2_${LIBXML2_VERSION}_win32
        libxml2-dev_${LIBXML2_VERSION}_win32
        pkg-config_${PKGCONFIG_VERSION}_win32
        poppler-${POPPLER_VERSION}
        poppler-dev-${POPPLER_VERSION}
        tango-icon-theme-${TANGOICON_VERSION}
        tango-icon-theme-dev-${TANGOICON_VERSION}
        win-iconv-dev_tml-${WINICONV_VERSION}_win32
        win-iconv-dll_tml-${WINICONV_VERSION}_win32
        zlib_${ZLIB_VERSION}_win32
        zlib-dev_${ZLIB_VERSION}_win32
        "
       
# We need to fetch jpeg library from a different location
# (the one in the GNOME site does not provide development files)
JPEG_VERSION="6b-4"

GNUWIN32_BASE="http://${SOURCEFORGE_MIRROR}.sourceforge.net/sourceforge/gnuwin32"
GNUWIN32_PACKAGES="
        jpeg-${JPEG_VERSION}-bin
        jpeg-${JPEG_VERSION}-lib
        jpeg-${JPEG_VERSION}-dep
        "

# GEGL and BABL
#GEGL_BASE="http://${SOURCEFORGE_MIRROR}.sourceforge.net/sourceforge/gimp-win"
#GEGL_BASE="http://sourceforge.net/projects/gimp-win/files/GIMP + GTK+ (stable release)/GIMP 2.6.4 + GTK+ 2.14.6/gegl-2847-babl-359-dev.zip/download

#http://sourceforge.net/projects/gimp-win/files/GIMP%20%2B%20GTK%2B%20%28stable%20release%29/GIMP%202.6.4%20%2B%20GTK%2B%202.14.6/gegl-2847-babl-359-dev.zip/download
GEGL_BABL_BASE="http://sourceforge.net/projects/gimp-win/files/GIMP + GTK+ (stable release)/GIMP 2.6.4 + GTK+ 2.14.6"
GEGL_BABL_PACKAGES="gegl-2847-babl-359-dev"

# EXIF
if [ "$EXIF_FROM_SOURCES" == "YES" ]
then
        EXIF_VERSION="0.6.17"
        EXIF_BASE="http://${SOURCEFORGE_MIRROR}.sourceforge.net/sourceforge/libexif"
        EXIF_TARBALL="libexif-${EXIF_VERSION}"
else
        EXIF_VERSION="0.6.16"
        EXIF_BASE="http://www.gimp.org/~tml/gimp/win32"
        EXIF_PACKAGES="
                libexif-${EXIF_VERSION}
                libexif-dev-${EXIF_VERSION}
                "
fi

# BABL and GEGL sources
BABL_VERSION="0.1"
BABL_VERSION_FULL="${BABL_VERSION}.0"
BABL_BASE="ftp://ftp.gtk.org/pub/babl/${BABL_VERSION}/"
BABL_TARBALL="babl-${BABL_VERSION_FULL}"
#
GEGL_VERSION="0.1"
GEGL_VERSION_FULL="${GEGL_VERSION}.0"
GEGL_BASE="ftp://ftp.gtk.org/pub/gegl/${GEGL_VERSION}/"
GEGL_TARBALL="gegl-${GEGL_VERSION_FULL}"

# GIMP sources
GIMP_VERSION="2.7"
GIMP_VERSION_FULL="${GIMP_VERSION}.0"
GIMP_BASE="ftp://ftp.gimp.org/pub/gimp/v${GIMP_VERSION}"
GIMP_TARBALL="gimp-${GIMP_VERSION_FULL}"

# End of packages locations and names.
# Nothing should need to be changed below this point, except maybe for the fixes section

echo "Starting to get build environment for GIMP"

# Test if wget is installed
echo "Testing if wget is available..."
if [ -z "`which wget`" ]
then
        echo "You did not install wget! Please download wget and wget-dep from http://gnuwin32.sourceforge.net/packages/wget.htm and extract their content to $MINGW.  Try to execute this script than again."
        exit
fi
echo "OK1"

# Test if unzip is installed
echo "Testing if unzip is available..."
if [ -z  "`which unzip`" ]
then
        echo "You did not install unzip! Please download unzip from http://gnuwin32.sourceforge.net/packages/unzip.htm and extract the content of that package to $MINGW. Try to execute this script than again."
        exit
fi
echo "OK2"

# Test if perl is installed
echo "Testing if perl is available..."
if [ -z "`which perl`" ]
then
        echo "You did not install perl! Please install perl in your system and try to execute this script than again."
        exit
fi
echo "OK3"

PERL_BINARY="`which perl`"

# Ok, continue.
if ! [ -d "$TMP_DIR" ]; then mkdir -p "$TMP_DIR"; fi
if ! [ -d "$COMPILE_DIR" ]; then mkdir -p "$COMPILE_DIR"; fi
pushd "$TMP_DIR" > /dev/null

# Set wget flags
WGETFLAGS=""
if [ "$SILENT_WGET" == "YES" ]
then
        WGETFLAGS="$WGETFLAGS -q"
fi

# Define some useful functions

# Extract zip files
function zextract
{
        if [ "$ZEXTRACT" == "YES" ]
        then
                unzip -u -q "$1.zip" -d $2
                #echo " force skipped"
        else
                echo "  skipped"
        fi
}

# Extract tarballs
function tbz2extract
{
        local TARBALL_DIR="$PWD"
        if [ "$TBZ2EXTRACT" == "YES" ]
        then
                pushd "${START_DIR}/$2" > /dev/null
                tar -vxjf "${TARBALL_DIR}/$1.tar.bz2"
                popd > /dev/null
        else
                echo "  skipped"
        fi
}

# Install zip files with binaries
function download_and_zextract
{
        local NAME="$1";
        local PACK_LOCATION="$2"
        local PACK_LIST="$3"

        echo "Downloading $NAME packages..."
        for PACKAGE in $PACK_LIST
        do
                        if [ -e "$PACKAGE.zip" ]; then
                                        echo " Already there - extracting $PACKAGE";
                                        zextract "$PACKAGE" "$MINGW"
                        else
                                        echo " Getting $PACKAGE";
                                        wget $WGETFLAGS "$PACK_LOCATION/$PACKAGE.zip"
                                        echo " Extracting $PACKAGE";
                                        zextract "$PACKAGE" "$MINGW"
                        fi
        done
        echo "OK4"
}

# Download, extract and compile tarballs
function download_and_tbz2extract
{
        local NAME="$1";
        local TARBALL_LOCATION="$2"
        local TARBALL_LIST="$3"
        local COMPILE="$4"
        local CONFIG_FLAGS="$5"

        echo "Downloading $NAME packages..."
        for TARBALL in $TARBALL_LIST
        do
                        if [ -e "$TARBALL.tar.bz2" ]; then
                                        echo " Already there - extracting $TARBALL";
                                        tbz2extract "$TARBALL" "$COMPILE_DIR"
                        else
                                        echo " Getting $TARBALL";
                                        wget $WGETFLAGS "$TARBALL_LOCATION/$TARBALL.tar.bz2"
                                        echo " Extracting $TARBALL";
                                        tbz2extract "$TARBALL" "$COMPILE_DIR"
                        fi
                        pushd "${START_DIR}/${COMPILE_DIR}/$TARBALL" > /dev/null
                        echo " Compiling $TARBALL"
                        if [ "$COMPILE" == "YES" ]
                        then
                                configure --prefix="$MINGW" ${CONFIG_FLAGS}
                                make
                                make install
                        else
                                echo "  skipped"
                        fi
                        popd > /dev/null
        done
        echo "OK5"
}

# End of functions definitions

# Let's go! first download and install binaries

download_and_zextract "ATK" "${ATK_BASE}" "${ATK_PACKAGES}"
download_and_zextract "GTK+" "${GTK_BASE}" "${GTK_PACKAGES}"
download_and_zextract "Glib" "${GLIB_BASE}" "${GLIB_PACKAGES}"
download_and_zextract "INTLTOOL" "${INTLTOOL_BASE}" "${INTLTOOL_PACKAGES}"
download_and_zextract "PANGO" "${PANGO_BASE}" "${PANGO_PACKAGES}"
download_and_zextract "LIBRSVG" "${LIBRSVG_BASE}" "${LIBRSVG_PACKAGES}"
download_and_zextract "LIBCROCO" "${LIBCROCO_BASE}" "${LIBCROCO_PACKAGES}"
download_and_zextract "LIBGSF" "${LIBGSF_BASE}" "${LIBGSF_PACKAGES}"
if [ "$WITH_GNOMEUI" == "YES" ]
then
        download_and_zextract "LIBGNOME" "${LIBGNOME_BASE}" "${LIBGNOME_PACKAGES}"
        download_and_zextract "LIBGNOMEUI" "${LIBGNOMEUI_BASE}" "${LIBGNOMEUI_PACKAGES}"
        download_and_zextract "LIBGNOMECANVAS" "${LIBGNOMECANVAS_BASE}" "${LIBGNOMECANVAS_PACKAGES}"
        download_and_zextract "LIBARTLGPL" "${LIBARTLGPL_BASE}" "${LIBARTLGPL_PACKAGES}"
        download_and_zextract "LIBBONOBO" "${LIBBONOBO_BASE}" "${LIBBONOBO_PACKAGES}"
        download_and_zextract "LIBBONOBOUI" "${LIBBONOBOUI_BASE}" "${LIBBONOBOUI_PACKAGES}"
        download_and_zextract "ORBIT2" "${ORBIT2_BASE}" "${ORBIT2_PACKAGES}"
        download_and_zextract "GCONF" "${GCONF_BASE}" "${GCONF_PACKAGES}"
        download_and_zextract "GNOMEVFS" "${GNOMEVFS_BASE}" "${GNOMEVFS_PACKAGES}"
fi
download_and_zextract "other GNOME dependencies" "${GNOMEDEP_BASE}" "${GNOMEDEP_PACKAGES}"
download_and_zextract "other GNU packages" "${GNUWIN32_BASE}" "${GNUWIN32_PACKAGES}"
# ¤¤¤ DISABLED BY BR download_and_zextract "GEGL and BABL" "${GEGL_BABL_BASE}" "${GEGL_BABL_PACKAGES}"
if [ "$WITH_EXIF" == "YES" ] && [ "$EXIF_FROM_SOURCES" != "YES" ]
then
        download_and_zextract "EXIF" "${EXIF_BASE}" "${EXIF_PACKAGES}"
fi

# Some fixes are required to make everything work

# Intltool fix (set the correct perl location)
INTLTOOL_SCRIPTS="
        intltool-extract
        intltool-merge
        intltool-prepare
        intltool-update
        "

echo "Fixing intltool scripts"
pushd "${MINGW}/bin" > /dev/null
for ISCR in $INTLTOOL_SCRIPTS
do
        if grep -q "^#!/opt/perl/" "$ISCR"
        then
                mv "$ISCR" "$ISCR.bk"
                cat "$ISCR.bk" | sed "s@^#!/opt/perl/bin/perl@#!${PERL_BINARY}@" > "$ISCR"
                rm "$ISCR.bk"
        fi
done
popd > /dev/null
echo " test if fix worked"
for ISCR in $INTLTOOL_SCRIPTS
do
        $ISCR --version > /dev/null
done
echo "OK6"

# libbabl fix (mirror the library so that GIMP finds it during compilation)
echo "Copying libbabl in alternative position"
LIBBABLALTDIR="/win32dev/i386/gimp/dev/deps/lib"
LIBBABLFILES="
        libbabl-0.0.la
        libbabl-0.0.dll.a
        "

mkdir -p "$LIBBABLALTDIR"
pushd "$MINGW/lib" > /dev/null
for FILE in $LIBBABLFILES
do
        cp "$FILE" "$LIBBABLALTDIR"
done
popd > /dev/null
echo "OK7"

# Compile from sources EXIF and GIMP

if [ "$WITH_EXIF" == "YES" ] && [ "$EXIF_FROM_SOURCES" == YES ]
then
        download_and_tbz2extract "EXIF" "${EXIF_BASE}" "${EXIF_TARBALL}" "${COMPILE_EXIF}" ""
fi

# ¤¤¤ ENABLED BY BR
download_and_tbz2extract "BABL" "${BABL_BASE}" "${BABL_TARBALL}" "${COMPILE_BABL}" ""  # (inactivated)
download_and_tbz2extract "GEGL" "${GEGL_BASE}" "${GEGL_TARBALL}" "${COMPILE_GEGL}" "--disable-docs"  # (inactivated)
download_and_tbz2extract "GIMP" "${GIMP_BASE}" "${GIMP_TARBALL}" "${COMPILE_GIMP}" "--disable-print --disable-python"

# Done
cd $START_DIR
echo "OK. Script is finished now."


_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Getting Perl to work in Gimp
PostPosted: Sat Jan 15, 2011 7:29 am  (#33) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Bob you may have to change a few things such as MinGW location and Python version path.

Mess with the script a bit and see what you can do with it.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Getting Perl to work in Gimp
PostPosted: Sat Jan 15, 2011 10:09 pm  (#34) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
i read somewhere along this topic that you installed MinGw but not MSYS i believe the wiki procedure suppose also MSYS installed

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Getting Perl to work in Gimp
PostPosted: Sun Jan 16, 2011 6:50 am  (#35) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Yes Bob installed camelbox to get the perl install, it came with MinGW.
You will also want to install wget for the above script Bob.You can get it in binary for windows here
http://sourceforge.net/projects/gnuwin3 ... e/download
and unzip here
http://gnuwin32.sourceforge.net/packages/unzip.htm

The installers will find the MinGW directory on its own at install.

I just re-installed Msysgit and i will try and compile it (Gimp 2.7.2), again using this sh script.
Here we go again! =)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Getting Perl to work in Gimp
PostPosted: Sun Jan 16, 2011 8:10 am  (#36) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
were 2 scripts in the wiki ,that is one, but the other is still missing

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Getting Perl to work in Gimp
PostPosted: Sun Jan 16, 2011 2:38 pm  (#37) 
Offline
GimpChat Member
User avatar

Joined: Oct 19, 2010
Posts: 376
Location: North Central Ohio, USA
Getting an odd error, trying to compile BABL; it is hanging looking for a file C:\babl-0.1.2\babl\base\.deps\babl-base.Tpo which doesn't exist, and I can't seem to figure out which file is calling for it, or what it is supposed to be used for.

Any clues?

_________________
Life Truth: #12
My cat is a worst typist than I am.


Top
 Post subject: Re: Getting Perl to work in Gimp
PostPosted: Mon Jan 17, 2011 9:27 am  (#38) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
What i did was compile BABL on its own then install it into your usr/ directory (it should by default anyways)
The script is looking for files that are not there yet.

If you think that's weird Bob, check this out.
I decided to run the script just to get the dependencies, and then compile BABL, GEGL, and then Gimp-2.7.2 in that order.
Here is what i fell into, and maybe you can find an explanation for what you ask. (moving BABL files around)
Exactly what i was trying to do was create a compile directions sort of speak for Gimp-2.7.2 on Windows XP-
Here they are and the error i finally got which totally stumped me:

*******************************************************************
DISCLAIMER:
USE AT YOUR OWN RISK!
*******************************************************************
First you will need to do a few things to get the Gimp compile to work.

First - Download the MinGW/Msys package
http://sourceforge.net/projects/mingw/f ... e/download -
Select everything in the install pkg - including all the compilers, and the Msys developers files.
The download, and install will take a while have a cup of coffee, or some pie while it downloads,compiles, and installs everything you will need.It will do this automatically for you.
**********************************************************
install Perl from Activestate into C:\Perl - Note: it should do this by default
Copy your entire C:\Perl folder to - C:\MinGW\msys\1.0\bin (you will need the modules, and expat)
Install wget from here - http://gnuwin32.sourceforge.net/packages/wget.htm into C:\MinGW
Install unzip from here - http://gnuwin32.sourceforge.net/packages/unzip.htm into C:\MinGW
*****************************
Sadly - The flamingtext.com site no longer hosts the nightly tarballs for BABL, GEGL, nor Gimp 2.7.2
They are selling, or have by now sold their domain.
LUCKILY! - i have them all uploaded to MediaFire here - Download them to your desktop -

BABL - http://download1321.mediafire.com/1af5v ... .2.tar.bz2
GEGL - http://download1081.mediafire.com/vrtmk ... .2.tar.bz2
GIMP 2.7.2 - http://download556.mediafire.com/9k7tp2 ... .2.tar.bz2

Note:I do have GEGL and BABL 0.1.3 versions also if you would rather use those, but they aren't required for compile.
PM me for the links

Unzip them all into your home directory, or wherever you will run your terminal from.
Usually it will be - C:\MinGW\msys\1.0\home\UserName
***********************************
COMPILE DIRECTIONS-

***********************************
OK - it's downloaded, installed, and ready to start compiling stuff. ... NO it's not :rofl
Time to run the compilegimp.sh script from your home directory in MinGW to get all the other dependencies you need. YES! - you need more. :hoh .. Copy the file compilegimp.sh to your MinGW home directory
Open your terminal in your home directory and type
./compilegimp.sh and hit enter.
The script will stop, and or error after the dependencies are downloaded and installed because it will run into a test error for babl files it needs to move..That's ok though.We just want the dependencies from this script.
They will be downloaded to a "gimp-packages-tmp" directory created by the script in your home directory (or wherever the sh script resides).
Copy the BABL-0.1.2, GEGl-0.1.2, and the Gimp-2.7.2 RARs into gimp-packages-tmp folder.
Time for another cup of coffee while these are installed for you :clap
**************************************************
Note: After it's done - you no longer need this folder "gimp-packages-tmp"
Save that gimp-packages-tmp folder full of ZIP files after everything is downloaded for any future uses along with the compilegimp.sh script.Make sure and add the the BABL, Gimp-2.7.2, and GEGL RAR files to the folder also.
Put them somewhere you know you wont delete them ever.
Name it something like "My Gimp Compile Files". Zip the entire thing.
Place it in your safe! .... j/k
**************************************************
Ok the compiler is ready.
The dependencies are downloaded and installed.
We have GEGl, BABL, and Gimp-2.7.2 un-tarred.
Can we compile gimp now?
No - first we need to compile BABL-0.1.2
Open a terminal in your home directory and type-
cd babl-0.1.2
./configure
make
make install

If all goes well your babl libraries will be installed correctly
Find the babl.pc file in your install and make sure it's copied to the pkgconfig folders here -
C:\MinGW\lib\pkgconfig and here C:\MinGW\share\pkgconfig
NOW -
Open a terminal in your home directory and type
cd gegl-0.1.2
./configure
make
Now we need to make sure GEGL has all it's header files to make install correctly -
So - copy the babl folder from here
C:\MinGW\msys\1.0\local\include\babl-0.1
into the gegl folder here
C:\MinGW\msys\1.0\home\Compaq_Owner\gegl-0.1.2
Now that gegl.pc is made copy it to the pkgconfig folders where you put the babl.pc file.-
C:\MinGW\lib\pkgconfig and here C:\MinGW\share\pkgconfig
NOW
Open a terminal and type
make install

You are now faced with this error -

make[2]: Entering directory `/home/Compaq_Owner/gegl-0.1.2/gegl'
CCLD libgegl-0.1.la
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lbabl-0.1
collect2: ld returned 1 exit status
make[2]: *** [libgegl-0.1.la] Error 1
make[2]: Leaving directory `/home/Compaq_Owner/gegl-0.1.2/gegl'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/Compaq_Owner/gegl-0.1.2/gegl'
make: *** [install-recursive] Error 1

Compaq_Owner@Family-Room ~/gegl-0.1.2
$

So what to do now - :hoh :gaah :hoh -
This is where i got stuck - no lbabl-0.1 file to be found...so i went into my babl-0.1.2 file and found these three files
libbabl-0.1-0.dll
libbabl-0.1.la
libbabl-0.1.dll.a
You need to take these three files (copy them all at once).
Paste them in the C:\MinGW\msys\1.0\home\username\gegl-0.1.2\gegl folder
Then paste them in all folders under this diectory
C:\MinGW\msys\1.0\home\username\gegl-0.1.2\operations
********************************************************
type
make install
This is where i get thrown -
e -IC:/MinGW/include/freetype2 -IC:/MinGW/include -IC:/MinGW/include/libpng12 -IC:/MinGW/incl
ude/babl-0.1 -IC:/MinGW/include/libpng12 -g -O2 -Wall -Wdeclaration-after-statement -Wmissi
ng-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition -mmmx -
msse -c -o gegl-paint.lo gegl-paint.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../gegl -I../gegl -I../gegl/buffer -I../
gegl/buffer -I../gegl/property-types -I../gegl/property-types -I../gegl/buffer -I../gegl/buffer
-I../gegl/operation -I../gegl/operation -I../gegl/module -I../gegl/module -mms-bitfields -IC:/
MinGW/include/glib-2.0 -IC:/MinGW/lib/glib-2.0/include -mms-bitfields -IC:/MinGW/include/gtk-2.
0 -IC:/MinGW/lib/gtk-2.0/include -IC:/MinGW/include/atk-1.0 -IC:/MinGW/include/cairo -IC:/MinGW
/include/pango-1.0 -IC:/MinGW/include/glib-2.0 -IC:/MinGW/lib/glib-2.0/include -IC:/MinGW/inclu
de/freetype2 -IC:/MinGW/include -IC:/MinGW/include/libpng12 -IC:/MinGW/include/babl-0.1 -IC:/Mi
nGW/include/libpng12 -g -O2 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-
declarations -Winit-self -Wpointer-arith -Wold-style-definition -mmmx -msse -c gegl-paint.c -D
DLL_EXPORT -DPIC -o .libs/gegl-paint.o
In file included from gegl-paint.c:24:0:
util/gegl-view.c: In function 'gegl_view_repaint':
util/gegl-view.c:507:3: warning: implicit declaration of function 'gtk_widget_get_allocation'
/bin/sh ../libtool --mode=link gcc ../gegl/libgegl-0.1.la -LC:/MinGW/lib -lgio-2.0 -lgobject
-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl -LC:/MinGW/lib -lgtk-win32-2.0 -lgdk-win32
-2.0 -latk-1.0 -lgio-2.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpangocairo-1.0 -lpango-1.0
-lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -LC:/MinGW/lib -lbabl-0.1 -LC:/MinGW
/lib -lpng12 -g -O2 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-decla
rations -Winit-self -Wpointer-arith -Wold-style-definition -mmmx -msse -o gegl-paint gegl-paint
.lo


-lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -LC:/MinGW/lib -lbabl-0.1 -LC:/MinGW
/lib -lpng12 -g -O2 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-decla
rations -Winit-self -Wpointer-arith -Wold-style-definition -mmmx -msse -o gegl-paint gegl-paint
.lo
libtool: link: gcc -g -O2 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-de
clarations -Winit-self -Wpointer-arith -Wold-style-definition -mmmx -msse -o .libs/gegl-paint .
libs/gegl-paint.o ../gegl/.libs/libgegl-0.1.dll.a -LC:/MinGW/lib -L/mingw/lib /home/Compaq_Own
er/gegl-0.1.2/gegl/libbabl-0.1.dll.a -lgthread-2.0 -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -l
gio-2.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobjec
t-2.0 -lgmodule-2.0 -lglib-2.0 C:/MinGW/lib/libintl.dll.a /mingw/lib/libiconv.dll.a ../gegl/lib
babl-0.1.dll.a -lpng12 -L/usr/local/lib -L/mingw/lib
.libs/gegl-paint.o: In function `gegl_view_repaint':
C:\MinGW\msys\1.0\home\Compaq_Owner\gegl-0.1.2\examples/util/gegl-view.c:507: undefined referen
ce to `gtk_widget_get_allocation'
collect2: ld returned 1 exit status
make[3]: *** [gegl-paint] Error 1
make[3]: Leaving directory `/home/Compaq_Owner/gegl-0.1.2/examples'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/Compaq_Owner/gegl-0.1.2/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Compaq_Owner/gegl-0.1.2'
make: *** [all] Error 2

Compaq_Owner@Family-Room ~/gegl-0.1.2
$

can't figure this out yet so................
****************************************************
I decided to download and compile GLIB (needed for Gimp compile) - go here to get it
ftp://ftp.gtk.org/pub/glib/2.24/ make sure to choose glib-2.24.1.tar.gz - download and unzip it into your home directory.

Open your terminal and type
cd glib-2.24.1
./configure
make

Go get a cup of coffee, it takes awhile to make GLIB.
BEFORE you make install - remove all traces of GLIB installed from the MinGW installer.(libs and header files)
If you do not, the Gimp configure script will find older headers(2.22.0) for newer libs (2.24.1)
make install
Go get another cup of coffee .. :rofl
This is much faster i was just kidding :clap
Copy the glib-2.0.pc file to your pkgconfig folders like your gegl and babl files above.
C:\MinGW\lib\pkgconfig and C:\MinGW\share\pkgconfig

**********************************

There will be more to come stay tuned for further Gimp compile developments! :rofl

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Getting Perl to work in Gimp
PostPosted: Mon Jan 17, 2011 9:29 am  (#39) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
I am now wondering if i need the libglib-dev files?

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Getting Perl to work in Gimp
PostPosted: Mon Jan 17, 2011 10:21 am  (#40) 
Offline
GimpChat Member
User avatar

Joined: Oct 19, 2010
Posts: 376
Location: North Central Ohio, USA
Rod,
FWIW, when I decided a few moths ago to compile GIMP for Linux from source (as my distro wasn't offering 2.6.11 in the repos yet), I made a point as I was hunting down dependencies to get the development files for everything.

Of course, one of the nice things about Linux is it has a couple of tools that make this whole process sooo much easier. I am particularly in love with a tool called "auto-apt": when you run configure under auto-apt, it will automatically pull nearly all dependencies from the repositories and install them. Usually, if it misses dependencies, it is because Ubuntu tends to rename some libraries for backwards compatibility - when they get installed links are built so that the libraries can be found under both the old and new names.

So you are up-to-date with my progress - or lack of it - I went through yesterday and purged my XP VM of all development environments and reinstalled the complete MinGW package. I'm hoping a fresh start will give me a new perspective. I did not install the ActiveState Perl. I got my Perl install from the Perl site itself, and the gimp build script seems to find it okay (so far).

I mentioned above in a comment to PC that if I have also considered re-installing my MS Visual Studio, although I have absolutely no idea if it would be a help or not. :hehe

_________________
Life Truth: #12
My cat is a worst typist than I am.


Top
Post new topic Reply to topic  [ 58 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Paintbrush doesnt work and none of the solutions on the internet work

13

No new posts Attachment(s) Plugins don't work

2

No new posts Attachment(s) HELP! I Cant get Spiderpaint to work

5

No new posts Scripts that don't work properly

5

No new posts CAN NOT GET GMIC TO SHOW OR WORK

2



* Login  



Powered by phpBB3 © phpBB Group