2013-05-10 50 views
0

我尝试编译libwebsocket包,使用程序是: -错误编译时 - 使用AUTOGEN产生的makefile

./autogen 
./configure 
make 

我在化妆的时间越来越libtool的错误:---

make 
make all-recursive 
make[1]: Entering directory `/home/ignite/rpi_package_sb2/libwebsockets-1.0-chrome25-firefox17' 
Making all in lib 
make[2]: Entering directory `/home/ignite/rpi_package_sb2/libwebsockets-1.0-chrome25-firefox17/lib' 
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wall -std=gnu99 -pedantic -rdynamic -fPIC -Werror -c -DINSTALL_DATADIR=\"/usr/share\" -DLWS_OPENSSL_CLIENT_CERTS=\"/etc/pki/tls/certs/\" -g -O2 -MT libwebsockets_la-libwebsockets.lo -MD -MP -MF .deps/libwebsockets_la-libwebsockets.Tpo -c -o libwebsockets_la-libwebsockets.lo `test -f 'libwebsockets.c' || echo './'`libwebsockets.c 
../libtool: line 862: X--tag=CC: command not found 
../libtool: line 895: libtool: ignoring unknown tag : command not found 
../libtool: line 862: X--mode=compile: command not found 
../libtool: line 1029: *** Warning: inferring the mode of operation is deprecated.: command not found 
../libtool: line 1030: *** Future versions of Libtool will require --mode=MODE be specified.: command not found 
../libtool: line 1173: Xgcc: command not found 
../libtool: line 1173: X-DHAVE_CONFIG_H: command not found 
../libtool: line 1173: X-I.: command not found 
../libtool: line 1173: X-I..: command not found 
../libtool: line 1173: X-Wall: command not found 
../libtool: line 1173: X-std=gnu99: command not found 
../libtool: line 1173: X-pedantic: command not found 
../libtool: line 1173: X-rdynamic: command not found 
../libtool: line 1173: X-fPIC: command not found 
../libtool: line 1173: X-Werror: command not found 
../libtool: line 1173: X-c: command not found 
../libtool: line 1173: X-DINSTALL_DATADIR="/usr/share": No such file or directory 
../libtool: line 1173: X-DLWS_OPENSSL_CLIENT_CERTS="/etc/pki/tls/certs/": No such file or directory 
../libtool: line 1173: X-g: command not found 
../libtool: line 1173: X-O2: command not found 
../libtool: line 1173: X-MT: command not found 
../libtool: line 1173: Xlibwebsockets_la-libwebsockets.lo: command not found 
../libtool: line 1173: X-MD: command not found 
../libtool: line 1173: X-MP: command not found 
../libtool: line 1173: X-MF: command not found 
../libtool: line 1173: X.deps/libwebsockets_la-libwebsockets.Tpo: No such file or directory 
../libtool: line 1173: X-c: command not found 
../libtool: line 1226: Xlibwebsockets_la-libwebsockets.lo: command not found 
../libtool: line 1231: libtool: compile: cannot determine name of library object from `': command not found 
make[2]: *** [libwebsockets_la-libwebsockets.lo] Error 1 
make[2]: Leaving directory `/home/ignite/rpi_package_sb2/libwebsockets-1.0-chrome25-firefox17/lib' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory `/home/ignite/rpi_package_sb2/libwebsockets-1.0-chrome25-firefox17' 
make: *** [all] Error 2 

我搜索对谷歌&发现这两个链接都使用陈述运行 - autoreconf -fi命令

http://forums.gentoo.org/viewtopic-t-870737-start-0.html
https://openlinuxforums.org/index.php?topic=3119.0

autoreconf -fi命令会做什么?是否重新configure.ac文件?
是此序列正确,重新编译套件?

autoreconf -fi 
./autogen 
./configure 
make 
+0

最近我有同样的问题。 解决方法:http://stackoverflow.com/a/30477516/2485895 – juanra 2015-05-27 08:53:02

回答

0

如果你只是想建立自己的包和他们的编译过程失败,我想至少它报告给他们的用户的邮件列表。也许有人已经找到了适合你的东西。

autoreconf -fi将重新生成configure脚本,重写Makefile.in和其他东西。它确实而不是再生configure.ac。你的新序列可能会或可能不会工作。