编辑eva时configure错误,求助。

编译打包和其他
回复
头像
xindex
帖子: 72
注册时间: 2007-01-01 12:28

编辑eva时configure错误,求助。

#1

帖子 xindex » 2008-01-29 21:43

在做configure时,出现如下提示,

代码: 全选

checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
难道是我的cpp有问题。那么如何安装cpp呢?

我执行sudo apt-get install cpp时,提示cpp已经是最新的版本了。
头像
bones7456
帖子: 8495
注册时间: 2006-04-12 20:05
来自: 杭州
联系:

#2

帖子 bones7456 » 2008-01-30 8:51

装 build-essential
关注我的blog: ε==3
头像
xindex
帖子: 72
注册时间: 2007-01-01 12:28

#3

帖子 xindex » 2008-01-30 21:31

安装了build-essential
又编译了QT4.3.3,继续configure。又出现如下的提示。

代码: 全选

checking for Qt... configure: error: Qt (>= Qt 3.0) (headers and libraries) not found. Please check your installation!
For more details about this problem, look at the end of config.log.
QT目录为:/usr/local/Trolltech/Qt-4.3.3/bin
把profile改成下面这样了。不知道对不对。

代码: 全选

# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ "$PS1" ]; then
  if [ "$BASH" ]; then
    PS1='\u@\h:\w\$ '
    if [ -f /etc/bash.bashrc ]; then
	. /etc/bash.bashrc
    fi
  else
    if [ "`id -u`" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
PATH=/usr/local/Trolltech/Qt-4.3.3/bin$PATH
  fi
fi

umask 022
其中:

代码: 全选

PATH=/usr/local/Trolltech/Qt-4.3.3/bin$PATH
是我加上去的。
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#4

帖子 BigSnake.NET » 2008-01-30 21:34

装源的
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
头像
xindex
帖子: 72
注册时间: 2007-01-01 12:28

#5

帖子 xindex » 2008-01-30 22:04

源里边的是0.41。我已经登不上去了。没办法。只好自己找了。
anandayang
帖子: 138
注册时间: 2008-01-24 16:24

#6

帖子 anandayang » 2008-01-31 21:41

加PATH有什么用, 又不是找可执行文件, 它要找头文件啊, 你要运行一下configure --help, 看看有没有关于qt的设置, 比如 with-qt 之类的, 只是打个比方; 实在不行就自己强行修改configure 脚本, 干脆到里边把qt的东东注释掉, 当然最好不要这样做 8) 8)
头像
xindex
帖子: 72
注册时间: 2007-01-01 12:28

#7

帖子 xindex » 2008-02-01 20:17

找到了关于QT设置的选项,--with-qt-dir, --with-qt-includes=DIR,--with-qt-libraries=DIR,于是执行了sudo ./configure --with-qt-dir=/usr/share/qt3 --with-qt-includes=/usr/share/qt3/include --with-qt-libraries=/usr/share/qt3/lib
结果还是一样。
执行sudo apt-get install libqt3-headers libqt3-mt-dev安装了qt的head和lib
然后又出现了新的错误。

代码: 全选

checking for KDE... configure: error:
in the prefix, you've chosen, are no KDE headers installed. This will fail.
So, check this please and use another prefix!
又sudo apt-get install kdelibs4-dev kdelibs4c2a
希望这次能通过吧。

看来默认安装的ubuntu有好多东西是不全的呀。

再sudo ./configure一次吧。
终于出现我期盼己久的Good - your configure finished. Start make now
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#8

帖子 BigSnake.NET » 2008-02-01 20:22

xindex 写了:源里边的是0.41。我已经登不上去了。没办法。只好自己找了。
那就不要用QQ了, 源里的版本协议是最新的
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
头像
lyp069
帖子: 272
注册时间: 2005-10-25 13:54
联系:

#9

帖子 lyp069 » 2008-03-11 10:28

你少一个包叫,kdelibs4-dev
头像
sevk
帖子: 2060
注册时间: 2007-05-08 16:26
系统: arch
来自: 火星内核某分子内某原子核内
联系:

#10

帖子 sevk » 2008-03-13 19:07

缺什么,只要输入sudo apt-get build-dep eva # - 为源码包配置所需的构建依赖关系

因为eva 源里有.
笔记本 :
F208S : gentoo
A460P i3G D6 : UBUNTU + WIN7
UN43D1 : UBUNTU + WIN7
1000人超级QQ群 LINUX + WIN : 31465544 或 18210387
头像
chattan
帖子: 3922
注册时间: 2007-07-11 20:59
联系:

#11

帖子 chattan » 2008-03-13 19:13

下一个最新的DEB来装上就OK了!
回复