building git on SuSE 12.2
This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.
This is a read-only list on gimpusers.com so this discussion thread is read-only, too.
building git on SuSE 12.2 | Dexter Filmore | 22 Oct 14:52 |
building git on SuSE 12.2 | Jon Nordby | 22 Oct 16:00 |
building git on SuSE 12.2 | Dexter Filmore | 22 Oct 19:15 |
building git on SuSE 12.2 | Dexter Filmore | 22 Oct 19:17 |
building git on SuSE 12.2 | Dexter Filmore | 22 Oct 20:04 |
building git on SuSE 12.2 | Chris Mohler | 22 Oct 20:31 |
building git on SuSE 12.2 | Michael Schumacher | 22 Oct 20:34 |
building git on SuSE 12.2 - gtk-doc added, but... | Dexter Filmore | 23 Oct 01:22 |
building git on SuSE 12.2 - gtk-doc added, but... | Gfxuser | 23 Oct 18:55 |
building git on SuSE 12.2 | Jon Nordby | 22 Oct 20:46 |
building git on SuSE 12.2
Hi all,
I made some futile attempts to build git on SuSE 12.2 but as soon as I try and build gegl it claims that babl (which I just built and pointed autogen for gegl at) does not exist.
So far I hacked up some scripts, the babl script for example looks like this:
#!/bin/bash
export PATH=/opt/gimp-git/bin:$PATH
export PKG_CONFIG_PATH=/opt/gimp-git/lib/pkgconfig
export LD_LIBRARY_PATH=/opt/gimp-git/lib
export ACLOCAL_FLAGS="-I /opt/gimp-git/share/aclocal $ACLOCAL_FLAGS"
export XDG_DATA_DIRS=/opt/gimp-git/share
cd babl ./autogen.sh --prefix=/opt/gimp-git && make
which then results in babl being installed in /opt/gimp-git
After that I call gegl.sh:
#!/bin/bash
export PATH=/opt/gimp-git/bin:$PATH
export PKG_CONFIG_PATH=/opt/gimp-git/lib/pkgconfig
export LD_LIBRARY_PATH=/opt/gimp-git/lib
export ACLOCAL_FLAGS="-I /opt/gimp-git/share/aclocal $ACLOCAL_FLAGS"
export XDG_DATA_DIRS=/opt/gimp-git/share
cd gegl ./autogen.sh --prefix=/opt/gimp-git && make
....which returns:
checking for BABL... no configure: error: Package requirements (babl >= 0.1.10) were not met:
No package 'babl' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
Alternatively, you may set the environment variables BABL_CFLAGS and BABL_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
Pointers appreciated.
-----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS d--(+)@ s-:+ a C++++ UL++ P+>++ L+++>++++ E-- W++ N o? K- w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@ b++(+++) DI+++ D- G++ e* h>++ r* y? ------END GEEK CODE BLOCK------
building git on SuSE 12.2
On 22 October 2012 16:52, Dexter Filmore wrote:
Hi all,
I made some futile attempts to build git on SuSE 12.2 but as soon as I try and build gegl it claims that babl (which I just built and pointed autogen for gegl at) does not exist.
So far I hacked up some scripts, the babl script for example looks like this:
#!/bin/bash export PATH=/opt/gimp-git/bin:$PATH
export PKG_CONFIG_PATH=/opt/gimp-git/lib/pkgconfig export LD_LIBRARY_PATH=/opt/gimp-git/lib export ACLOCAL_FLAGS="-I /opt/gimp-git/share/aclocal $ACLOCAL_FLAGS" export XDG_DATA_DIRS=/opt/gimp-git/sharecd babl ./autogen.sh --prefix=/opt/gimp-git && make
which then results in babl being installed in /opt/gimp-git
Not unless you also run "make install"? ;) If that is not the problem, check that "babl.pc" ends up in the expected directory ($libdir/pkgconfig) and that PKG_CONFIG_PATH is set accordingly.
building git on SuSE 12.2
Am Monday 22 October 2012 18:00:23 schrieb Jon Nordby:
On 22 October 2012 16:52, Dexter Filmore wrote:
Hi all,
I made some futile attempts to build git on SuSE 12.2 but as soon as I try and build gegl it claims that babl (which I just built and pointed autogen for gegl at) does not exist.
So far I hacked up some scripts, the babl script for example looks like this:
#!/bin/bash
export PATH=/opt/gimp-git/bin:$PATH
export PKG_CONFIG_PATH=/opt/gimp-git/lib/pkgconfig export LD_LIBRARY_PATH=/opt/gimp-git/lib export ACLOCAL_FLAGS="-I /opt/gimp-git/share/aclocal $ACLOCAL_FLAGS" export XDG_DATA_DIRS=/opt/gimp-git/sharecd babl ./autogen.sh --prefix=/opt/gimp-git && make
which then results in babl being installed in /opt/gimp-git
Not unless you also run "make install"? ;)
Ahem, of course I ran make install :}
If that is not the problem, check that "babl.pc" ends up in the expected directory ($libdir/pkgconfig) and that PKG_CONFIG_PATH is set accordingly.
Found babl-pc in /opt/gimp-git/lib64/pkgconfig:
dexter@shodan:/opt/gimp-git/lib64/pkgconfig$ cat babl.pc
prefix=/opt/gimp-git
exec_prefix=${prefix}
libdir=${exec_prefix}/lib64
includedir=${prefix}/include
Name: babl
Description: Dynamic, any to any, pixel format conversion library
Version: 0.1.11
Cflags: -I${includedir}/babl-0.1
Libs: -L${libdir} -lbabl-0.1 -lm
When I check on PKG_CONFIG_PATH from console, it is empty. I think that's the problem, but I'm not that deep into the field that I'm sure. Could be some gtk devel files are missing. gtk2-devel is there, but I wouldn't know what else I need.
building git on SuSE 12.2
Am Monday 22 October 2012 18:00:23 schrieb Jon Nordby:
On 22 October 2012 16:52, Dexter Filmore wrote:
Hi all,
I made some futile attempts to build git on SuSE 12.2 but as soon as I try and build gegl it claims that babl (which I just built and pointed autogen for gegl at) does not exist.
So far I hacked up some scripts, the babl script for example looks like this:
#!/bin/bash
export PATH=/opt/gimp-git/bin:$PATH
export PKG_CONFIG_PATH=/opt/gimp-git/lib/pkgconfig export LD_LIBRARY_PATH=/opt/gimp-git/lib export ACLOCAL_FLAGS="-I /opt/gimp-git/share/aclocal $ACLOCAL_FLAGS" export XDG_DATA_DIRS=/opt/gimp-git/share
I think I got it: the .pc files is in /opt/gimp-git/lib64/pkgconfig, the script does not point at lib64. I'll adapt that and retry.
-----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS d--(+)@ s-:+ a C++++ UL++ P+>++ L+++>++++ E-- W++ N o? K- w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@ b++(+++) DI+++ D- G++ e* h>++ r* y? ------END GEEK CODE BLOCK------
building git on SuSE 12.2
Am Monday 22 October 2012 21:17:32 schrieb Dexter Filmore:
Am Monday 22 October 2012 18:00:23 schrieb Jon Nordby:
On 22 October 2012 16:52, Dexter Filmore wrote:
Hi all,
I made some futile attempts to build git on SuSE 12.2 but as soon as I try and build gegl it claims that babl (which I just built and pointed autogen for gegl at) does not exist.
So far I hacked up some scripts, the babl script for example looks like this:
#!/bin/bash
export PATH=/opt/gimp-git/bin:$PATH
export PKG_CONFIG_PATH=/opt/gimp-git/lib/pkgconfig export LD_LIBRARY_PATH=/opt/gimp-git/lib export ACLOCAL_FLAGS="-I /opt/gimp-git/share/aclocal $ACLOCAL_FLAGS" export XDG_DATA_DIRS=/opt/gimp-git/shareI think I got it: the .pc files is in /opt/gimp-git/lib64/pkgconfig, the script does not point at lib64. I'll adapt that and retry.
I now succesfully compiled babl and gegl, calling the gimp build script (which is the same but cds to the gimp src dir)
$ ./gimp.sh
I am testing that you have the tools required to build the GNU Image Manipulation Program from git. This test is not foolproof, so if anything goes wrong, see the file HACKING for more information...
checking for libtool >= 1.5 ... Major version might be too new (2.4.2)
checking for gtkdocize ...
You must have gtk-doc installed to compile GNU Image Manipulation Program.
Install the appropriate package for your distribution,
or get the source tarball at
http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/
You can also use the option --disable-gtk-doc to skip
this test but then you will not be able to generate a
configure script that can build the API documentation.
checking for autoconf >= 2.54 ... yes (version 2.69)
checking for automake >= 1.10.0 ... yes (version 1.12.1)
checking for intltool >= 0.40.1 ... yes (version 0.50.2)
checking for xsltproc ... yes
Please install/upgrade the missing tools and call me again.
I don't know what it wants here. xsltproc is installed, just to be sure I even pulled that one's git version and installed it:
$ /opt/gimp-git/bin/xsltproc --version Using libxml 20708, libxslt 10127-GITv1.1.27-7-gd3f3331 and libexslt 816 xsltproc was compiled against libxml 20708, libxslt 10127 and libexslt 816 libxslt 10127 was compiled against libxml 20708 libexslt 816 was compiled against libxml 20708
I don't know what else to do.
-----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS d--(+)@ s-:+ a C++++ UL++ P+>++ L+++>++++ E-- W++ N o? K- w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@ b++(+++) DI+++ D- G++ e* h>++ r* y? ------END GEEK CODE BLOCK------
building git on SuSE 12.2
On Mon, Oct 22, 2012 at 3:04 PM, Dexter Filmore wrote:
checking for gtkdocize ...
You must have gtk-doc installed to compile GNU Image Manipulation Program.
Looks like you need gtk-doc.
Chris
building git on SuSE 12.2
On 22.10.2012 22:04, Dexter Filmore wrote:
You must have gtk-doc installed to compile GNU Image Manipulation Program.
Do you have gtk-doc installed?
building git on SuSE 12.2
On 22 October 2012 22:04, Dexter Filmore wrote:
Am Monday 22 October 2012 21:17:32 schrieb Dexter Filmore:
Am Monday 22 October 2012 18:00:23 schrieb Jon Nordby:
On 22 October 2012 16:52, Dexter Filmore
checking for gtkdocize ...
You must have gtk-doc installed to compile GNU Image Manipulation Program. Install the appropriate package for your distribution, or get the source tarball at
http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/ You can also use the option --disable-gtk-doc to skip this test but then you will not be able to generate a configure script that can build the API documentation.
gtk-doc looks to be missing.
building git on SuSE 12.2 - gtk-doc added, but...
Am Monday 22 October 2012 22:34:48 schrieb Michael Schumacher:
On 22.10.2012 22:04, Dexter Filmore wrote:
You must have gtk-doc installed to compile GNU Image Manipulation Program.
Do you have gtk-doc installed?
Ok, I expected the last line before the error to be the culprit and did not look further up. Heat of the battle. Installed gtk-doc and some libs that were missing, now I come as far as this:
rootme=`pwd`; \
destdir=`cd ../.. && pwd`; export destdir; \
builddir=`cd ../.. && pwd`; export builddir; \
cd . && \
PDBGEN_BACKUP=0 \
/usr/bin/perl enumcode.pl \
&& echo timestamp > $rootme/stamp-enum-code
Name "Gimp::CodeGen::enums::enums" used only once: possible typo at
enumcode.pl line 30.
Name "Gimp::CodeGen::util::FILE_EXT" used only once: possible typo at
enumcode.pl line 33.
No changes to /home/dexter/software/gimp-git/gimp/libgimp/gimpenums.h
No changes to /home/dexter/software/gimp-git/gimp/libgimp/gimpenums.c.tail
make[3]: Leaving directory `/home/dexter/software/gimp-git/gimp/tools/pdbgen'
make[3]: Entering directory `/home/dexter/software/gimp-git/gimp/tools'
CC gimptool.o
CCLD gimptool-2.0
CC test-clipboard.o
CCLD test-clipboard
make[3]: Leaving directory `/home/dexter/software/gimp-git/gimp/tools'
make[2]: Leaving directory `/home/dexter/software/gimp-git/gimp/tools'
Making all in cursors
make[2]: Entering directory `/home/dexter/software/gimp-git/gimp/cursors'
GEN tool-cursors.list
GEN gimp-tool-cursors.h
failed to load "./cursor-bad.png": Couldn't recognize the image file format
for file './cursor-bad.png'
make[2]: *** [gimp-tool-cursors.h] Fehler 1
make[2]: Leaving directory `/home/dexter/software/gimp-git/gimp/cursors'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/dexter/software/gimp-git/gimp'
make: *** [all] Fehler 2
Checked on the file: dexter@shodan:~/software/gimp-git/gimp/cursors$ file cursor-bad.png cursor-bad.png: PNG image data, 36 x 36, 8-bit/color RGBA, non-interlaced
So it's there. Why does make complain?
-----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS d--(+)@ s-:+ a C++++ UL++ P+>++ L+++>++++ E-- W++ N o? K- w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@ b++(+++) DI+++ D- G++ e* h>++ r* y? ------END GEEK CODE BLOCK------
building git on SuSE 12.2 - gtk-doc added, but...
On 23.10.12 at 03:22 pm, Dexter Filmore wrote:
failed to load "./cursor-bad.png": Couldn't recognize the image file format for file './cursor-bad.png'
make[2]: *** [gimp-tool-cursors.h] Fehler 1 make[2]: Leaving directory `/home/dexter/software/gimp-git/gimp/cursors' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/home/dexter/software/gimp-git/gimp' make: *** [all] Fehler 2Checked on the file: dexter@shodan:~/software/gimp-git/gimp/cursors$ file cursor-bad.png cursor-bad.png: PNG image data, 36 x 36, 8-bit/color RGBA, non-interlaced
So it's there. Why does make complain?
I lately had similar pain compiling GIMP and its dependencies. This brought me many steps further: https://staff.banu.com/~muks/tmp/gimp-build-script.txt together with http://wiki.gimp.org/index.php/Hacking:Building/Linux. Some dependencies might be missing on your system (the error you reported may come from a missing libpng development package), but ./configure or ./autogen.sh should tell you them.
Kind regards,
Sven