You are not logged in.
I've been trying to get redhat-artwork to work via abs. I made icon-slicer (a makedepend) first. Here's my PKGBUILD:
pkgname=redhat-artwork
pkgver=0.88
pkgrel=1
makedepends=('icon-slicer')
pkgdesc="Redhat Artwork (Bluecurve) for GTK1/2 and QT/KDE"
depends=('gtk2' 'gtk' 'qt' 'kdelibs')
source=(http://download.fedora.us/fedora/fedora/1/i386/SRPMS.os/$pkgname-$pkgver-1.src.rpm)
build() {
cd $startdir/src
rpmunpack $pkgname-$pkgver-1.src.rpm
gzip -dc $pkgname-$pkgver-1.cpio.gz | cpio -i
tar -zxf $pkgname-$pkgver.tar.gz
cd $pkgname-$pkgver
./configure --prefix=/usr --with-qt-dir=/opt/qt
make || return 1
make DESTDIR=$startdir/pkg install
}
However, I get this error:
name a scope
redhatclient.cpp: In member function `void
KWinInternal::RedHatClient::captionChange(const QString&)':
redhatclient.cpp:991: error: `repaint' undeclared (first use this function)
redhatclient.cpp: In member function `void
KWinInternal::RedHatClient::paintEvent(QPaintEvent*)':
redhatclient.cpp:1005: error: no matching function for call to `QPainter::
QPainter(KWinInternal::RedHatClient* const)'
/opt/qt/include/qpainter.h:421: error: candidates are: QPainter::QPainter(const
QPainter&)
/opt/qt/include/qpainter.h:70: error: QPainter::QPainter(const
QPaintDevice*, const QWidget*, bool)
/opt/qt/include/qpainter.h:69: error: QPainter::QPainter(const
QPaintDevice*, bool)
/opt/qt/include/qpainter.h:68: error: QPainter::QPainter()
redhatclient.cpp:1016: error: parse error before `::' token
redhatclient.cpp:1025: error: parse error before `::' token
redhatclient.cpp:1039: error: parse error before `::' token
redhatclient.cpp:1043: error: parse error before `::' token
redhatclient.cpp:1044: error: parse error before `::' token
redhatclient.cpp:1046: error: parse error before `::' token
redhatclient.cpp:1047: error: parse error before `::' token
redhatclient.cpp:1078: error: invalid conversion from `QColor (*)(...)' to `
unsigned int'
redhatclient.cpp:1078: error: initializing argument 1 of `
QColor::QColor(unsigned int, unsigned int)'
redhatclient.cpp:1078: error: invalid conversion from `QColor (*)(...)' to `
unsigned int'
redhatclient.cpp:1078: error: initializing argument 1 of `
QColor::QColor(unsigned int, unsigned int)'
redhatclient.cpp:1087: error: invalid conversion from `QColor (*)(...)' to `
unsigned int'
redhatclient.cpp:1087: error: initializing argument 1 of `
QColor::QColor(unsigned int, unsigned int)'
redhatclient.cpp:1087: error: invalid conversion from `QColor (*)(...)' to `
unsigned int'
redhatclient.cpp:1087: error: initializing argument 1 of `
QColor::QColor(unsigned int, unsigned int)'
redhatclient.cpp:1092: error: `isActive' undeclared (first use this function)
redhatclient.cpp:1110: error: `caption' undeclared (first use this function)
redhatclient.cpp:1117: error: parse error before `::' token
redhatclient.cpp:1120: error: `AlignLeft' undeclared (first use this function)
redhatclient.cpp:1120: error: `AlignVCenter' undeclared (first use this
function)
redhatclient.cpp:1122: error: parse error before `::' token
redhatclient.cpp:1144: error: parse error before `::' token
redhatclient.cpp:1145: error: invalid conversion from `QColor (*)(...)' to `
unsigned int'
redhatclient.cpp:1145: error: initializing argument 1 of `
QColor::QColor(unsigned int, unsigned int)'
redhatclient.cpp:1148: error: request for member `hsv' in `lighterColor', which
is of non-aggregate type `QColor ()(...)'
redhatclient.cpp:1149: warning: assignment to `int' from `double'
redhatclient.cpp:1149: warning: argument to `int' from `double'
redhatclient.cpp:1165: error: `isVisible' undeclared (first use this function)
redhatclient.cpp:1174: error: `geometry' undeclared (first use this function)
redhatclient.cpp:1195: error: parse error before `::' token
redhatclient.cpp:1212: error: parse error before `::' token
redhatclient.cpp:1267: error: no matching function for call to `bitBlt(
KWinInternal::RedHatClient* const, int, int, KPixmap*&)'
/opt/qt/include/qpixmap.h:249: error: candidates are: void
bitBlt(QPaintDevice*, int, int, const QPaintDevice*, int, int, int, int,
Qt::RasterOp, bool)
/opt/qt/include/qpixmap.h:252: error: void
bitBlt(QPaintDevice*, int, int, const QImage*, int, int, int, int, int)
/opt/qt/include/qpaintdevice.h:410: error: void
bitBlt(QPaintDevice*, const QPoint&, const QPaintDevice*, const QRect&,
Qt::RasterOp, bool)
/opt/qt/include/qimage.h:336: error: void bitBlt(QImage*, int,
int, const QImage*, int, int, int, int, int)
redhatclient.cpp: In member function `void
KWinInternal::RedHatClient::doShape()':
redhatclient.cpp:1332: error: `setMask' undeclared (first use this function)
redhatclient.cpp: In member function `void
KWinInternal::RedHatClient::showEvent(QShowEvent*)':
redhatclient.cpp:1340: error: parse error before `::' token
redhatclient.cpp: In member function `void
KWinInternal::RedHatClient::mouseDoubleClickEvent(QMouseEvent*)':
redhatclient.cpp:1347: error: `workspace' undeclared (first use this function)
redhatclient.cpp: In member function `void
KWinInternal::RedHatClient::maximizeChange(bool)':
redhatclient.cpp:1355: error: `setTipText' undeclared (first use this function)
redhatclient.cpp: In member function `void
KWinInternal::RedHatClient::activeChange(bool)':
redhatclient.cpp:1364: error: `repaint' undeclared (first use this function)
redhatclient.cpp: In member function `void
KWinInternal::RedHatClient::calcHiddenButtons()':
redhatclient.cpp:1397: error: `isVisible' undeclared (first use this function)
redhatclient.cpp:1398: error: `hide' undeclared (first use this function)
redhatclient.cpp:1405: error: `show' undeclared (first use this function)
redhatclient.cpp: At global scope:
redhatclient.cpp:1410: error: syntax error before `::' token
redhatclient.cpp: In member function `void
KWinInternal::RedHatClient::menuButtonPressed()':
redhatclient.cpp:1437: error: `rect' undeclared (first use this function)
redhatclient.cpp:1439: error: `mapToGlobal' undeclared (first use this
function)
redhatclient.cpp:1440: error: `setDown' undeclared (first use this function)
redhatclient.cpp: At global scope:
redhatclient.cpp:1447: error: syntax error before `*' token
redhatclient.cpp:1466: error: parse error before `}' token
In file included from redhatclient.cpp:1468:
redhatclient.moc: In static member function `static QMetaObject*
KWinInternal::RedHatClient::staticMetaObject()':
redhatclient.moc:54: error: no class template named `Client' in `KWinInternal'
redhatclient.moc: In member function `virtual void*
KWinInternal::RedHatClient::qt_cast(const char*)':
redhatclient.moc:78: error: parse error before `::' token
In file included from redhatclient.cpp:1468:
redhatclient.moc: In member function `virtual bool
KWinInternal::RedHatClient::qt_invoke(int, QUObject*)':
redhatclient.moc:87: error: parse error before `::' token
In file included from redhatclient.cpp:1468:
redhatclient.moc: In member function `virtual bool
KWinInternal::RedHatClient::qt_emit(int, QUObject*)':
redhatclient.moc:94: error: parse error before `::' token
redhatclient.moc: In member function `virtual bool
KWinInternal::RedHatClient::qt_property(int, int, QVariant*)':
redhatclient.moc:100: error: parse error before `::' token
make[5]: *** [redhatclient.lo] Error 1
make[5]: Leaving directory `/home/jake/abs/redhat-artwork/src/redhat-artwork-0.88/art/kde/kwin/Bluecurve'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/jake/abs/redhat-artwork/src/redhat-artwork-0.88/art/kde/kwin'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/jake/abs/redhat-artwork/src/redhat-artwork-0.88/art/kde'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jake/abs/redhat-artwork/src/redhat-artwork-0.88/art'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jake/abs/redhat-artwork/src/redhat-artwork-0.88'
make: *** [all-recursive-am] Error 2
==> ERROR: Build Failed. Aborting...
(sorry it's so long)
Any suggestions?
"To be a Spartan is to be a philosopher much more than to be an athlete."
Plato, the <i>Protagoras</i>, 342e-343a
Offline
This is a nasty task. Have you given it up? I am trying to wade through it right now, perhaps we could work together.
Offline
It compiled fine on GCC 3.3.x, so I assume it's because of GCC 3.4.0. I don't know how to solve the problem though.
"Contrary to popular belief, penguins are not the salvation of modern technology. Neither do they throw parties for the urban proletariat."
Offline
Ok, I've made a nice little redhat-artwork package, the only thing I really don't like about it, is that you can not choose between gnome/gtk or kde/qt, it needs both. I don't really have the know-how to hack to configuration scripts like that, altough I am trying.
BTW, if anyone wants the PKGBUILD I will post.
Offline
this seems to be a gcc 3.4 issue [maybe you should google for a patch in the source of redhat-artwork that will make the sources gcc 3.4 -compatible]
mig, what did you change [maybe you compile with gcc 3.3?]
post the PKGBUILD
{i didn't quite well understood, but Redhat's artwork is mostly know in GNOME so just cut KDE off}
Offline
I am using gcc-3.4.0
Here is the pkgbuild, you will need rpmunpack to use it:
pkgname=redhat-artwork
pkgver=0.96
pkgrel=1
makedepends=('icon-slicer')
pkgdesc="Redhat Artwork (Bluecurve) for GTK1/2 and QT/KDE"
depends=('gtk2' 'gtk' 'qt' 'kdelibs' 'gdk-pixbuf' 'kdebase')
source=(http://download.fedora.redhat.com/pub/fedora/linux/core/development/SRPMS/redhat-artwork-0.96-1.src.rpm)
build() {
cd $startdir/src
rpmunpack $pkgname-$pkgver-1.src.rpm
gzip -dc $pkgname-$pkgver-1.cpio.gz | cpio -i
tar -zxf $pkgname-$pkgver.tar.gz
cd $pkgname-$pkgver
./configure --prefix=/usr --with-qt-dir=/opt/qt
make || return 1
make DESTDIR=$startdir/pkg install
}
In my opinion, this is a dodgy way to do things. I would like, in the future, to have seperate KDE and GNOME packages. Also, I have not looked into the precompiled rpm's, will do that tonight.
Lemme know if you need the icon-slicer PKGBUILD
Offline
Lemme know if you need the icon-slicer PKGBUILD
pkgname=icon-slicer
pkgver=0.3
pkgrel=1
pkgdesc="icon-slicer is a utility for generating icon themes and libXcursor cursor themes."
url="http://freedesktop.org/Software/icon-slicer"
source=(http://freedesktop.org/Software/icon-slicer/releases/$pkgname-$pkgver.tar.gz)
md5sums=(5c5374d4f265b0abe4daef1d03f87104)
build() {
cd $startdir/src
tar -zxf $pkgname-$pkgver.tar.gz
cd $pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make prefix=$startdir/pkg/usr install
}
Does this look right?
Edit: I couldn't get the redhat-artwork package to work untill I installed perlxml.
And for some odd reason everything is working but the bluecurve window border.
Offline
mig wrote:Lemme know if you need the icon-slicer PKGBUILD
pkgname=icon-slicer pkgver=0.3 pkgrel=1 pkgdesc="icon-slicer is a utility for generating icon themes and libXcursor cursor themes." url="http://freedesktop.org/Software/icon-slicer" source=(http://freedesktop.org/Software/icon-slicer/releases/$pkgname-$pkgver.tar.gz) md5sums=(5c5374d4f265b0abe4daef1d03f87104) build() { cd $startdir/src tar -zxf $pkgname-$pkgver.tar.gz cd $pkgname-$pkgver ./configure --prefix=/usr make || return 1 make prefix=$startdir/pkg/usr install }
Does this look right?
Edit: I couldn't get the redhat-artwork package to work untill I installed perlxml.
And for some odd reason everything is working but the bluecurve window border.
That PKGBUILD is fine. The thing about the window borders, they need to be located in the /opt/gnome/share/themes directory. I will fix this tonight.
Offline
Ok, here it is:
redhat-artwork PKGBUILD:
pkgname=redhat-artwork
pkgver=0.96
pkgrel=1
makedepends=('icon-slicer')
pkgdesc="Redhat Artwork (Bluecurve) for GTK1/2 and QT/KDE"
depends=('gtk2' 'gtk' 'qt' 'kdelibs' 'gdk-pixbuf' 'kdebase')
install=redhat-artwork.install
source=(http://download.fedora.redhat.com/pub/fedora/linux/core/development/SRPMS/redhat-artwork-0.96-1.src.rpm)
build() {
cd $startdir/src
rpmunpack $pkgname-$pkgver-1.src.rpm
gzip -dc $pkgname-$pkgver-1.cpio.gz | cpio -i
tar -zxf $pkgname-$pkgver.tar.gz
cd $pkgname-$pkgver
./configure --prefix=/usr --with-qt-dir=/opt/qt
make || return 1
make DESTDIR=$startdir/pkg install
}
and here is the install script:
redhat-artwork.install
# move metacity Bluecurve themes to proper place
post_install() {
mkdir /opt/gnome/share/themes/Bluecurve
mv /usr/share/themes/Bluecurve/metacity-1 /opt/gnome/share/themes/Bluecurve/
mv /usr/share/themes/Bluecurve-classic /opt/gnome/share/themes/
/bin/true
}
post_remove() {
rm -rf /opt/gnome/share/themes/Bluecurve
rm -rf /opt/gnome/share/themes/Bluecurve-classic
/bin/true
}
op=$1
shift
$op $*
Try this out, it works for me.
Offline
...
Offline
Why can't you do that moving within the PKGBUILD? It looks like there's nothing magical that you're doing.
I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal
Offline
Why can't you do that moving within the PKGBUILD? It looks like there's nothing magical that you're doing.
What about the removal of the directories once one wants to remove the package?
Offline
If you directories exist inside the package, then pacman will remove them like normal.
I didn't want to actually have to write out the lines, but thus:
mkdir $startdir/pkg/opt/gnome/share/themes/Bluecurve
mv $startdir/pkg/usr/share/themes/Bluecurve/metacity-1 $startdir/pkg/opt/gnome/share/themes/Bluecurve/
mv $startdir/pkg/usr/share/themes/Bluecurve-classic $startdir/pkg/opt/gnome/share/themes/
You're not doing anything "special" by copying the files. To makepkg there's no difference where the files come from, they're just packaged up like everything else.
I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal
Offline
If you directories exist inside the package, then pacman will remove them like normal.
I didn't want to actually have to write out the lines, but thus:
mkdir $startdir/pkg/opt/gnome/share/themes/Bluecurve
mv $startdir/pkg/usr/share/themes/Bluecurve/metacity-1 $startdir/pkg/opt/gnome/share/themes/Bluecurve/
mv $startdir/pkg/usr/share/themes/Bluecurve-classic $startdir/pkg/opt/gnome/share/themes/
You're not doing anything "special" by copying the files. To makepkg there's no difference where the files come from, they're just packaged up like everything else.
Hey man, we are all learning here. Thank you for the information.
Here is the new PKGBUILD:
pkgname=redhat-artwork
pkgver=0.96
pkgrel=1
makedepends=('icon-slicer')
pkgdesc="Redhat Artwork (Bluecurve) for GTK1/2 and QT/KDE"
depends=('gtk2' 'gtk' 'qt' 'kdelibs' 'gdk-pixbuf' 'kdebase')
source=(http://download.fedora.redhat.com/pub/fedora/linux/core/development/SRPMS/redhat-artwork-0.96-1.src.rpm)
build() {
cd $startdir/src
rpmunpack $pkgname-$pkgver-1.src.rpm
gzip -dc $pkgname-$pkgver-1.cpio.gz | cpio -i
tar -zxf $pkgname-$pkgver.tar.gz
cd $pkgname-$pkgver
./configure --prefix=/usr --with-qt-dir=/opt/qt
make || return 1
make DESTDIR=$startdir/pkg install
mkdir -p $startdir/pkg/opt/gnome/share/themes/Bluecurve
mv $startdir/pkg/usr/share/themes/Bluecurve/metacity-1 $startdir/pkg/opt/gnome/share/themes/Bluecurve/
mv $startdir/pkg/usr/share/themes/Bluecurve-classic $startdir/pkg/opt/gnome/share/themes/
}
Offline
Would it be worth it to use a precompiled rpm file and just do some directory copying instead of useing the source rpm to compile? It would be easier to seperate a KDE and GNOME version I think.
Offline
Wow. Thanks again... I have been looking for a way to get this theme on arch for awhile. If you need any help doing a KDE and Gnome version I would be glad to help.
Offline
i justed tryed to compile this and it didnt work the link for redhat-artwork is too old
Offline
BTW, if anyone wants the PKGBUILD I will post.
Yes if you could send me the packagebuild for Redhat-artwork that would be great
madhattr@linuxmail.org
Offline
Is there any chance to install artwork only for qt without gtk? (I don't have gtk* installed on my system and I don't want to).
Gnome - The weakest link!
Linux, *not* GNU/Linux!
Offline
no, RPMs are binary, and they fuck up with other versions of GTK or QT. If you want to make KDE or Gnome packages, create two copies of your PKGBUILD, in one of them, set gtk2 as makedepend and qt as depend, and then rm -rf the gtk part from it after the make install part. Same goes for the other way around.
Offline
grep: /usr/lib/libGL.la: No such file or directory
/usr/bin/sed: can't read /usr/lib/libGL.la: No such file or directory
libtool: link: `/usr/lib/libGL.la' is not a valid libtool archive
make[6]: *** [kwin3_bluecurve.la] Error 1
make[6]: Leaving directory `/var/abs/local/bluecurve/src/redhat-artwork-0.97/art/kde/kwin/Bluecurve'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/var/abs/local/bluecurve/src/redhat-artwork-0.97/art/kde/kwin/Bluecurve'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/abs/local/bluecurve/src/redhat-artwork-0.97/art/kde/kwin'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/abs/local/bluecurve/src/redhat-artwork-0.97/art/kde'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/abs/local/bluecurve/src/redhat-artwork-0.97/art'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/abs/local/bluecurve/src/redhat-artwork-0.97'
make: *** [all-recursive-am] Error 2
==> ERROR: Build Failed. Aborting...
those are the error messages i get....anyone got any hints? thanks.
EDIT:
fix is here: http://bbs.archlinux.org/viewtopic.php? … t=libgl+la[/b]
Offline
Hey there.. I created the package and it appears to install correctly but It only seems to install the gtk and gtk2 themes.. the qt isn't installing for me. Does anybody have an insight as to why this might be?
Offline
Hey there.. I created the package and it appears to install correctly but It only seems to install the gtk and gtk2 themes.. the qt isn't installing for me. Does anybody have an insight as to why this might be?
It's probably not installing the qt theme correctly (obviously). I'm looking into this package again. I will post what I come up with.
Edit:
pkgname=icon-slicer
pkgver=0.3
pkgrel=1
pkgdesc="icon-slicer is a utility for generating icon themes and libXcursor cursor themes."
url="http://freedesktop.org/Software/icon-slicer"
source=(http://freedesktop.org/Software/icon-slicer/releases/$pkgname-$pkgver.tar.gz)
md5sums=(5c5374d4f265b0abe4daef1d03f87104)
build() {
cd $startdir/src
tar -zxf $pkgname-$pkgver.tar.gz
cd $pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make prefix=$startdir/pkg/usr install
}pkgname=icon-slicer
pkgname=redhat-artwork
pkgver=0.96
pkgrel=1
makedepends=('icon-slicer' 'perlxml')
pkgdesc="Redhat Artwork (Bluecurve) for GTK1/2 and QT/KDE"
depends=('gtk2' 'gtk' 'qt' 'kdelibs' 'gdk-pixbuf' 'kdebase')
source=(ftp://download.fedora.redhat.com/pub/fedora/linux/core/2/SRPMS/redhat-artwork-0.96-1.src.rpm)
md5sums=(e47ff1e725236159f975d8a46ef6e359)
build() {
cd $startdir/src
rpmunpack $pkgname-$pkgver-1.src.rpm
gzip -dc $pkgname-$pkgver-1.cpio.gz | cpio -i
tar -zxf $pkgname-$pkgver.tar.gz
cd $pkgname-$pkgver
./configure --prefix=/usr --with-qt-dir=/opt/qt
make || return 1
make DESTDIR=$startdir/pkg install
mkdir -p $startdir/pkg/opt/gnome/share/themes/Bluecurve
mv $startdir/pkg/usr/share/themes/Bluecurve/metacity-1 $startdir/pkg/opt/gnome/share/themes/Bluecurve/
mv $startdir/pkg/usr/share/themes/Bluecurve-classic $startdir/pkg/opt/gnome/share/themes/
}
These two will get the GTK side working but I'm not sure about Qt yet. It's acting kinda strange. It looks like everything installs correctly but as you can see it's not showing up in kde control center.
Edit2:
From what I can tell it's not packaging the qt, kde or xmms parts of the package. Hmm.. the hole gets deeper..
I think there is something fundamentally wrong with the makefile that's being built. I can't find the cause of the problem just yet. And now it's time to sack out till tomorrow. Signing off...
Offline
Ok cool.. good to know it's not just me. Thanks for looking into it again. I'd really love to have a unified desktop and gtk-qt-themer doesn't do it for me as it is right now.
Offline
This is a PKGBUILD for the newest redhat-artwork:
pkgname=redhat-artwork
pkgver=0.98
pkgrel=2
makedepends=('icon-slicer')
pkgdesc="Redhat Artwork (Bluecurve) for GTK1/2 and QT/KDE"
depends=('gtk2' 'gtk' 'qt' 'kdelibs' 'gdk-pixbuf' 'kdebase')
source=(http://download.fedora.redhat.com/pub/fedora/linux/core/development/SRPMS/redhat-artwork-0.98-1.src.rpm)
build() {
cd $startdir/src
rpmunpack $pkgname-$pkgver-1.src.rpm
gzip -dc $pkgname-$pkgver-1.cpio.gz | cpio -i
tar -zxf $pkgname-$pkgver.tar.gz
cd $pkgname-$pkgver
./configure --prefix=/usr --with-qt-dir=/opt/qt
make || return 1
make DESTDIR=$startdir/pkg install
mkdir -p $startdir/pkg/opt/gnome/share/themes/Bluecurve
mv $startdir/pkg/usr/share/themes/Bluecurve/metacity-1 $startdir/pkg/opt/gnome/share/themes/Bluecurve/
mv $startdir/pkg/usr/share/themes/Bluecurve-classic $startdir/pkg/opt/gnome/share/themes/
}
Enjoy!
Offline