我正在尝试按照以下说明在 ubuntu 12.04 中安装 Webkit: https://help.ubuntu.com/community/WebKit
当我得到这个指令时:
./autogen.sh --prefix=/usr
我收到一条错误消息:
bash: ./autogen.sh: file or directory not found
我以为脚本 autogen.sh 应该在我下载的目录中,但它不在那里。所以我尝试从这里下载它: http://sourceforge.net/projects/buildconf/files/latest/download
并将其放在我正在工作的目录中(按照 :~/src/WebKit$ 中的说明进行操作)。但它也不起作用。
~/src/WebKit$ ./autogen.sh --prefix=/usr
Unknown option: --prefix=/usr
Usage: ./autogen.sh [-h|--help] [-v|--verbose] [-q|--quiet] [-d|--download] [--version]
--help Help on autogen.sh usage
--verbose Verbose progress output
--quiet Quiet suppressed progress output
--download Download the latest config.guess from gnulib
--version Only perform GNU Build System version checks
Description: This script will validate that minimum versions of the
GNU Build System tools are installed and then run autoreconf for you.
Should autoreconf fail, manual preparation steps will be run
potentially accounting for several common preparation issues. The
AUTORECONF, AUTOCONF, AUTOMAKE, LIBTOOLIZE, ACLOCAL, AUTOHEADER,
PROJECT, & CONFIGURE environment variables and corresponding _OPTIONS
variables (e.g. AUTORECONF_OPTIONS) may be used to override the
default automatic detection behavior.
autogen.sh build preparation script by Christopher Sean Morrison
+ config.guess download patch by Sebastian Pipping (2008-12-03)
revised 3-clause BSD-style license, copyright (c) 2005-2009
script version 20090301, ISO/IEC 9945 POSIX shell script
我能做些什么?
答案1
如果您需要使用 SVN repo 从源代码构建 WebKit,您需要做的就是使用提供的构建脚本:
./Tools/gtk/install-dependencies
./Tools/Scripts/build-webkit --gtk
默认情况下,build-webkit 将构建产品放在 WebKitBuild 中。WEBKIT_OUTPUTDIR
环境变量可用于设置不同的构建产品位置。如果您设置了自定义构建位置,则 build-webkit 会将构建产品放在那里。
注意:我假设您正在为 GTK 目标构建(您可以选择 Efl、WinCE 或 GTK)