Gimp's configure do not find Gegl libs


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Gimp's configure do not find Gegl libs
# 1  
Old 10-17-2018
Gimp's configure do not find Gegl libs

Hello, I have been trying to compile Gimp. To do so, I had to compile its dependencies Babl and Gegl. After doing so I use this command to try to compile it:
Code:
./configure --prefix=/media/34GB/Arquivos-de-Programas-Linux/Gimp-2.6.0/ PKG_CONFIG_PATH=/media/34GB/Arquivos-de-Programas-Linux/Babl-0.1.10/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Gegl-0.1.6/lib/pkgconfig/

. And configures tells me:
Quote:
checking for BABL... yes
checking for GEGL... no
configure: error: Test for GEGL failed. Please get it from GEGL
It works fine for Babl but not for Gegl. Why is that? WHat can I do to change that? Thanks for your time.

Moderator's Comments:
Mod Comment edit by bakunin: changed quote- to code-tags.

Last edited by bakunin; 10-18-2018 at 01:48 AM..
# 2  
Old 10-17-2018
Quote:
Originally Posted by colt
It works fine for Babl but not for Gegl. Why is that? WHat can I do to change that? Thanks for your time.
First: i don't think you can set the variable PKG_CONFIG that way. Try:

Code:
export PKG_CONFIG_PATH=/media/34GB/Arquivos-de-Programas-Linux/Babl-0.1.10/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Gegl-0.1.6/lib/pkgconfig/
./configure --prefix=/media/34GB/Arquivos-de-Programas-Linux/Gimp-2.6.0/

instead. You can also have a look into the configure script (its a shell script) and find out what it does when checking for Babl, then apply that knowledge to where it searches for Gegl. Most probably some environment setting is either missing or not in the correct form.

I hope this helps.

bakunin
# 3  
Old 10-17-2018
Quote:
Originally Posted by bakunin
First: i don't think you can set the variable PKG_CONFIG that way. Try:

Code:
export PKG_CONFIG_PATH=/media/34GB/Arquivos-de-Programas-Linux/Babl-0.1.10/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Gegl-0.1.6/lib/pkgconfig/
./configure --prefix=/media/34GB/Arquivos-de-Programas-Linux/Gimp-2.6.0/

instead. You can also have a look into the configure script (its a shell script) and find out what it does when checking for Babl, then apply that knowledge to where it searches for Gegl. Most probably some environment setting is either missing or not in the correct form.

I hope this helps.

bakunin
Well I already used it before when compiling Gegl that needed Glib and Babl. Anyway the export attempt did not work. I started to look in the configure with
Quote:
grep babl configure
and of relevant stuff (it returned a lot of occurrences of "proBABLy") it returned this:

