You are not logged in.
OK, so cwiid doesn't build anymore.
As I have explained in the AUR comment, I can build it if I go the manual way of "./configure; make", but if I use a PKGBUILD I can't get it to build.
The package can be found here: http://aur.archlinux.org/packages.php?ID=16332 and my modified PKGBUILD is posted there too. I have modified this PKGBUILD from the original one in the AUR; but I'll just post it here too for simplicity's sake:
# Contributor: Birger Moellering <suppressed for the forums>
# Contributor: Stunts <suppressed for the forums>
pkgname=cwiid
pkgver=0.6.00
pkgrel=6
pkgdesc="Development version of wiimote's driver and utility tools"
arch=(i686 x86_64)
url="http://github.com/abstrakraft/cwiid/tarball/"
depends=('flex' 'bison' 'bluez>=4' 'gtk2' 'python')
conflicts=('cwiid-svn')
provides=('cwiid-svn')
license=("GPL2")
install=cwiid.install
source=(http://github.com/abstrakraft/$pkgname/tarball/$pkgname-$pkgver.tar.gz)
build() {
cd $srcdir/abstrakraft-cwiid-eb1b492
aclocal
autoconf
./configure --prefix=/usr --sysconfdir=/etc
make || return 1
make DESTDIR=$pkgdir install
}
md5sums=('9d9d34342c46ade95738d27b7967d49d')
Anything fundamentally wrong with it?
I'm quite positive that "cd $srcdir/abstrakraft-cwiid-eb1b492" should not be like that, I made it as a quick workaround.
Anyone more experienced than me can land a hand please?
Thank you very much.
Last edited by Stunts (2009-11-10 22:18:50)
Offline
Hi Stunts,
I agree that "cd $srcdir/abstrakraft-cwiid-eb1b492" should not be like that, but it is not clear to me where this comes from. The PKGBUILD in AUR has the standard "cd $srcdir/$pkgname-$pkgver" which should be OK.
I had a look at the package. I think it has some bugs. I managed to overcome some by using "make LDFLAGS="-lrt -lbluetooth" || return 1" in the PKGBUILD, but it still errs with "/usr/bin/ld: cannot find -lcwiid", which beats me.
Offline
Hi leepesjee, and thanks for your reply.
The code has moved to github, so now the download is a bit different from the one in the original PKGBUILD.
Did you try to build cwiid using the original PKGBUILD, or did you try it using mine?
Did you have success building it using ./configure; make ?
Note that in order to do this you must also run "aclocal; autoconf".
I'll try applying your tip "make LDFLAGS="-lrt -lbluetooth" || return 1" (as soon as I get on my eeePC) and see where I end up at. I'm not sure what it does at all, since I'm rather new at this. Care to explain?
Thanks again.
Offline
The cd should be
cd "$srcdir/abstrakraft-$pkgname"-*Posting the error output might help us find the problem, but it is likely linked to the LDFLAGS set by makepkg.conf. Try putting "LDFLAGS=" in build()
[git] | [AURpkgs] | [arch-games]
Offline
Hi stunts,
The link you provided don't seem to exist anymore. Anyway, from whatever location you download the 0.6.00 tarball (it is now located at
http://github.com/abstrakraft/cwiid/downloads/ ) doesn't matter, you get the same errors (I did). I saw in AUR that there's also a svn version, but it's also outdated and gives the same errors. I have posted a message.
The 0.6.00 source lacks some references to libraries here and there (this might have to do with gcc versions, don't know). the
"LDFLAGS="-lrt -lbluetooth" is a (bit rude) solution to make sure that these references are there.
Anyway, I tried the master branch in the git repository and that did compile. So the problems are solved and the normal thing to do is to use that version. We should create a cwiid-git PKGBUILD. The maintainer of the svn version might want to do that. You may give it a try yourself.
I don't use the application, nor have experience with git-packages. It can't be that difficult, though. If you can't work it out, I'm willing to assist.
Offline
Hello everyone, and thank you for your help.
I have taken leepesjee's advice and built from git master branch (first time I ever used git - yay!)
Everything was working - ./configure; make.
Therefore I decided to make a package for the AUR - cwiid-git.
I came up with the following PKGBUILD:
# Author: Stunts <SNIP>
# Contirbutor: piezoelectric
# Contirbutor: leepesjee
# Contirbutor: Daenyth
pkgname=cwiid-git
pkgver=20091109
pkgrel=1
pkgdesc="GIT version of wiimote's driver and utility tools"
arch=(i686 x86_64)
url="http://github.com/abstrakraft/cwiid/"
depends=('flex' 'bison' 'bluez>=4' 'gtk2' 'python' 'git')
conflicts=('cwiid-svn' 'cwiid')
provides=('cwiid-svn' 'cwiid')
license=("GPL2")
source=()
md5sums=()
_gitroot="git://github.com/abstrakraft/cwiid.git"
_gitname="cwiid"
build() {
cd ${srcdir}
msg "Connecting to github.com GIT server...."
git clone $_gitroot
msg "GIT checkout done or server timeout"
msg "Starting make..."
cd ${srcdir}/$_gitname
aclocal
autoconf
./configure --prefix=/usr --sysconfdir=/etc
make LDFLAGS="-L../libcwiid -lrt -lbluetooth" || return 1
make LDFLAGS="-L../libcwiid -lrt -lbluetooth" DESTDIR=$pkgdir install
msg "In order to use wminput yo must load the 'uinput' kernel module."
msg "/dev/uinput must have the correct permissions to be usable."
msg "For more information: 'man wminput'."
}I found out which part was different in the gcc -flags(I think they are called flags, I'm not sure) was different when I typed "make" in the cli from when "make" came from the PKGBUILD and I came up with the LDFLAGS="-L../libcwiid -lrt -lbluetooth" part. That did the trick.
However, in the very end - during the make install part, using fakeroot - I get an error. It's not an exit error, but It makes the pakage.tar.gz be missing the binaries, and who-knows-what-else.
The error is a permission error (WTF?):
ldconfig
ldconfig: Can't create temporary cache file /etc/ld.so.cache~: Permission denied
make[1]: *** [install_shared] Error 1
make[1]: Leaving directory `/home/francisco/Programming/AUR/cwiid/src/cwiid/libcwiid'
make: *** [libcwiid] Error 2And then makepkg finishes.
I won't try building as root since that could mess my /etc/ld.so.cache~ (which exists).
1st request:
Can you tell me what is wrong?
2nd request:
Can you suggest any improvements to my new PKGBUILD - I'll post it to the AUR the moment it's working.
Thanks once again.
Offline
"provides=('cwiid-svn' 'cwiid')" looks confusing to me. I would just use "provides=('cwiid')"
Your error comes from the fact that the build does a "ldconfig". This is to let the system know about the library that's been build, so to speak. That can only be done as root. Anyway, "ldconfig" is not appropriate in this stage, as the library is not at his final location. That's why the 0.6.00 package had a "--disable-ldconfig" attribute in the configure line. You need that as well.
If i'am not mistaken, pacman takes care of the "ldconfig', when you install the package, so you won't have to bother about that.
I had the opinion that you wouldn't need the LDFLAGS="-L../libcwiid -lrt -lbluetooth" in the make commands anymore. Don't exactly understand your comments on that.
Offline
Hi again, and thanks for your comments on my PKGBUILD.
Apparently in the meantime a new package came up in the AUR. "cwiid-git". It's made by the author of "cwiid-svn".
His PKGBUILD is more elegant than mine, so I guess it's all solved now.
On another note, I'm sorry my comments are not clear, leepesjee. Regarding the 'LDFLAGS="-L../libcwiid -lrt -lbluetooth"' part, I simply meant that the PKGBUILD would error out without it, despite the fact that it would work without that part if I was building directly from bash.
The maintainer of this package seems to be much more experienced than me, so I guess everyone's better off that way. =-)
Anyway, I wish to thank both of you for your assistance. I have learned a great deal about compiling software from source and PKGBUILDs from your comments.
Edit: Marked the thread [Solved].
Last edited by Stunts (2009-11-10 22:19:39)
Offline
Just an update: I'm kind of stubborn, so I insisted on my PKGBUILD, and now it's working just like it should - no need to be root to do it. It's all thanks to you!
Too bad there's no need for it anymore, I guess...
Offline
Is it still building? The yaourt-git isn't. ![]()
Offline
I'll test it tonight and report back.
But if the PKGBUILD in AUR is not building, than I'd say mine isn't either.
I'll try to find a way around it tough.
Offline
Hm, it worked well oin my laptop. Starting to think that my htpc might have som hw-error, odd things keep happening for no reason.
Offline
Just tested rebuilding cwiid-git from AUR.
It's working just fine in here.
You've probably got some glitchy hardware in your htpc...
Offline
Guess it is the storage. It is running off a Corsair Voyager flash drive. It was running fine just before christmas, but maybe it has taken its share of writes. Think it has a "lifetime" 10year warranty though, so maybe all is not lost. :
Offline