You are not logged in.
I am trying to compile a plugin that should make gnome-globalmenu work with qt apps. It should be fairly simple, the source tree only holds 3 files. I am however, sadly so incompetent that I can't work out what to do with my own improvised PKGBUILD to make it compile:
#Maintainer Anders Honoré <b9anders AT gmail DOT com>
pkgname=qt4-gnome-globalmenu-git
pkgver=20111022
pkgrel=1
pkgdesc="An extention to make the menus for QT apps show on the Gnome global menu bar."
url="https://gitorious.org/firefox-gnome-globalmenu/qt4-gnome-globalmenu"
license="GPL"
arch=('i686' 'x86_64')
depends=('gnome-globalmenu-xfce4' 'qt-appmenu' 'appmenu-qt')
makedepends=('git' 'qt-private-headers')
_gitroot='git://gitorious.org/firefox-gnome-globalmenu/qt4-gnome-globalmenu.git'
_gitname='qt4-gnome-globalmenu'
optdepends=()
options=()
conflicts=()
provides=('qt4-gnome-globalmenu-git')
replaces=()
install=
source=()
md5sums=()
build() {
cd $startdir/src
msg "Connecting to GIT server...."
if [ -d $startdir/src/$_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot
cd $_gitname
fi
msg "GIT checkout done or server timeout"
qmake
make
}
package() {
make DESTDIR=$pkgdir PREFIX=/usr install
}
Obviously something is missing at the end of it here, but I don't know enough about compiling stuff to say what.
Last edited by b9anders (2011-10-22 14:54:23)
Offline
anyone?
Offline
*edited* sorry, wrong topic
Last edited by stefanwilkens (2011-10-21 15:02:28)
Arch i686 on Phenom X4 | GTX760
Offline
lol. Got my hopes up for a second there, Stefan.
Offline
to compile:
qmake
make
Offline
to compile:
qmake
make
thanks for replying. I added the following to the end of the PKGBUILD above:
msg "GIT checkout done or server timeout"
qmake
make
}
package() {
make DESTDIR=$pkgdir PREFIX=/usr install
}
And changed the dependencies after pursuing some error messages:
depends=('gnome-globalmenu-xfce4' 'qt-appmenu' 'appmenu-qt')
makedepends=('git' 'qt-private-headers')
and ran makepkg -s (I updated the PKGBUILD in the OP to reflect the changes). The output is more than before but it doesn't get very far before exiting:
g++ -c -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include -I. -o qx11menubarimpl.o qx11menubarimpl.cpp
In file included from qx11menubarimpl.cpp:10:0:
qx11menubarimpl.h:9:54: fatal error: QtGui/private/qabstractplatformmenubar_p.h: No such file or directory
compilation terminated.
make: *** [qx11menubarimpl.o] Error 1
The only hits google recognises for "QtGui/private/qabstractplatformmenubar_p.h" are for a package Fedora names 'libqt4-private-dev' and Ubuntu's 'qt-devel-private'. From what I can it tell, qt-private-headers should be the corresponding package in Arch (and is included in the dependencies for that reason) but I can find no trace of the missing file in my system after having installed it.
Kinda stuck from here. :-/
Last edited by b9anders (2011-10-22 14:55:32)
Offline
I suspect that header file is in the qt sources (private headers are not really meant to be used externally so it's not in the qt package) . So you could look there. You could also ask the upstream qt4-gnome-globalmenu-git dev about it.
Offline