如果没有配置文件,如何从源构建

时间:2012-01-29 09:11:36

标签: linux build

通常我从./configure开始,但没有提供配置文件。 这些是目录内容:

autogen.sh      configure.ac  GNUmakefile.am  Makefile.shared  Source  WebKitLibraries  wscript
CMakeLists.txt  Examples      Makefile        ManualTests      Tools   WebKit.pro

我如何建立这个?我应该跑autogen.sh吗?我试过了,这就是结果:

autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I Source/autotools 
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --install --copy
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `Source/autotools'.
libtoolize: copying file `Source/autotools/config.guess'
libtoolize: copying file `Source/autotools/config.sub'
libtoolize: copying file `Source/autotools/install-sh'
libtoolize: copying file `Source/autotools/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `Source/autotools'.
libtoolize: copying file `Source/autotools/libtool.m4'
libtoolize: copying file `Source/autotools/ltoptions.m4'
libtoolize: copying file `Source/autotools/ltsugar.m4'
libtoolize: copying file `Source/autotools/ltversion.m4'
libtoolize: copying file `Source/autotools/lt~obsolete.m4'
libtoolize: Consider adding `-I Source/autotools' to ACLOCAL_AMFLAGS in Makefile.am.
autoreconf: running: /usr/bin/autoconf --include=Source/autotools
autoreconf: running: /usr/bin/autoheader --include=Source/autotools
autoreconf: running: automake --add-missing --copy --no-force
configure.ac:81: installing `Source/autotools/compile'
configure.ac:41: installing `Source/autotools/missing'
Tools/GNUmakefile.am:285: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL
GNUmakefile.am:235:   `Tools/GNUmakefile.am' included from here
GNUmakefile.am: installing `Source/autotools/depcomp'
autoreconf: automake failed with exit status: 1

发生了什么事?

1 个答案:

答案 0 :(得分:1)

看起来这个项目使用cmake;尝试:

 mkdir build
 cd build
 cmake ..