Web lists-archives.com

Re: kdesrc-build and gpgme


On Tuesday, March 20, 2018 5:21:22 PM CET Sandro Knauß wrote:
> > I have many problems with gpgme compiling and it looks like, it is not
> > able to use the qt5 env provided in kdesrcbuildrc, but system one. And
> > then, fails to compile.
> >
> > how to solve this issue ?

GPGME uses pkg-config to find qt. So please check that your PKG_CONFIG_PATH 
includes <qt-install-dir>/lib/pkgconfig
Then it should take qt from your custom prefix.

> As gpgme is not anymore a KDE product you do not need to build gpgme anymore 
> from within kdesrc-build.  But if you need gpgme master branch, than ask 
> as he is part of upstream gpgme.

I've avoided bumping the dependency to GpgME in libkleo / kleopatra after the 
initial move, so we are still only requiring GPGME 1.8.0 (released 2016.11.16) 
But with some distributions this might still be too recent and you might need 
it from kdesrc-build.

> > bin/sh ../../../libtool  --tag=CXX   --mode=compile g++ -std=c++11
> > -DHAVE_CONFIG_H -I. -I/home/sancelot/kdesrc/gpgme/lang/qt/src -I../../..
> > -I/home/sancelot/kdesrc/gpgme/lang/cpp/src -I../../../src
> > -I/usr/include/qt5/QtCore -I/usr/include/qt5  -fpic
> > -I/home/sancelot/kde-latest/include -I/home/sancelot/UTILS/include
> > -DBUILDING_QGPGME   -g -O2 -Wall -Wextra -Wno-shadow -MT job.lo -MD -MP
> > -MF .deps/job.Tpo -c -o job.lo
> > /home/sancelot/kdesrc/gpgme/lang/qt/src/job.cpp
> > libtool: compile:  g++ -std=c++11 -DHAVE_CONFIG_H -I.
> > -I/home/sancelot/kdesrc/gpgme/lang/qt/src -I../../..
> > -I/home/sancelot/kdesrc/gpgme/lang/cpp/src -I../../../src
> > -I/usr/include/qt5/QtCore -I/usr/include/qt5 -fpic
> > -I/home/sancelot/kde-latest/include -I/home/sancelot/UTILS/include
> > -DBUILDING_QGPGME -g -O2 -Wall -Wextra -Wno-shadow -MT job.lo -MD -MP
> > -MF .deps/job.Tpo -c /home/sancelot/kdesrc/gpgme/lang/qt/src/job.cpp 
> > -fPIC -DPIC -o .libs/job.o
> > In file included from /home/sancelot/kdesrc/gpgme/lang/qt/src/job.cpp:

I don't see the error in this snippet can you please tell me which Qt Version 
your distro provides and send me the error off list?

GPGME "should" compile against any Qt 5 version and if it does not we should 
either bump the required version in GPGME or fix it :-)

Best regards,

Andre Heinecke |  ++49-541-335083-262  | http://www.intevation.de/
Intevation GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner

Attachment: signature.asc
Description: This is a digitally signed message part.