You are not logged in.
Hey there!
I'm trying to make a new PKGBUILD for QuteCom, the former wengophone-ng. The PKGBUILD currently looks this way:
# Contributor: Julius Bullinger <#####>
pkgname=qutecom-hg
pkgver=105
pkgrel=1
pkgdesc="The latest hg pull of wmii, a lightweight, dynamic window manager for X11"
url="http://wmii.suckless.org"
license='custom'
arch=('i686')
makedepends=('mercurial')
depends=('cmake>=2.4.4' 'qt>=4.2' 'boost>=1.33' 'openssl>=0.9.8a' 'glib2>=2.10.3' \
'gnutls>=1.2.9' 'e2fsprogs>=1.38' 'libxml2>=2.6.24' 'speex>=1.1.12' \
'ffmpeg>=cvs20060823' 'portaudio>=19' 'alsa-lib>=1.0.11' \
'libsndfile>=1.0.12' 'libsamplerate>=0.1.2' 'curl>=7.16.1' 'libosip>=3.0.1')
source=()
_hgroot='http://hg.qutecom.org'
_hgrepo='qutecom-2.2'
build() {
cd ${startdir}/src
if [ -d ${_hgrepo} ]; then
cd ${startdir}/src/${_hgrepo}
hg pull -u
else
hg clone ${_hgroot}${_hgrepo} || return 1
cd ${startdir}/src/${_hgrepo}
fi
msg "Mercurial checkout done or server timeout"
msg "Starting make..."
mkdir ./build
cd ./build
cmake .. \
-DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/quotecom \
-DBUILDID_SUPPORT=OFF -DFFMPEG_INTERNAL=ON \
-DPORTAUDIO_INTERNAL=OFF -DPORTAUDIO_OSS_SUPPORT=OFF \
-DPHAPI_AUDIO_OSS_SUPPORT=OFF -DCOPY_DATA_FILES_ON_CONFIGURE=OFF
make || return 1
make DESTDIR=$pkgdir install
}
As you can see, it's using mercurial and cmake. Building crashes with just saying
Linking C static library libgaim.a
[ 29%] Built target gaim
make: *** [all] Fehler 2 [=Error 2]
Since I'm no developer, I have no idea what to do. Can anybody help me, e.g. try to build it himself, and give me an hint what to do?
Thank you!
Last edited by kwurzel (2009-11-25 08:17:17)
Offline
Hi,
I just used libosip2 instead of libosip, beacuse libosip server is down and this error didn't appeared, but I failed at 47% with netlib...I'll take deeper look at it later at night
Offline
So I spent few hours till late night but I was not able to get behind that error
Offline
If you're getting the same error as I am, it's a gcc 4.3 thing. I'll post a patch shortly.
Offline
The following patch allows the build to complete:
--- qutecom-2.2/wifo/netlib/src/netlib.cpp 2008-07-08 13:03:11.386417658 +0100
+++ qutecom-2.2-build/wifo/netlib/src/netlib.cpp 2008-07-08 14:57:38.845728354 +0100
@@ -40,6 +40,7 @@
#include <sys/ioctl.h>
#include <netdb.h>
#include <strings.h>
+ #include <cstring>
#endif //OS_WIN32
#include <stdlib.h>
#include <limits.h>
I've also made some PKGBUILD changes:
# Contributor: Julius Bullinger <julius.bullinger@gmail.com>
pkgname=qutecom-hg
pkgver=105
pkgrel=1
pkgdesc="Open source softphone, mercurial build"
url="http://www.qutecom.org"
license='custom'
arch=('i686')
makedepends=('mercurial')
depends=('cmake>=2.4.4' 'qt>=4.2' 'boost>=1.33' 'openssl>=0.9.8a' 'glib2>=2.10.3' \
'gnutls>=1.2.9' 'e2fsprogs>=1.38' 'libxml2>=2.6.24' 'speex>=1.1.12' \
'ffmpeg>=cvs20060823' 'portaudio>=19' 'alsa-lib>=1.0.11' \
'libsndfile>=1.0.12' 'libsamplerate>=0.1.2' 'curl>=7.16.1' 'libosip>=3.0.1')
source=(netlib-gcc-4.3.patch)
_hgroot='http://hg.qutecom.org'
_hgrepo='qutecom-2.2'
build() {
cd ${startdir}/src
if [ -d ${_hgrepo} ]; then
cd ${startdir}/src/${_hgrepo}
hg pull -u
else
hg clone ${_hgroot}${_hgrepo} || return 1
cd ${startdir}/src/${_hgrepo}
fi
cp -r ${startdir}/src/${_hgrepo} ${startdir}/src/${_hgrepo}-build
cd ${startdir}/src/${_hgrepo}-build
msg "Mercurial checkout done or server timeout"
msg "Starting make..."
patch -Np1 -i ../netlib-gcc-4.3.patch || return 1
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr \
-DBUILDID_SUPPORT=OFF -DFFMPEG_INTERNAL=ON \
-DPORTAUDIO_INTERNAL=OFF -DPORTAUDIO_OSS_SUPPORT=OFF \
-DPHAPI_AUDIO_OSS_SUPPORT=OFF -DCOPY_DATA_FILES_ON_CONFIGURE=OFF || return 1
make || return 1
make DESTDIR=$pkgdir install
rm -rf ${startdir}/src/${_hgrepo}-build
}
The app runs for me, but with most of the interface blank - not too surprising, given that this code is intended for developers only. I'm not interested in working further on this right now, so feel free to do anything you want with the above.
Offline