|
原来那些帖子里面给的源码包和pkg包下载地址打不开,于是就去ubuntu源上找了一个:
http://mirrors.163.com/ubuntu/pool/universe/e/eva/
下载了
eva_0.4.921+svn42.orig.tar.gz
然后自己写了个PKGBUILD:
pkgname=eva
pkgver=0.4.921
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc='QQ protocol instant messaging client for KDE.'
url='http://sourceforge.net/projects/evaq'
license='GPL'
depends=('kdelibs' 'qt3')
source=(file://$startdir/$pkgname_$pkgver+svn42.orig.tar.gz)
md5sums=('09289c18dee9036c61f1d2d07a3f3b76')
build() {
cd $srcdir/$pkgname-$pkgver+svn42
./configure --prefix=`kde-config --prefix` --prefix=/usr --without-arts
make || return 1
make DESTDIR=$startdir/pkg install
}
configure完成之后,make出错:
In file included from /usr/include/QtCore/qbasicatomic.h:227:0,
from /usr/include/QtCore/qatomic.h:46,
from /usr/include/QtCore/qshareddata.h:46,
from /usr/include/QtGui/qtextformat.h:47,
from /usr/include/QtGui/qtextobject.h:46,
from /usr/include/QtGui/qsyntaxhighlighter.h:50,
from /usr/include/QtGui/QSyntaxHighlighter:1,
from /usr/include/sonnet/highlighter.h:24,
from /usr/include/ktextedit.h:24,
from evatextedit.h:23,
from evachatuibase.cpp:22:
/usr/include/QtCore/qatomic_arch.h:92:4: error: #error "Qt has not been ported to this architecture"
In file included from /usr/include/QtCore/qatomic.h:46:0,
from /usr/include/QtCore/qshareddata.h:46,
from /usr/include/QtGui/qtextformat.h:47,
from /usr/include/QtGui/qtextobject.h:46,
from /usr/include/QtGui/qsyntaxhighlighter.h:50,
from /usr/include/QtGui/QSyntaxHighlighter:1,
from /usr/include/sonnet/highlighter.h:24,
from /usr/include/ktextedit.h:24,
from evatextedit.h:23,
from evachatuibase.cpp:22:
/usr/include/QtCore/qbasicatomic.h:47:1: error: ‘QT_BEGIN_HEADER’ does not name a type
/usr/include/QtCore/qbasicatomic.h:207:26: error: expected ‘;’ before ‘(’ token
/usr/include/QtCore/qbasicatomic.h:208:26: error: expected ‘;’ before ‘(’ token
/usr/include/QtCore/qbasicatomic.h:209:26: error: expected ‘;’ before ‘(’ token
/usr/include/QtCore/qbasicatomic.h:210:26: error: expected ‘;’ before ‘(’ token
/usr/include/QtCore/qbasicatomic.h:221:1: error: ‘QT_END_NAMESPACE’ does not name a type
In file included from /usr/include/QtCore/qshareddata.h:46:0,
from /usr/include/QtGui/qtextformat.h:47,
from /usr/include/QtGui/qtextobject.h:46,
from /usr/include/QtGui/qsyntaxhighlighter.h:50,
from /usr/include/QtGui/QSyntaxHighlighter:1,
from /usr/include/sonnet/highlighter.h:24,
from /usr/include/ktextedit.h:24,
from evatextedit.h:23,
from evachatuibase.cpp:22:
/usr/include/QtCore/qatomic.h:224:1: error: ‘QT_END_NAMESPACE’ does not name a type
In file included from /usr/include/QtGui/qtextformat.h:47:0,
from /usr/include/QtGui/qtextobject.h:46,
from /usr/include/QtGui/qsyntaxhighlighter.h:50,
from /usr/include/QtGui/QSyntaxHighlighter:1,
from /usr/include/sonnet/highlighter.h:24,
from /usr/include/ktextedit.h:24,
from evatextedit.h:23,
from evachatuibase.cpp:22:
/usr/include/QtCore/qshareddata.h:56:21: error: variable ‘Q_CORE_EXPORT QSharedData’ has initializer but incomplete type
/usr/include/QtCore/qshareddata.h:58:1: error: expected primary-expression before ‘public’
/usr/include/QtCore/qshareddata.h:58:1: error: expected ‘}’ before ‘public’
/usr/include/QtCore/qshareddata.h:58:1: error: expected ‘,’ or ‘;’ before ‘public’
/usr/include/QtCore/qshareddata.h: In function ‘int QSharedData()’:
/usr/include/QtCore/qshareddata.h:61:28: error: only constructors take base initializers
/usr/include/QtCore/qshareddata.h: At global scope:
/usr/include/QtCore/qshareddata.h:62:30: error: ‘QSharedData’ does not name a type
/usr/include/QtCore/qshareddata.h: In function ‘int QSharedData(const int&)’:
/usr/include/QtCore/qshareddata.h:62:47: error: only constructors take base initializers
/usr/include/QtCore/qshareddata.h: At global scope:
/usr/include/QtCore/qshareddata.h:64:1: error: expected unqualified-id before ‘private’
/usr/include/QtCore/qshareddata.h:67:1: error: expected declaration before ‘}’ token
make[3]: *** [evachatuibase.lo] Error 1
make[3]: Leaving directory `/home/pluto/build/src/eva-0.4.921+svn42/src/ui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/pluto/build/src/eva-0.4.921+svn42/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pluto/build/src/eva-0.4.921+svn42'
make: *** [all] Error 2
Aborting...
好像大都是语法上的错误,我的gcc是
gcc (GCC) 4.5.0 20100610 (prerelease)
还请问各位这问题咋解决?非常感谢!
P.S. configure里面--without-arts,因为它提示找不到mcopidl,这玩意儿是在哪个包里面的? |
|