LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 692|回复: 4

eva 0.4.921编译问题

[复制链接]
发表于 2010-8-5 16:42:35 | 显示全部楼层 |阅读模式
原来那些帖子里面给的源码包和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,这玩意儿是在哪个包里面的?
发表于 2010-8-5 18:32:03 | 显示全部楼层
这家伙还能登录得上?
回复 支持 反对

使用道具 举报

发表于 2010-8-5 21:13:05 | 显示全部楼层
非常失望的告诉楼主,我前段时间就是死活装不上,编译出错的地方都已经修改好了,但在最后link到KDE3的什么 KDCOP库时出错。。。不想整了。费心,还是wine个QQ算了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-8-6 09:06:07 | 显示全部楼层
呃……好吧。。。。多谢 =。=
回复 支持 反对

使用道具 举报

发表于 2010-8-6 22:21:25 | 显示全部楼层
你如果想要打好patch的EVA,可以从我的网站下,但能编译,最后链接失败。虽然已经装了QT3,KDE3相关的库了。http://www.tangqizhong.org/software/eva-20100630.tar.gz
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表