You are not logged in.

#1 2008-07-04 17:26:08

kwurzel
Member
Registered: 2008-03-25
Posts: 14

[PKGBUILD] Need help compiling QuteCom (formerly WengoPhone)

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

#2 2008-07-07 17:02:07

ProgDan
Member
From: Prague, Czech Republic
Registered: 2007-10-04
Posts: 441
Website

Re: [PKGBUILD] Need help compiling QuteCom (formerly WengoPhone)

Hi,
I just used libosip2 instead of libosip, beacuse libosip server is down smile and this error didn't appeared, but I failed at 47% with netlib...I'll take deeper look at it later at night

Offline

#3 2008-07-08 11:20:22

ProgDan
Member
From: Prague, Czech Republic
Registered: 2007-10-04
Posts: 441
Website

Re: [PKGBUILD] Need help compiling QuteCom (formerly WengoPhone)

So I spent few hours till late night but I was not able to get behind that error sad

Offline

#4 2008-07-08 14:24:52

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [PKGBUILD] Need help compiling QuteCom (formerly WengoPhone)

If you're getting the same error as I am, it's a gcc 4.3 thing. I'll post a patch shortly.

Offline

#5 2008-07-08 17:44:06

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [PKGBUILD] Need help compiling QuteCom (formerly WengoPhone)

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

Board footer

Powered by FluxBB