我在ubuntu8.10上装了kdevelop3.5.3,建了一个simple hello world program,成功地通过了automake和run configure,但就是通不过编译,compile file后产生的错误如下:
cd '/home/chenym/workspace/test1/debug/src' && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" LC_MESSAGES="C" LC_CTYPE="C" make test1.lo
compiling test1.cpp (g++)
../libtool: line 832: X--tag=CXX: command not found
../libtool: line 865: libtool: ignoring unknown tag : command not found
../libtool: line 832: X--mode=compile: command not found
../libtool: line 999: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: line 1000: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../libtool: line 1143: Xg++: command not found
../libtool: line 1143: X-DHAVE_CONFIG_H: command not found
../libtool: line 1143: X-I.: command not found
../libtool: line 1143: X-I/home/chenym/workspace/test1/src: No such file or directory
../libtool: line 1143: X-I..: command not found
../libtool: line 1143: X-O0: command not found
../libtool: line 1143: X-g3: command not found
../libtool: line 1143: X-MT: command not found
../libtool: line 1143: Xtest1.lo: command not found
../libtool: line 1143: X-MD: command not found
../libtool: line 1143: X-MP: command not found
../libtool: line 1143: X-MF: command not found
../libtool: line 1143: X.deps/test1.Tpo: No such file or directory
../libtool: line 1143: X-c: command not found
../libtool: line 1195: Xtest1.lo: command not found
../libtool: line 1200: libtool: compile: cannot determine name of library object from `': command not found
make: *** [test1.lo] Error 1
*** Exited with status: 2 ***
build project后的错误如下:
cd '/home/chenym/workspace/test1/debug' && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" LC_MESSAGES="C" LC_CTYPE="C" make
make all-recursive
Making all in src
linking test1 (g++)
../libtool: line 832: X--tag=CXX: command not found
../libtool: line 865: libtool: ignoring unknown tag : command not found
../libtool: line 832: X--mode=link: command not found
../libtool: line 999: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: line 1000: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
gcc-4.1: no input files
gcc-4.1: no input files
gcc-4.1: no input files
gcc-4.1: no input files
../libtool: line 2237: X-O0: command not found
../libtool: line 2237: X-g3: command not found
../libtool: line 2406: Xtest1: command not found
X: user not authorized to run the X server, aborting.
../libtool: line 2418: Xtest1: command not found
../libtool: line 2426: mkdir /.libs: No such file or directory
mkdir: cannot create directory `/.libs': Permission denied
make[2]: *** [test1] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
*** Exited with status: 2 ***
我第一次来红联,请红联的高人帮帮我吧,这个问题已经困扰我两天了!
wd007 于 2009-02-17 21:06:33发表:
你的Qt恐怕安装不成功,安装完后,在输入qmake
看看提示信息,如果是"command not found"
则表示安装不成功,需要重新安装
wd007 于 2009-02-17 21:04:08发表:
用-l选项看看还有什么依赖
bzhao 于 2008-12-06 22:49:49发表:
Please see the link:
https://bugs.launchpad.net/ubuntu/+source/libtool/+bug/285841
chenym69 于 2008-10-12 20:12:07发表:
如题
wangdu2002 于 2008-10-12 19:55:21发表:
应该把所有Qt和一些开发工具都装完了才行,我也用过K edelop,功能还行,就是好慢.
chenym69 于 2008-10-12 19:05:15发表:
我的环境配置如下:
KDE 3.5.10
Qt 3.3.8
g++ 4.1
GNU make 3.81
perl 5.10.0
autoconf 2.61
automake 1.9.6
flex 2.5.35
libtool 2.2.2
Berkley 4.3