Skip to content

Commit

Permalink
Merge pull request #1 from zerkella/master
Browse files Browse the repository at this point in the history
Added missing information how to put Phalcon source code to the compilation process
  • Loading branch information
Phalcon committed Sep 18, 2013
2 parents cfe7615 + b5d0e99 commit ad31933
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions reference/compilation.rst
Original file line number Diff line number Diff line change
@@ -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
---------------------
Expand All @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit ad31933

Please sign in to comment.