Kdesrc-build gpgme build error

Hi to all, i’m trying to the first time to build across kdesrc-buid but it stop when it try to compile gpgme it give me error:
Unable to configure gpgme with autotools:

checking for getenv_r… no
checking for timegm… yes
checking for setlocale… yes
checking for gpg-error-config… /usr/bin/gpg-error-config
checking for gpgrt-config… /usr/bin/gpgrt-config
configure: Use gpgrt-config with /usr/lib/x86_64-linux-gnu as gpg-error-config
checking for GPG Error - version >= 1.47… no
configure: Use gpgrt-config as libassuan-config
checking for LIBASSUAN - version >= 2.4.2… yes (2.5.5)
checking LIBASSUAN API version… okay
checking for getgid… yes
checking for getegid… yes
checking for closefrom… yes
checking for nanosleep… yes
checking for stpcpy… yes
checking for setenv… yes
checking for struct cmsghdr.cmsg_len… yes
checking for error_t… yes
configure:


*** You need libgpg-error to build this program.
** This library is for example available at
*** ftp.gnupg.org:gcrypt/libgpg-error/
*** (at least version 1.47 is required.)


configure: error:


*** Required libraries not found. Please consult the above messages
*** and install them before running configure again.


Can someone help me?

Quoting the error:

*** You need libgpg-error to build this program.

=> Install libgpg-error and retry.

If you’re on neon or another distribution without recent enough libgpg-error, use the workaround in 485564 – Workspace build fails on Neon developer version when trying to build gpgme

Thank’s, yes i’m working on KDE Neon, do you suggest another distro to develop?

1 Like

I would suggest Fedora Kinoite or Arch (or derivatives) would be the simplest to work with for dev, until we have KDE OS of course.

Any other distro can be ok as long as you do App development and it is recent enough. Plasma has more dependencies and need even more recent ones.
I use Kubuntu and Arch myself.

I’m on KDE Neon myself, and I needed to install the libgpg-error package from the repos. Install this and the build will be fine!

sudo apt install libgpg-error-dev

This will install both the libraries and development related files.

This is missing from the --initial-setup list of packages to preintsall.

1 Like

I’ll try to create a PR for it then. Thanks for noticing this.

I have a development setup on Tuxedo OS (which is very similar to neon), and got it to work on neon as well not too long ago. (And I’ve helped one or two people set it up on neon over the last couple months on Matrix). It works, you just need to follow the instructions in the bug report I linked, it’ll build the version of gpg-error that you need.

(Note that you are setting yourself up for some challenges to build KDE software on such old distributions, but you can usually get it to work with a bit of effort)

1 Like