# Building on Windows

- Thread: https://externals.io/message/30153
- Original archive: https://news-web.php.net/php.internals/30153
- Started by Zoe Slattery on 2007-06-13T14:02:56+00:00
- Messages: 9
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #30153 — Zoe Slattery — 2007-06-13T14:02:56+00:00

URL: https://externals.io/message/30153#30153

Hi

Has anyone built PHP6 using Visual C++ Express Edition V8? The symptoms 
I get are pretty well described in http://bugs.php.net/bug.php?id=39130 
and I'm just wondering if this was fixed for PHP5 and not PHP6?


Zoe Slattery
IBM UK

---

## #30172 — Rob Richards — 2007-06-14T12:11:43+00:00

URL: https://externals.io/message/30153#30172 · In reply to: #30153

Hi Zoe,

Zoe Slattery wrote:
> Has anyone built PHP6 using Visual C++ Express Edition V8? The 
> symptoms I get are pretty well described in 
> http://bugs.php.net/bug.php?id=39130 and I'm just wondering if this 
> was fixed for PHP5 and not PHP6?
Other than a slew of warnings, it built fine for me the other day with 
VS 2005. What version of the SDK are you using as I wonder if that might 
play a part in it?

Rob

---

## #30178 — Zoe Slattery — 2007-06-14T14:28:37+00:00

URL: https://externals.io/message/30153#30178 · In reply to: #30172

Hi Rob
> Other than a slew of warnings, it built fine for me the other day with 
> VS 2005. What version of the SDK are you using as I wonder if that 
> might play a part in it?
Was your VS 2005 the Express Edition (ie the free one)? I downloaded the 
platform SDK yesterday at the same time as I got the compiler so I hoped 
:-)  that they'd work together. The Platform SDK is 2003 SP1

Zoe Slattery
IBM

---

## #30181 — Pierre — 2007-06-14T15:23:30+00:00

URL: https://externals.io/message/30153#30181 · In reply to: #30178

Hi Zoe,


> Hi Rob
> > […]
> Was your VS 2005 the Express Edition (ie the free one)? I downloaded the
> platform SDK yesterday at the same time as I got the compiler so I hoped
> :-)  that they'd work together. The Platform SDK is 2003 SP1

Take a look at Elisabeth's tutorial about using VC Express to compile
php (and php-gtk), there is a couple if important info in there:

http://elizabethmariesmith.com/2006/11/15/how-to-compile-php52-and-php-gtk2-on-windows-using-visual-c-express/

I hope it will help :)
--Pierre

---

## #30186 — Stanislav Malyshev — 2007-06-14T16:00:23+00:00

URL: https://externals.io/message/30153#30186 · In reply to: #30153

> Has anyone built PHP6 using Visual C++ Express Edition V8? The symptoms 
> I get are pretty well described in http://bugs.php.net/bug.php?id=39130 
> and I'm just wondering if this was fixed for PHP5 and not PHP6?

Ah, this is a very familiar issue, you need to set USE_32BIT_TIME_T  in 
either project or some top include. You may also want to set 
_CRT_SECURE_NO_DEPRECATE otherwise it will output a ton of warnings.
-- 
Stanislav Malyshev, Zend Products Engineer
stas@zend.com  http://www.zend.com/

---

## #30191 — Rob Richards — 2007-06-14T18:58:30+00:00

URL: https://externals.io/message/30153#30191 · In reply to: #30186

Stanislav Malyshev wrote:
> > […]
>
> Ah, this is a very familiar issue, you need to set USE_32BIT_TIME_T  
> in either project or some top include. You may also want to set 
> _CRT_SECURE_NO_DEPRECATE otherwise it will output a ton of warnings.
Unless compiling 64 bit that should already be set in config.w32.h and 
the D_USE_32BIT_TIME_T flag is added during configure (assuming compiler 
was also detected correctly).

Zoe,

check the generated Makefile to see if the above flag is being set or not.
As far as the SDK goes I think I had used that one sucessfully before 
(using Vista one now), but definitely had problems with the default one 
included with VS. And to answer your question, I'm using the full version.

Rob

---

## #30197 — Zoe Slattery — 2007-06-15T13:32:55+00:00

URL: https://externals.io/message/30153#30197 · In reply to: #30191

Rob, Pierre, Stanislav - thank you!!!

I have PHP6 building with a free development environment. Elizabeth's  
tutorial + the manual covers most of it. I still have a few spurious 
compiler warnings which I think I can deal with but I have a working 
php.exe.

It's been such a pain getting here that I'm going to rip it all out and 
do it again :-) I'll write up the steps and make them available 
somewhere then I 'll probably need to recuperate by working exclusively 
on Linux for an extended period.


Zoe Slattery
IBM

---

## #30198 — Richard Quadling — 2007-06-15T14:18:50+00:00

URL: https://externals.io/message/30153#30198 · In reply to: #30197

I would be REALLY grateful if you could do the whole process with no
assumed knowledge about the compiler or special tools.

Ideally, including the dependent elements too (SDK, .NET, etc).

Regards and thanks up front!

Richard.


> Rob, Pierre, Stanislav - thank you!!!
>
> I have PHP6 building with a free development environment. Elizabeth's
> tutorial + the manual covers most of it. I still have a few spurious
> compiler warnings which I think I can deal with but I have a working
> php.exe.
>
> It's been such a pain getting here that I'm going to rip it all out and
> do it again :-) I'll write up the steps and make them available
> somewhere then I 'll probably need to recuperate by working exclusively
> on Linux for an extended period.
>
>
> Zoe Slattery
> IBM
>
> --
> 
> 
>
>


-- 
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"

---

## #30413 — Zoe Slattery — 2007-07-02T18:57:22+00:00

URL: https://externals.io/message/30153#30413 · In reply to: #30198

Hi Richard - finally done this, see here: 
http://www-03.ibm.com/developerworks/blogs/page/phpblog

Please comment on the blog if you have suggestions for improvement .

Thanks

Zoe

Richard Quadling wrote:
> I would be REALLY grateful if you could do the whole process with no
> assumed knowledge about the compiler or special tools.
>
> Ideally, including the dependent elements too (SDK, .NET, etc).
>
> Regards and thanks up front!
>
> Richard.
>
> 
> > […]