Code:
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"babl >= 0.0.22\"") >&5
  ($PKG_CONFIG --exists --print-errors "babl >= 0.0.22") 2>&5
  pkg_cv_BABL_CFLAGS=`$PKG_CONFIG --cflags "babl >= 0.0.22" 2>/dev/null`
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"babl >= 0.0.22\"") >&5
  ($PKG_CONFIG --exists --print-errors "babl >= 0.0.22") 2>&5
  pkg_cv_BABL_LIBS=`$PKG_CONFIG --libs "babl >= 0.0.22" 2>/dev/null`
            BABL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "babl >= 0.0.22"`
            BABL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "babl >= 0.0.22"`
                { { echo "$as_me:$LINENO: error: Test for babl failed. Please get it from http://gegl.org/" >&5
echo "$as_me: error: Test for babl failed. Please get it from http://gegl.org/" >&2;}
    { { echo "$as_me:$LINENO: error: Test for babl failed. Please get it from http://gegl.org/" >&5
echo "$as_me: error: Test for babl failed. Please get it from http://gegl.org/" >&2;}
[/quote]now with gegl: [quote]{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gegl >= 0.0.18\"") >&5
  ($PKG_CONFIG --exists --print-errors "gegl >= 0.0.18") 2>&5
  pkg_cv_GEGL_CFLAGS=`$PKG_CONFIG --cflags "gegl >= 0.0.18" 2>/dev/null`
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gegl >= 0.0.18\"") >&5
  ($PKG_CONFIG --exists --print-errors "gegl >= 0.0.18") 2>&5
  pkg_cv_GEGL_LIBS=`$PKG_CONFIG --libs "gegl >= 0.0.18" 2>/dev/null`
            GEGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gegl >= 0.0.18"`
            GEGL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gegl >= 0.0.18"`
                { { echo "$as_me:$LINENO: error: Test for GEGL failed. Please get it from http://gegl.org/" >&5
echo "$as_me: error: Test for GEGL failed. Please get it from http://gegl.org/" >&2;}
    { { echo "$as_me:$LINENO: error: Test for GEGL failed. Please get it from http://gegl.org/" >&5
echo "$as_me: error: Test for GEGL failed. Please get it from http://gegl.org/" >&2;}

I don't have knowledge of shell scripting but these two pieces seems to do the same checking for both. However gegl also has this:

Code:
ac_config_files="$ac_config_files tools/Makefile tools/pdbgen/Makefile ..... /*lots of directories not related to gegl*/  app/gegl/Makefile ..... /*more many other dir not gegl related*/ ....

and finally
Code:
"app/gegl/Makefile") CONFIG_FILES="$CONFIG_FILES app/gegl/Makefile" ;;

On this app/geggl/Makefile dir there is a lot of .h and .c file and a Makefile.am and a Makefile.in file. Shall I look into them?

Also using ./configure --help, there are these environment variables
Code:
BABL_CFLAGS C compiler flags for BABL, overriding pkg-config
  BABL_LIBS   linker flags for BABL, overriding pkg-config
  GEGL_CFLAGS C compiler flags for GEGL, overriding pkg-config
  GEGL_LIBS   linker flags for GEGL, overriding pkg-config

I tried to use
Code:
 ./configure --prefix=/media/34GB/Arquivos-de-Programas-Linux/Gimp-2.6.0/ PKG_CONFIG_PATH=/media/34GB/Arquivos-de-Programas-Linux/Babl-0.1.10/lib/pkgconfig/ GEGL_LIBS=/media/34GB/Arquivos-de-Programas-Linux/Gegl-0.1.6/lib/

and also
Code:
./configure --prefix=/media/34GB/Arquivos-de-Programas-Linux/Gimp-2.6.0/ PKG_CONFIG_PATH=/media/34GB/Arquivos-de-Programas-Linux/Babl-0.1.10/lib/pkgconfig/ GEGL_LIBS=/media/34GB/Arquivos-de-Programas-Linux/Gegl-0.1.6/lib/pkgconfig

and neither worked.

Last edited by colt; 10-18-2018 at 02:48 PM..
# 4  
Old 10-18-2018
Quote:
Originally Posted by colt
Well I already used it before when compiling Gegl that needed Glib and Babl. Anyway the export attempt did not work. I started to look in the configure with and of relevant stuff
Fair enough. My reasoning was that somehow babl worked and gegl didn't. Comparing the two might have given a reason for why that is the case.

Whenever i have to compile something from source instead of directly calling the configure script i create a little script for that which looks like this:

Code:
export SOMEVAR="<some-setting>"
...
./configure --option1="...." \
            --option2="...." \
            .... | tee ./configure.lastrun

and i add/remove/change options only there. This way i can more easily reproduce what i have done and learn from what failed. Further, i have the file configure.lastrun with all the output to examine it even when it is not on screen any more.

I also found a pointer in the Developers Wiki about maybe the wrong gegl version being used:

Quote:
GIMP build breaks for missing dependency gegl-0.2 > 0.2.0

Problem: Building GIMP fails with a message, that the dependency gegl-0.2 > 0.2.0 is not met. But in $prefix I see the GEGL files, for instance gegl-0.3.pc in $prefix/lib/pkgconfig.

Cause: You have mismatched the versions:
See the given link for details about how to deal with that.

I hope this helps.

bakunin
# 5  
Old 10-18-2018
Quote:
Originally Posted by bakunin
See the given link for details about how to deal with that.

I hope this helps.

bakunin
Code:
  1. In GEGLs build directory run make uninstall.
  2. For GEGL checkout gegl-0-2, run make and make install.
  3. Go to the GIMP build directory and run autogen.sh again, run make and make install.

Ok, I went to the dir gegl-0.1.6 (its the building dir, the install dir is Gegl-0.1.6 with capital G) and executed make uninstall.

I am not sure of what he means by
Code:
 GEGL checkout gegl-0-2

It is to I simply run make and make install again from the build dir?

Last edited by colt; 10-18-2018 at 02:45 PM..
# 6  
Old 10-18-2018
Quote:
Originally Posted by colt
I am not sure of what he means by
Code:
 GEGL checkout gegl-0-2

It is to I simply run make and make install again from the build dir?
What s/he means is to get a fresh set of sources by checking them out from the version control system, presumably git. The underlying suspicion is that you have a version mismatch between the gegl library and the main gimp program.

I hope this helps.

bakunin
# 7  
Old 10-18-2018
Quote:
Originally Posted by bakunin
What s/he means is to get a fresh set of sources by checking them out from the version control system, presumably git. The underlying suspicion is that you have a version mismatch between the gegl library and the main gimp program.

I hope this helps.

bakunin
I did that, but there is no makefile, just a makefile.am. I tried to execute the autogen.sh file, but he complains that I do not have autoreconf. Do I have to download, compile and run autotools?

I also downloaded two never versions of Gegl, 0.2.2 and 0.3.0 and tried to build both. First Both complained about my Glib versions (2.28) being two old. The first required 2.32 and the second, 2.36. I downloaded it and build it. When passing it the new Glib to both with
Code:
./configure --prefix=/media/34GB/Arquivos-de-Programas-Linux/Gegl-0.2.0/ PKG_CONFIG_PATH=/media/34GB/Arquivos-de-Programas-Linux/Babl-0.1.12/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Glib-2.28.0/lib/pkgconfig/ --disable-docs

, I received this same message from both (outisde gegl 0.3 requiring glib 2.36)
Code:
checking for GLIB - version >= 2.32.3... 
*** 'pkg-config --modversion glib-2.0' returned 2.36.0, but GLIB (2.28.0)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error: 
*** GLIB 2.32.3 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/.

Then I followed the error message tip and set up
Code:
 export LD_LIBRARY_PATH=/media/34GB/Arquivos-de-programas/Glib-2.36/lib

. It allowed the pass the configure part of gegl 0.2.2, but with the 0.3.0 I receive
Quote:
checking for GLIB - version >= 2.36.0... yes (version 2.36.0)
checking for DEP... no
configure: error:
*** GLib not found. You can find it on ftp://ftp.gtk.org
*** Errors follow:
No package 'json-glib-1.0' found
Moved on to try to build the 0.2.0 and received this:

Code:
file=`echo ca | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/bin/msgfmt -o $file ca.po
ca.po:6045:4: parse error
ca.po:6045: missing `msgstr' section
ca.po:6050:4: parse error
ca.po:6050: missing `msgstr' section
ca.po:6055:4: parse error
ca.po:6055: missing `msgstr' section
ca.po:6060:4: parse error
ca.po:6060: missing `msgstr' section
ca.po:6065:4: parse error
ca.po:6065: missing `msgstr' section
ca.po:6070:4: parse error
ca.po:6070: missing `msgstr' section
ca.po:6075:4: parse error
ca.po:6075: missing `msgstr' section
ca.po:6080:4: parse error
ca.po:6080: missing `msgstr' section
ca.po:6085:4: parse error
ca.po:6085: missing `msgstr' section
ca.po:6090:4: parse error
ca.po:6090: missing `msgstr' section
/usr/local/bin/msgfmt: too many errors, aborting
make[2]: *** [ca.gmo] Error 1
make[2]: Leaving directory `/media/34GB/Arquivos-de-Programas-Linux/gegl-0.2.2/po'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/media/34GB/Arquivos-de-Programas-Linux/gegl-0.2.2'
make: *** [all] Error 2

This msgstr on /usr/local/bin is just a sym link to its real location in /media/34GB/Arquivos-de-Programas-Linux/Gettext-0.15/bin/msgfmt. Maybe that is the cause of the error messages?

Last edited by colt; 10-18-2018 at 05:22 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Required libs to compile libXft

Hello. I am looking for all the necessary packages required to be able to compile libXft. I tried to compile libXft-2.1.8.2$ and the error message was: checking for XRENDER... checking for XRENDER... checking for X... no checking X11/extensions/Xrender.h usability... no checking... (1 Reply)
Discussion started by: colt
1 Replies

2. AIX

Create shared libs on AIX (with certain libs which are statically linked)

I want to create a shared lib with certain libs statically linked to it. I can generate a fully shared lib as follows: gcc -maix64 -DHAVE_CONFIG_H -I. -I./src -DHAVE_OPENSSL -I/usr/include/openssl -I/usr/include -I/usr/include/apr-1 -D_LARGEFILE64_SOURCE -I/usr/java8_64/include -shared -o... (0 Replies)
Discussion started by: amandeepgautam
0 Replies

3. SuSE

How to get RPM Dependencies/libs

Hi All, I wanted to install an rpm package on two suse 10 systems. It installed successfully on one system but on the other it throws an error like error: Failed dependencies: rpmlib(PayloadIsLzma) <= 4.4.2-1 is needed by linuxProj-1-1.noarch Now this means that rpnm... (4 Replies)
Discussion started by: dirshah
4 Replies

4. Programming

shared libs

The gcc version is different on my computer than on the remote computer. An ldd on my program says: Is there any way I can tell gcc to compile my program against my version of libc-2.7.so and ld-2.7.so (which I would provide along with the program) instead of the remote computer's libs ? (I do... (5 Replies)
Discussion started by: cyler
5 Replies

5. AIX

Q: AIX dynamic linked libs

I think the default extension on AIX is .a so for dynamic lib "libabc.a", we can simply link against it by specifying "-labc" but here I have a dylib which been built by some one else called "libxyz.so" on AIX. once I say "-lxyz" the linker is only looking for libxzy.a but not .so after that.... (2 Replies)
Discussion started by: acerlinux
2 Replies

6. Programming

Seeking Some libs for AIX 5.3

hello everybody! I m compiling some program with the g++ on AIX 5.3 and it needs some library that i didn't find them i am new with the AIX here is the compilation error : g++ -Daix -fpic -o printps -lxercesc1_1 -L/oracle/OraHome/lib32/ -L/epost2/blitz/lib -lhmltods -lhmltops -lgeneric... (0 Replies)
Discussion started by: eternalflame
0 Replies

7. Solaris

PZ help :configure: error: cannot find output from flex; giving up

While installing amanda server,i got the following error ## checking lex output file root... configure: error: cannot find output from flex; giving up. when i execute # which lex i got /usr/ccs/bin/lex setting the pathg does not work too After this i tried intalling flex in my /opt... (0 Replies)
Discussion started by: bullet350
0 Replies

8. Shell Programming and Scripting

who to compile needed libs with Make

Hello all my project is contains 2 directories, 2 directories are building library and one for the executable that using the libes from the other 2 Now what im doing is compiling first the 2 libs directories and then the main directory. But I will like to automate the process and to be able ... (0 Replies)
Discussion started by: umen
0 Replies

9. UNIX for Dummies Questions & Answers

configure script can't find a library

I installed libxml2 library from source and it installed itself in /usr/local/lib i added /usr/local/lib to ld.so.conf and ran a ldconfig ( as root ) then i tried to compile tablix-0.0.3 wich does require the installed version of libxml2 i ran ./configure ( as normal user ) and i get the... (2 Replies)
Discussion started by: progressdll
2 Replies

10. Programming

compiling with include & libs

I like to compile a cxx file with g++ compiler. I tried with option g++ -I<include path> -L<library path> source-file but ending with compilation error in /usr/local/bin/gcc-lib/.../crt1.o I think the libraries are not taken from proper path How to compile a cxx file with libraries... (1 Reply)
Discussion started by: ls1429
1 Replies
Login or Register to Ask a Question