GNOME Bugzilla – Bug 787005
unable to compile. libmypaint error
Last modified: 2017-08-31 18:13:37 UTC
Tryed renaming & linking with several names ( so.0.0--->so.0-->so). Tryed also 2.0 from git same error Error: GIMP configuration failed. Error: missing dependency libmypaint >= 1.3.0 See the file 'INSTALL' for more help. $ ldconfig -p | grep libmypaint libmypaint-1.3.so.0 (libc6,x86-64) => /usr/lib/libmypaint-1.3.so.0 libmypaint-1.3.so (libc6,x86-64) => /usr/lib/libmypaint-1.3.so
pkg-config needs to be able to find the library. Are the corresponding development files of libmypaint present?
I have Arch Linux. Compiled libmypaint 2 from here: https://github.com/mypaint/libmypaint Also tried with 1.3 from here: https://github.com/mypaint/libmypaint/releases/tag/v1.3.0 I did not find anydev package AUR package require old gegl&babl dependencies From gimp-git aur comment: https://aur.archlinux.org/packages/gimp-git/ "previously gimp-git uses libmypaint-git, but libmypaint has some changes recently that may break gimp-git, so I make gimp-git stick to libmypaint-1.3."
What --prefix - if any - did you use when you ran the configure for libmypaint? Where did libmypaint's files get installed to when you ran make install? Can pkg-config find the .pc file for libmypaint at this place? Did you set the PKG_CONFIG_PATH environment variable to point pkg-config to the place where this file is located, if it is in a non-standard location? Please try to answer the questions above. If you do not understand what a question is about, please ask. DO NOT make any changes like copying, moving or renaming files.
What --prefix - if any - did you use when you ran the configure for libmypaint? I did not use any prefix Where did libmypaint's files get installed to when you ran make install? --->/usr/local/lib I created also a symbolic link in /usr/lib Original lib was in libmypaint-1.3.so.0.0.0 (or libmypaint-2.0.so.0.0.0 ) I renamed also in libmypaint-1.3.so and tried also libmypaint.so after linked and ldconfig Tried also put libs in gimp build folder. Did you set the PKG_CONFIG_PATH environment variable to point pkg-config to the place where this file is located, if it is in a non-standard location? No, I did not try to do it, maybe because I'm not capable Note: In configure file i read a strange code( # Check for libmypaint) : (27546:3) { $as_echo "$as_me:${as_lineno-$LINENO}: Eeeeeeeeeeeeeeeeeeeeek! Missing dep: libmypaint >= 1.3.0" >&5 $as_echo "$as_me: Eeeeeeeeeeeeeeeeeeeeek! Missing dep: libmypaint >= 1.3.0" >&6;} required_deps="$required_deps - Error: missing dependency libmypaint >= 1.3.0" elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: Eeeeeeeeeeeeeeeeeeeeek! Missing dep: libmypaint >= 1.3.0" >&5 $as_echo "$as_me: Eeeeeeeeeeeeeeeeeeeeek! Missing dep: libmypaint >= 1.3.0" >&6;} required_deps="$required_deps - Error: missing dependency libmypaint >= 1.3.0" else LIBMYPAINT_CFLAGS=$pkg_cv_LIBMYPAINT_CFLAGS LIBMYPAINT_LIBS=$pkg_cv_LIBMYPAINT_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi
I usedonly: ./autogen.sh --prefix=$PREFIX
You should read this: https://askubuntu.com/questions/210210/pkg-config-path-environment-variable Has a nice explanation of what this environment variable does and why it has to be set. It even uses the value you'll have to set it to for your environment. As a general rule: if you are adjusting anything but environment variables in order to build software, it is very likely that you're not going the right way.
Thank you Michael Schumacher I read the useful article, cleaned my system of modified libs&links and rebuild libmypaint. after export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig (where is libmypaint.pc) (verified with echo $PKG_CONFIG_PATH) i can do a make. I'm happy to have learned.
We use the FIXED resolution when a change to GIMP source code has solved an issue. NOTABUG - as it turned out not to be one - is better in this case.