From b5d0e9985108d2bdd5b336f5efa3d53d079f3292 Mon Sep 17 00:00:00 2001 From: Andrey Tserkus Date: Thu, 12 Sep 2013 23:45:07 -0700 Subject: [PATCH] Added missing information on the way Phalcon source code is added to the compilation process --- reference/compilation.rst | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/reference/compilation.rst b/reference/compilation.rst index 79a6f88..2bca3ee 100644 --- a/reference/compilation.rst +++ b/reference/compilation.rst @@ -1,15 +1,21 @@ Compilation on Windows ====================== -Follow these instructions to build Phalcon in your Windows system. This guide is tested on Windows XP. +Follow these instructions to build Phalcon in your Windows system. This guide is tested on Windows XP and Windows 7. + +The Process Idea +--------------------- + +Compiling Phalcon is performed as a part of PHP compilation. This is done in order to ensure, that Phalcon is built with exactly the same defines and options as PHP. Before you Begin ---------------- -Building PHP on Windows will require three things +Building Phalcon on Windows will require four things * A properly set up build environment, including a compiler with the right SDK's and some binary tools used by the build system * Prebuilt libraries and headers for third party libraries that PHP uses in the correct location -* The PHP source. +* The PHP source +* The Phalcon source The Build Environment --------------------- @@ -27,6 +33,7 @@ Setup Quick 'n' easy - get visual studio 2008 (no matter what version - express, pro or others; all should work) and install it. Download: http://www.microsoft.com/visualstudio/en-us/products/2008-editions/express - get and install windows sdk 6.1. Download http://www.microsoft.com/en-us/download/details.aspx?id=11310 - get a php 5.3 snapshot (do not extract yet!) Download: http://windows.php.net/download/ +- get Phalcon source code: https://github.com/phalcon/cphalcon - create the folder “c:\\php-sdk“ - unpack the binary-tools.zip archive (http://windows.php.net/downloads/php-sdk/) into this directory, there should be one sub-directory called “bin” and one called “script“ - open the “windows sdk 6.1 shell” (it’s available from the start menu group) and execute the following commands in it: @@ -46,6 +53,8 @@ Setup Quick 'n' easy - in the same directory (C:\\php-sdk\\php53dev\\vc9\\x86) there is a “deps” folder, extract any of your required libraries inside that folder (see http://wiki.php.net/internals/windows/libs) but make sure their top-level contains /include and /lib (some of them have an extra directory level in there) +- put prepared Phalcon source code to C:\\php-sdk\\php53dev\\vc9\\x86\\php5.3-xyz\\ext\\phalcon folder. The prepared Phalcon source is located inside the “build\\\ *[type]*\ ” folder of the Phalcon repository, where *type* can be “safe”, “32bits” or “64bits”. For more information on how to chose proper type or regenerate that source code (which is needed for development versions of Phalcon) read the file “build\\README.md” in the Phalcon repository. + - run in the windows-sdk-shell: .. code-block:: bash