Changeset 85008 in webkit


Ignore:
Timestamp:
Apr 26, 2011 9:10:37 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-04-26 Carol Szabo <carol.szabo@nokia.com>

Reviewed by Tor Arne Vestbø.

Added instructions on how to work from behind proxy
and detailed the instructions refering to rebasing.
Windows build instructions do not work if you are behind a proxy
or have a Temp directory that you do not own directly.
https://bugs.webkit.org/show_bug.cgi?id=57246

  • building/tools.html:
Location:
trunk/Websites/webkit.org
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Websites/webkit.org/ChangeLog

    r83382 r85008  
     12011-04-26  Carol Szabo  <carol.szabo@nokia.com>
     2
     3        Reviewed by Tor Arne Vestbø.
     4
     5        Added instructions on how to work from behind proxy
     6        and detailed the instructions refering to rebasing.
     7        Windows build instructions do not work if you are behind a proxy
     8        or have a Temp directory that you do not own directly.
     9        https://bugs.webkit.org/show_bug.cgi?id=57246
     10
     11        * building/tools.html:
     12
    1132011-04-09  Dimitri Glazkov  <dglazkov@chromium.org>
    214
  • trunk/Websites/webkit.org/building/tools.html

    r74301 r85008  
    2626<p>Install <a target="installtools" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=7c8729dc-06a2-4538-a90d-ff9464dc0197&amp;displaylang=en">Visual Studio 2005 Service Pack 1 ATL Security Update</a>.</p>
    2727<p>Install the following hotfixes to improve Visual Studio's performance and responsiveness:</p>
    28 <ol>
     28<ol style="list-style-type: lower-alpha">
    2929<li><a target="installtools" href="http://code.msdn.microsoft.com/KB918559">KB918559</a></li>
    3030<li><a target="installtools" href="http://code.msdn.microsoft.com/KB935225">KB935225</a></li>
     
    5050<p>Download <a
    5151href="http://svn.webkit.org/repository/webkit/trunk/Tools/CygwinDownloader/cygwin-downloader.zip">cygwin-downloader.zip</a>.</p>
    52 <p>Right-click <code>cygwin-downloader.zip</code> and choose <b>Extract All...</b>.
    53 Keep all the default options and click <b>Next</b> until the file is extracted and the cygwin-downloader folder opens.</p>
    54 <p>Double-click <code>cygwin-downloader.exe</code>. This will download all the Cygwin packages you need.</p>
    55 <p>When all the packages have finished downloading, the Cygwin installer will launch. Choose <b>Install from Local Directory</b>, then click <b>Next</b> until the install is complete. If you are running Vista, the installer won't be able to launch automatically, so you will have to manually launch Cygwin's Setup.exe.</p>
    56 <P>Vista may warn you that Cygwin did not install correctly. Ignore this warning and tell Vista that the install was successful.</p>
    57 <p>If you are running Vista, click on the Start menu, enter the following command, and press Enter:</p>
    58 <p class="code">C:\cygwin\bin\ash -c /bin/rebaseall</p>
    59 <p>Remove the following lines from <code>/home/[username]/.bashrc</code>:
     52<p>Extract the content of the archive to some folder and start <code>cygwin-downloader.exe</code> from that folder.
     53This will download all the Cygwin packages you need.</p>
     54<p>When all the packages have finished downloading, the Cygwin installer will launch. Choose <b>Install from Local Directory</b>, then click <b>Next</b> until the
     55install is complete. If you are running Vista, the installer won't be able to launch automatically, so you will have to manually launch Cygwin's Setup.exe.</p>
     56<p><b>Note:</b> If you are behind a proxy you need to set the <code>http_proxy</code> environment variable to the URL of the proxy. This would
     57likely match this pattern: <code>http[s]://[username[:password]@]somehost.com[:port]</code>. Where the square brackets ([]) are not part of the url but enclose url elements that are optional indicating that those elements might be missing in your case together with their enclosed delimiter such as @ and :.</p>
     58<p><b>Note:</b> Vista may warn you that Cygwin did not install correctly. Ignore this warning and tell Vista that the install was successful.</p>
     59<p><b>Warning:</b> If you are running Vista or Windows 7, Cygwin may have trouble with implementing <code>fork</code>
     60(the POSIX function frequently used to start child processes, needed by many of the WebKit build tools).
     61In order to enable <code>cygwin1.dll</code> to implement fork successfully it is better if no DLL loaded in the parent process is relocated at runtime.
     62One way to achive this is to rebase all cygwin dlls except <code>cyglsa64.dll</code> and <code>cygwin1.dll</code> to base addresses that cause them to not overlap in memory.
     63<p>In order to rebase all cygwin dlls a <code>rebaseall</code> script is provided in the cygwin installation's <code>bin</code> directory
     64(usually <code>C:\cygwin\bin</code>).
     65This script must be run from <code>ash.exe</code> (found in the same directory) while no other cygwin application is running.<br>
     66<code>ash.exe</code> has very limited command line editing features so cutting and pasting to the commandline is recommended.<br>
     67The <code>PATH</code> environment variable may not contain the <code>/bin</code> directory by default
     68thus the script should be launched as <code>/bin/rebaseall</code>.<br>
     69If <code>rebaseall</code> is complaining about failure to write to a Windows Temp directory (i.e. <code>/cygdrive/c/Users/you/AppData/Local/Temp</code>),
     70fix the permissions on that folder (i.e. <code>/bin/chown you /cygdrive/c/Users/you/AppData/Local/Temp</code>) or
     71change the TMP environment variable to point to a directory with the appropriate permission flags (i.e.: <code>export TMP=/tmp</code>).
     72<p><b>Note:</b> The rebase process may need to be repeated to include any new libraries added later to cygwin by listing these libraries by full cygwin path in a file
     73and passing the file to <code>rebaseall</code> via the <code>-T fileName</code> commandline argument.
     74The dlls under <code>LayoutTests/http/conf</code> are a relevant use case.</p>
     75<p>Remove the following lines from <code>/home/[username]/.bashrc</code> (if present):
    6076<p class=code>
    6177<div>unset TMP</div>
     
    6379</p>
    6480Those lines would prevent picking up the Windows TMP and TEMP environment variables.</p>
    65 
     81<p>If you are behind a proxy you need to do the following to allow cygwin svn to get through the proxy (similar steps are available for your Windows svn):
     82<ul><li>In bash (Cygwin) run: <code>svn help</code>. This will create in your cygwin home directory the file .subversion/servers.</li>
     83<li>Edit the file mentioned above and follow the instructions in the file to set up your proxy settings.</li></ul></p>
    6684<li><p>Install QuickTime SDK</p>
    6785<p>Download QuickTime SDK for Windows from <a href="http://developer.apple.com/quicktime/download/">http://developer.apple.com/quicktime/download/</a> and install it to the default location (\Program Files\QuickTime SDK). This is needed for media support.
Note: See TracChangeset for help on using the changeset viewer.