Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不懂编译,求助 #9

Open
Gaubee opened this issue May 23, 2013 · 7 comments
Open

不懂编译,求助 #9

Gaubee opened this issue May 23, 2013 · 7 comments

Comments

@Gaubee
Copy link

Gaubee commented May 23, 2013

Linux菜鸟.
Ubuntu 12.04-64
桌面KDE
用git clone 下你的项目后./configure

提示我

bash: ./configure: 没有那个文件或目录


我看了一下,没有configure文件,只有configure.ac文件。所以运行

sudo ./configure.ac

显示

sudo: ./configure.ac:找不到命令


sh ./configure.ac

显示


@Gaubee
Copy link
Author

Gaubee commented May 23, 2013

额,现在解决上面问题了,

sudo apt-get install autoconf

然后运行

autoconf

就好了。


但是新的问题来了。
运行./configure 后显示

./configure: line 1721: syntax error near unexpected token `-Wall'
./configure: line 1721: `AM_INIT_AUTOMAKE(-Wall)'

不懂,何解?

@cnangel
Copy link
Owner

cnangel commented May 23, 2013

运行:
./autogen.sh
若没有效果,可能你没有安装automake m4等工具,安装后
aclocal -I m4; autoheader; libtoolize --force; automake -a; autoconf

@Gaubee
Copy link
Author

Gaubee commented May 23, 2013

@cnangel
automake和m4都已经是最新了。


aclocal -I m4; 后只是显示警告 configure.ac:30: warning: macro AM_DISABLE_STATIC' not found in library`


然后
autoheader 显示错误信息 autoheader: error: AC_CONFIG_HEADERS not found in configure.ac

何解?

@Gaubee
Copy link
Author

Gaubee commented May 23, 2013

@cnangel
忘了说了,在运行 ./autogen.sh 后显示的是

./autogen.sh: 行 2: libtoolize: 未找到命令
configure.ac:30: warning: macro `AM_DISABLE_STATIC' not found in library
configure.ac:30: warning: macro `AM_DISABLE_STATIC' not found in library
Makefile.am:71: Libtool library used but `LIBTOOL' is undefined
Makefile.am:71:   The usual way to define `LIBTOOL' is to add `LT_INIT'
Makefile.am:71:   to `configure.ac' and run `aclocal' and `autoconf' again.
Makefile.am:71:   If `LT_INIT' is in `configure.ac', make sure
Makefile.am:71:   its definition is in aclocal's search path.

@cnangel
Copy link
Owner

cnangel commented May 23, 2013

libtool相关工具没有安装

2013/5/23 Gaubee [email protected]

@cnangel https://github.com/cnangel
忘了说了,在运行 ./autogen.sh 后显示的是

./autogen.sh: 行 2: libtoolize: 未找到命令
configure.ac:30: warning: macro AM_DISABLE_STATIC' not found in libraryconfigure.ac:30 : warning: macroAM_DISABLE_STATIC' not found in library
Makefile.am:71: Libtool library used but LIBTOOL' is undefined Makefile.am:71: The usual way to defineLIBTOOL' is to add LT_INIT' Makefile.am:71: toconfigure.ac' and run aclocal' andautoconf' again.
Makefile.am:71: If LT_INIT' is inconfigure.ac', make sure
Makefile.am:71: its definition is in aclocal's search path.


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-18329413
.

I love perl love me

@aceslup
Copy link

aceslup commented Aug 9, 2014

运行./configures时报错如下。
checking for PURPLE... no
configure: error:
*** libpurple 2.0+ >=2.7.0 is required to build.
解决方法为:安装libpurple-devel包即可。

另外,请教下 @cnangel ,想知道install这部分命令的解释,非常感谢制作和分享。

@cnangel
Copy link
Owner

cnangel commented Aug 11, 2014

这个autoconf的configure命令,默认使用了PKG_CONFIG_PATH来检测pc文件路径,如果没有,则失败

2014-08-09 21:40 GMT+08:00 aceslup [email protected]:

运行./configures时报错如下。
checking for PURPLE... no
configure: error:
*** libpurple 2.0+ >=2.7.0 is required to build.
解决方法为:安装libpurple-devel包即可。

另外,请教下 @cnangel https://github.com/cnangel
,想知道install这部分命令的解释,非常感谢制作和分享。


Reply to this email directly or view it on GitHub
#9 (comment).

I love perl love me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants