It is currently Sun May 19, 2013 1:12 am


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 58 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Re: Getting Perl to work in Gimp
PostPosted: Sat Jan 15, 2011 7:44 am  (#31) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 4957
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
 Profile  
 

 Post subject: Re: Getting Perl to work in Gimp
PostPosted: Sat Jan 15, 2011 8:25 am  (#32) 
Online
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 8934
Location: "Looking for my eraser" =P
last sh script i used Bob - try this

Code:
#!/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
Gimp Rocks Blog
Simply Gimp Tutorials
"Once your in the cloud, you're in the net"
____________
OK, . . . . so what's the speed of dark?


Top
 Profile  
 
 Post subject: Re: Getting Perl to work in Gimp
PostPosted: Sat Jan 15, 2011 8:29 am  (#33) 
Online
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 8934
Location: "Looking for my eraser" =P
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
Gimp Rocks Blog
Simply Gimp Tutorials
"Once your in the cloud, you're in the net"
____________
OK, . . . . so what's the speed of dark?


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

Joined: Apr 12, 2010
Posts: 4957
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
 Profile  
 
 Post subject: Re: Getting Perl to work in Gimp
PostPosted: Sun Jan 16, 2011 7:50 am  (#35) 
Online
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 8934
Location: "Looking for my eraser" =P
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
Gimp Rocks Blog
Simply Gimp Tutorials
"Once your in the cloud, you're in the net"
____________
OK, . . . . so what's the speed of dark?


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

Joined: Apr 12, 2010
Posts: 4957
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
 Profile  
 
 Post subject: Re: Getting Perl to work in Gimp
PostPosted: Sun Jan 16, 2011 3:38 pm  (#37) 
Offline
GimpChat Member
User avatar

Joined: Oct 19, 2010
Posts: 370
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?

_________________
Adult Truth: #11
It's the bumps in the road of life that make it worth traveling.


Top
 Profile  
 

 Post subject: Re: Getting Perl to work in Gimp
PostPosted: Mon Jan 17, 2011 10:27 am  (#38) 
Online
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 8934
Location: "Looking for my eraser" =P
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
Gimp Rocks Blog
Simply Gimp Tutorials
"Once your in the cloud, you're in the net"
____________
OK, . . . . so what's the speed of dark?


Top
 Profile  
 
 Post subject: Re: Getting Perl to work in Gimp
PostPosted: Mon Jan 17, 2011 10:29 am  (#39) 
Online
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 8934
Location: "Looking for my eraser" =P
I am now wondering if i need the libglib-dev files?

_________________
Image
Gimp Rocks Blog
Simply Gimp Tutorials
"Once your in the cloud, you're in the net"
____________
OK, . . . . so what's the speed of dark?


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

Joined: Oct 19, 2010
Posts: 370
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

_________________
Adult Truth: #11
It's the bumps in the road of life that make it worth traveling.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 58 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 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

Search for:
Jump to:  

* Login   * Subscribe to RSS Feed


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group