After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 787005 - unable to compile. libmypaint error
unable to compile. libmypaint error
Status: RESOLVED NOTABUG
Product: GIMP
Classification: Other
Component: General
git master
Other Linux
: Normal normal
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2017-08-30 07:58 UTC by fabrixx2
Modified: 2017-08-31 18:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description fabrixx2 2017-08-30 07:58:35 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
Comment 1 Michael Schumacher 2017-08-30 08:24:44 UTC
pkg-config needs to be able to find the library. 

Are the corresponding development files of libmypaint present?
Comment 2 fabrixx2 2017-08-30 11:14:51 UTC
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."
Comment 3 Michael Schumacher 2017-08-30 13:29:59 UTC
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.
Comment 4 fabrixx2 2017-08-30 20:29:18 UTC
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
Comment 5 fabrixx2 2017-08-30 21:16:53 UTC
I usedonly: ./autogen.sh --prefix=$PREFIX
Comment 6 Michael Schumacher 2017-08-31 06:12:50 UTC
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.
Comment 7 fabrixx2 2017-08-31 18:10:09 UTC
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.
Comment 8 Michael Schumacher 2017-08-31 18:13:37 UTC
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.