tools.html 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?php
  2. $title = "Installing Developer Tools";
  3. include("../header.inc");
  4. ?>
  5. <h2>Installing the Developer Tools</h2>
  6. <div class="mac-instructions">
  7. <h4>Mac OS X</h4>
  8. <ol>
  9. <li><p>Install Xcode</p>
  10. <p>Get Xcode from <a target="installtools" href="https://developer.apple.com/downloads">https://developer.apple.com/downloads</a>. Xcode 3.1.4 or later is required to build.</p>
  11. <li><p>Install the Xcode Command Line Tools (located under Xcode Preferences > Downloads)</p>
  12. <p><b>Note:</b> Before you can use the Xcode 4.3.2 tools, you must either run <code>sudo xcode-select -switch /Applications/Xcode.app</code> or
  13. set the environment variable DEVELOPER_DIR to <code>/Applications/Xcode.app/Contents/Developer</code>. See <a href="x-man-page://xcode-select">the <code>xcode-select</code> man page</a> for more details.</p>
  14. <p><b>Note:</b> This step is not required for versions of Xcode earlier than 4.3.</p>
  15. <li><p>Install Java for Mac OS X Developer Package</p>
  16. <p>Download and install the latest OS-appropriate &ldquo;Java for Mac OS X Developer Package&rdquo; from <a target="installtools" href="https://developer.apple.com/downloads">https://developer.apple.com/downloads</a>.</p>
  17. </ol>
  18. </div>
  19. <div class="windows-instructions">
  20. <h4>Windows</h4>
  21. <ol>
  22. <li><p>You can build with either Visual Studio 2010 or Visual Studio 2010 express. (Newer versions currently unsupported)</p>
  23. <p>Install <a target="installtools" href="http://www.microsoft.com/en-us/download/details.aspx?id=23691">Microsoft Visual Studio 2010 Service Pack 1</a>.</p>
  24. <p>If you are building from Vista, install <a target="installtools" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=90e2942d-3ad1-4873-a2ee-4acc0aace5b6&amp;displaylang=en">Service Pack 1 Update for Windows Vista</a>.</p>
  25. <p>Use the default options for these installations.</p>
  26. <li><p>Install Cygwin</p>
  27. <p>Cygwin is a collection of utilities for Windows that includes not only a Subversion
  28. client, but also additional tools that are required to build the WebKit source. We
  29. have made a downloader available that automatically collects all of the required
  30. packages.
  31. <p>Download <a
  32. href="http://svn.webkit.org/repository/webkit/trunk/Tools/CygwinDownloader/cygwin-downloader.zip">cygwin-downloader.zip</a>.</p>
  33. <p>Extract the content of the archive to some folder and start <code>cygwin-downloader.exe</code> from that folder.
  34. This will download all the Cygwin packages you need.</p>
  35. <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
  36. 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>
  37. <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
  38. likely 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>
  39. <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>
  40. <p><b>Warning:</b> If you are running Vista or Windows 7, Cygwin may have trouble with implementing <code>fork</code>
  41. (the POSIX function frequently used to start child processes, needed by many of the WebKit build tools).
  42. In 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.
  43. One 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.
  44. <p>In order to rebase all cygwin dlls a <code>rebaseall</code> script is provided in the cygwin installation's <code>bin</code> directory
  45. (usually <code>C:\cygwin\bin</code>).
  46. This script must be run from <code>ash.exe</code> (found in the same directory) while no other cygwin application is running.<br>
  47. <code>ash.exe</code> has very limited command line editing features so cutting and pasting to the commandline is recommended.<br>
  48. The <code>PATH</code> environment variable may not contain the <code>/bin</code> directory by default
  49. thus the script should be launched as <code>/bin/rebaseall</code>.<br>
  50. If <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>),
  51. fix the permissions on that folder (i.e. <code>/bin/chown you /cygdrive/c/Users/you/AppData/Local/Temp</code>) or
  52. change the TMP environment variable to point to a directory with the appropriate permission flags (i.e.: <code>export TMP=/tmp</code>).
  53. <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
  54. and passing the file to <code>rebaseall</code> via the <code>-T fileName</code> commandline argument.
  55. The dlls under <code>LayoutTests/http/conf</code> are a relevant use case.</p>
  56. <p>Remove the following lines from <code>/home/[username]/.bashrc</code> (if present):
  57. <p class=code>
  58. <div>unset TMP</div>
  59. <div>unset TEMP</div>
  60. </p>
  61. Those lines would prevent picking up the Windows TMP and TEMP environment variables.</p>
  62. <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):
  63. <ul><li>In bash (Cygwin) run: <code>svn help</code>. This will create in your cygwin home directory the file .subversion/servers.</li>
  64. <li>Edit the file mentioned above and follow the instructions in the file to set up your proxy settings.</li></ul></p>
  65. <li><p>Install QuickTime SDK</p>
  66. <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.
  67. <li><p>Install DirectX SDK</p>
  68. <p>Download the <a href="http://www.microsoft.com/en-us/download/details.aspx?id=6812">June 2010 DirectX SDK</a> This is needed for accelerated compositing.</p>
  69. </p>
  70. <li><p>Optional: Install the 32-bit version of Debugging Tools for Windows</p>
  71. <p>Debugging Tools for Windows includes many useful debugging tools such as WinDbg and NTSD. Some of WebKit&rsquo;s tests and scripts use these tools. Follow the <a target="installtools" href="http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx#b">instructions for installing the 32-bit version of Debugging Tools for Windows</a>.</p>
  72. <li><p>Optional: Hotfix for 64-bit Windows to disable the user-mode callback filter for exceptions</p>
  73. <p>Without the <a href="http://support.microsoft.com/kb/976038">976038 hotfix</a>, exceptions may be thrown in callback routines that do not cause a crash but leave the application in an inconsistent state that might cause a crash later. You will need to click on "View and request hotfix downloads" and fill out the form. A link to download the hotfix and a password will be emailed to you.</p>
  74. </ol>
  75. </div>
  76. <div class="gtk-instructions">
  77. <h4>GTK</h4>
  78. Follow the instructions on the <a href="http://trac.webkit.org/wiki/BuildingGtk">BuildingGTK</a> wiki page.
  79. </div>
  80. <div class="qt-instructions">
  81. <h4>QT</h4>
  82. Follow the instructions on the <a href="http://trac.webkit.org/wiki/QtWebKit">QtWebKit</a> wiki page.
  83. </div>
  84. <div class="efl-instructions">
  85. <h4>EFL</h4>
  86. Follow the instructions on the <a href="http://trac.webkit.org/wiki/EFLWebKit">EFLWebKit</a> wiki page.
  87. </div>
  88. <p>Once you have installed your developer tools, the next step is
  89. <a href="checkout.html">getting the code</a>.</p>
  90. <?php
  91. include("../footer.inc");
  92. ?>