trialuser02 / qt5gtk2

GTK+2.0 integration plugin for Qt5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fails to build on my system

tio-trom opened this issue · comments

commented

I use Manjaro. And tried this AUR https://aur.archlinux.org/packages/qt5gtk2 - it uses a simple PKGBUILD:

pkgname=qt5gtk2
pkgver=1.0
pkgrel=1
pkgdesc="GTK+2.0 integration plugins for Qt5"
arch=('any')
url="https://github.com/trialuser02/${pkgname}"
license=('GPL')
depends=('qt5-base')
source=("${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.bz2")
sha256sums=('d5c76b86baa7eba89db9ac7ab09b3407fb67879f14e7e1c63169e84fa048c337')

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    qmake-qt5 QMAKE_CFLAGS_RELEASE="${CFLAGS}" \
              QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}"
    make
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    make INSTALL_ROOT="${pkgdir}" install
}

I get this error:

Info: creating stash file /build/qt5gtk2/src/qt5gtk2-1.0/.qmake.stash
Project MESSAGE: PLUGINDIR=/usr/lib/qt/plugins
cd src/qt5gtk2-qtplugin/ && ( test -e Makefile || /usr/bin/qmake-qt5 -o Makefile /build/qt5gtk2/src/qt5gtk2-1.0/src/qt5gtk2-qtplugin/qt5gtk2-qtplugin.pro 'QMAKE_CFLAGS_RELEASE=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt' 'QMAKE_CXXFLAGS_RELEASE=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt' ) && make -f Makefile 
cd src/qt5gtk2-style/ && ( test -e Makefile || /usr/bin/qmake-qt5 -o Makefile /build/qt5gtk2/src/qt5gtk2-1.0/src/qt5gtk2-style/qt5gtk2-style.pro 'QMAKE_CFLAGS_RELEASE=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt' 'QMAKE_CXXFLAGS_RELEASE=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt' ) && make -f Makefile 
Project ERROR: gtk+-2.0 development package not found
make: *** [Makefile:73: sub-src-qt5gtk2-style-make_first] Error 3
make: *** Waiting for unfinished jobs....
Project ERROR: gtk+-2.0 development package not found
make: *** [Makefile:48: sub-src-qt5gtk2-qtplugin-make_first] Error 3
==> ERROR: A failure occurred in build().
    Aborting...

commented

Sorry I forgot to mention I already have that package installed. That's why it is weird why it fails...

May be missing pkg-config executable. Try to install it too:

sudo pamac instll pkgconf
commented

Even stranger, I have that package too...

Check pkg-config output:

[user@user-virtualbox ~]$ pkg-config --libs gtk+-2.0
-lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lharfbuzz -lfontconfig -lfreetype 
commented

I did:

~ >>> pkg-config --libs gtk+-2.0                                               
-lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lharfbuzz -lfontconfig -lfreetype 

Dependencies?

[user@user-virtualbox ~]$ pkg-config --libs gdk-x11-2.0 atk cairo gdk-pixbuf-2.0 gio-2.0 pangoft2
-lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lharfbuzz -lfontconfig -lfreetype
commented
~ >>> pkg-config --libs gdk-x11-2.0 atk cairo gdk-pixbuf-2.0 gio-2.0 pangoft2  
-lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lharfbuzz -lfontconfig -lfreetype 

Where is the mystery? :D

Try to use pamac:

pamac build qt5gtk2

Looks like buildpkg creates own build root without gtk+2.0 installed (missing dependency in PKGBUILD).

commented

True! Now it worked. Thank you!

commented

'pkgconf' and 'gtk2' should be added to dependencies.... I will leave a comment on the AUR packae page because when I add these everything works ok.